add route file in /etc/sysconfig/network-script/ route-em2 or name of network card
10.51.134.2 via 10.51.135.53 dev em2
serverip gateway device name
add SipAddHeader(P-Preferred- Identity: to extensions.conf
[macro-dialout-trunk-predial- hook]
exten => s,1,SipAddHeader(P-Preferred- Identity:<sip:68176XX@10.51. 140.18>)
exten => s,n,MacroExit()
[macro-dialout-trunk-predial-
exten => s,1,SipAddHeader(P-Preferred-
exten => s,n,MacroExit()
save and dialplan reload leave system and asterisk setting as it is
eg sendpid and trustedpid as it is.
eg sendpid and trustedpid as it is.
ass for incoming in extensions.conf in from-pstn context
[tata]
exten => _X.,1,Goto(s,1)
exten => s,1,Noop(Let us look deeper into the soul of the invite)
exten => s,n,Set(pseudodid=${SIP_ HEADER(To)})
exten => s,n,Set(pseudodid=${CUT( pseudodid,@,1)})
exten => s,n,Set(pseudodid=${CUT( pseudodid,:,2)})
exten => s,n,Goto(trunkinbound,${ pseudodid},1)
exten => _X.,1,Goto(s,1)
exten => s,1,Noop(Let us look deeper into the soul of the invite)
exten => s,n,Set(pseudodid=${SIP_
exten => s,n,Set(pseudodid=${CUT(
exten => s,n,Set(pseudodid=${CUT(
exten => s,n,Goto(trunkinbound,${
SIP settings
disallow=all
allow=gsm&ulaw&alaw
type=friend
dtmfmode=rfc2833
context=tata
qualify=yes
insecure=invite,port
nat=yes
host=10.51.140.18
username=68176XXX
secret=7968176XXX
defaultexpiry=600
progressinband=yes
allow=gsm&ulaw&alaw
type=friend
dtmfmode=rfc2833
context=tata
qualify=yes
insecure=invite,port
nat=yes
host=10.51.140.18
username=68176XXX
secret=7968176XXX
defaultexpiry=600
progressinband=yes
Comments
Post a Comment