David Arendt
2005-Jun-18 00:11 UTC
[Asterisk-Users] allowing outside dialing only for SIP users
Hi, I have one questions, which might be obvious but not for me as I am new to asterisk. How do I modify that line in order to allow this extension for outside dialing only for SIP users ? exten => _X.,1,Dial(Modem/ttyI1:${EXTEN}) Thanks in advance Bye, David Arendt
Wilson Pickett
2005-Jun-18 01:37 UTC
[Asterisk-Users] allowing outside dialing only for SIP users
> allow this extension for outside > dialing only for SIP users ?This is exactly what contexts are for. Put all sip users in one context and everyone else in one or more contexts. Then put that line (if you get it working) only in the sip users context and it will not be available to anyone else. If you have no idea of what was just said above, you should read the available documents at http://www.onlamp.com/pub/a/onlamp/2003/07/03/asterisk.html http://www.onlamp.com/pub/a/onlamp/2004/01/22/asterisk2.html http://www.asteriskdocs.org http://www.voip-info.org/wiki-Asterisk+Dialplan+Introduction The last URL was obtained by using google for asterisk context dialplan hth
David Arendt
2005-Jun-18 05:33 UTC
[Asterisk-Users] allowing outside dialing only for SIP users
Hi, I looked at this article, and I cam up with this extension.conf [common] exten => 100,1,Voicemail(100) exten => 101,1,Dial(Modem/ttyI2:**11) exten => 102,1,Dial(Modem/ttyI2:**12) exten => 111,1,Dial(SIP/prnet-win) exten => 112,1,Dial(SIP/prnet-amilo) exten => 8500,1,VoicemailMain [default] exten => s,1,Wait,1 exten => s,n,Answer exten => s,n(restart),BackGround(demo-congrats) exten => s,n(instruct),BackGround(demo-instruct) exten => s,n,WaitExten include => common [callout] include => common exten => _X.,1,Dial(Modem/ttyI1:${EXTEN}) In sip.conf I added context: callout to a sip user. If called in via phone, context default is called, and the items from context common are included correctly. If called in via this SIP user, it seems only respect the exten line and not the lines from context common. Anyone knowing what could go wrong here ? If I add context: default to a sip user, the exten lines from context common are respected. Thanks in adavance, Bye, David Arendt Wilson Pickett wrote:>>allow this extension for outside >>dialing only for SIP users ? >> >> > >This is exactly what contexts are for. Put all sip users in one >context and everyone else in one or more contexts. Then put that line >(if you get it working) only in the sip users context and it will not >be available to anyone else. > >If you have no idea of what was just said above, you should read the >available documents at > > http://www.onlamp.com/pub/a/onlamp/2003/07/03/asterisk.html > > http://www.onlamp.com/pub/a/onlamp/2004/01/22/asterisk2.html > > http://www.asteriskdocs.org > > http://www.voip-info.org/wiki-Asterisk+Dialplan+Introduction > >The last URL was obtained by using google for asterisk context dialplan > >hth >_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >