Hi,
i have one requirment like i need to setup an extensions and need allow only incoming calls from PSTN and need allow to within extensions.
Basic requirement is to restrict the outbound PSTN calls for this extensions and should allow within ext…
As for following setup and config. i am able to receive only incoming from PSTN and unable to have calls with in ext 294 and 218 … though i have entires for sip.conf
Here i am trying to setup the ext 254 for this requirment.
i shall be thankfull if you can help me on the same…
i have the following setup in my sip.conf with entries for 218 and 294 with context abc
[254]
type=peer
secret=new
host=dynamic
qualify=yes
disallow=all
;allow=ulaw
allow=g729
context=abcd
dtmfmode=rfc2833
;nat=yes
careinvite=yes
insecure=invite
mailbox=254@voicemail
estensions.conf
[default]
include => abc
include => abcd
exten => s,1,Wait(1)
exten => s,2,Answer()
exten => s,3,Background(welcome)
exten => s,4,WaitExten(10)
exten => s,5,Background(welcome)
exten => s,6,WaitExten(10)
exten => s,7,Goto(280,1)
exten => s,8,Hangup()
[abc]
exten => _NXXNXXXXXX,1,Dial(Zap/G1/wwwwww1${EXTEN}|20,tWw)
exten => _NXXNXXXXXX,2,Congestion()
exten => _NXXNXXXXXX,102,busy()
exten => 294,1,Dial(SIP/294,20,rtT)
exten => 294,2,VoiceMail(294@voicemail)
exten => 294,3,PlayBack(vm-goodbye)
exten => 294,4,Hangup()
exten => 218,1,Dial(SIP/218,20,rtT)
exten => 218,2,VoiceMail(218@voicemail)
exten => 218,3,PlayBack(vm-goodbye)
exten => 218,4,Hangup()
[abcd]
exten => 254,1,Dial(SIP/254,20,rtT)
exten => 254,2,voicemail(254@voicemail)
exten => 254,3,Playback(vm-goodbye)
exten => 254,4,Hangup()