Advertisement
Guest User

Asterisk_Config

a guest
Jul 16th, 2014
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. #SIP.CONF
  2.  
  3. [general]
  4. context=trunk-squire-incoming
  5. bindport=5060
  6. bindaddr=0.0.0.0
  7. tcpenable=no
  8. tcpbindaddr=0.0.0.0
  9. srvlookup=yes
  10. disallow=all
  11. allow=alaw
  12. allow=g729
  13. insecure=port,invite
  14.  
  15. [0287250030]
  16. trustrpid=yes
  17. sendrpid=yes
  18. usereqphone=yes
  19. type=friend
  20. context=users
  21. secret=pippo
  22. host=dynamic
  23. user=0287250030
  24.  
  25. [trunk-squire-outcoming]
  26. usereqphone=yes
  27. type=peer
  28. host=$IP
  29. outboundproxy=$IP
  30.  
  31. #EXTENSIONS.CONF
  32.  
  33. [general]
  34. static=yes
  35. writeprotect=no
  36. clearglobalvars=no
  37.  
  38. [trunk-squire-incoming]
  39. exten => _X.,1,Dial(SIP/${EXTEN},60,tT)
  40. exten => _X.,n,Macro(dial-result,${DIALSTATUS})
  41. exten => i,1,Playback(you-dialed-wrong-number,noanswer)
  42. exten => i,n,Playback(check-number-dial-again,noanswer)
  43.  
  44. [users]
  45. exten => _X.,1,MSet(AssertedIdentity=<sip:${CALLERID(num)}@enter.it\;user=phone>)
  46. exten => _X.,n,Set(CALLERID(num)=${CALLERID(num)})
  47. exten => _X.,n,SipAddHeader(P-Asserted-Identity:"sip:+39${CALLERID(num)}@enter.it\;user=phone")
  48. exten => _X.,n,Dial(SIP/trunk-squire-outcoming/+39${EXTEN},60,)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement