<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">You could assign in your sip.conf or iax.conf different contexts for such extensions, and then restrict one context to nationwide access and the other with international access in your extensions.conf.<DIV><BR class="khtml-block-placeholder"></DIV><DIV>- Waldo</DIV><DIV><BR><DIV><DIV>On Jul 18, 2005, at 3:53 PM, Sebastian Torf wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"> <DIV><FONT face="Arial" size="2">The situation is that I want to have certain extensions that can only call nationwide and others that can make international calls (with a different provider). I suppose, you could also see this as a scenario that could involve multiple internal extensions that get matched to specific outbound trunks.</FONT></DIV> <DIV><FONT face="Arial" size="2"></FONT> </DIV> <DIV><FONT face="Arial" size="2">I have tried to find appropriate commands in the Asterisk documentation, but could find nothing so far that would help me to find an answer for this problem. Could one potential solution involve the following? (not sure if this is the correct way to do it):</FONT></DIV> <DIV><FONT face="Arial" size="2"></FONT> </DIV> <DIV><PRE>exten => _9XXXXXXXXXX,1,Goto(catchallvoip|BYEXTENSION|2)</PRE><PRE>exten => _9XXXXXXXXXX,1,Goto(thisEXTdialsadiffplan|304|1)</PRE><PRE> </PRE><PRE><FONT face="Arial" size="2">...where [catchallvoip] and [thisEXTdialsadiffplan] are defined trunks for outbound calling. The above is not meant to be specific to international calling, but instead uses one of two defined trunks for nationwide calling according to the extension that initiates the call. The priority '1' for the extension-specific outbound plan makes sure that the restricted EXTs are checked first, if the EXT that tries to initiate the call is not part of those listed, then the international call proceeds using the 'catchallvoip' trunk. Does this sound reasonable or can the Goto cmd not be used to switch contexts for outbound calling rules by extensions?</FONT></PRE><PRE><FONT face="Arial" size="2"></FONT> </PRE><PRE><FONT face="Arial" size="2">Thanks in advance for any insights!</FONT></PRE><PRE><FONT face="Arial" size="2">-Sebastian</FONT></PRE></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Asterisk-Users mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:Asterisk-Users@lists.digium.com">Asterisk-Users@lists.digium.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">To UNSUBSCRIBE or update options visit:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space"> </SPAN><A href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>