Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SIP.CONF
- [general]
- context=trunk-squire-incoming
- bindport=5060
- bindaddr=0.0.0.0
- tcpenable=no
- tcpbindaddr=0.0.0.0
- srvlookup=yes
- disallow=all
- allow=alaw
- allow=g729
- insecure=port,invite
- [0287250030]
- trustrpid=yes
- sendrpid=yes
- usereqphone=yes
- type=friend
- context=users
- secret=pippo
- host=dynamic
- user=0287250030
- [trunk-squire-outcoming]
- usereqphone=yes
- type=peer
- host=$IP
- outboundproxy=$IP
- #EXTENSIONS.CONF
- [general]
- static=yes
- writeprotect=no
- clearglobalvars=no
- [trunk-squire-incoming]
- exten => _X.,1,Dial(SIP/${EXTEN},60,tT)
- exten => _X.,n,Macro(dial-result,${DIALSTATUS})
- exten => i,1,Playback(you-dialed-wrong-number,noanswer)
- exten => i,n,Playback(check-number-dial-again,noanswer)
- [users]
- exten => _X.,1,MSet(AssertedIdentity=<sip:${CALLERID(num)}@enter.it\;user=phone>)
- exten => _X.,n,Set(CALLERID(num)=${CALLERID(num)})
- exten => _X.,n,SipAddHeader(P-Asserted-Identity:"sip:+39${CALLERID(num)}@enter.it\;user=phone")
- exten => _X.,n,Dial(SIP/trunk-squire-outcoming/+39${EXTEN},60,)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement