[Asterisk-Users] Extension context question

Ronald Wiplinger ronald at elmit.com
Tue May 31 04:05:21 MST 2005


asterisk asterisk wrote:

> I have a very simple question .
>
> I have 2 internal extension 301 and 300 sip phone . I want to these 
> extesion can call each other, and ext 300 can call outside to pstn, 
> and ext 301 to call internatonal.  
>
> How can I do that ?
>
>  
>

include pstnlocal at either [x2] or [international]

Remember, that international starts with 00 while local never has 00 - 
right?


bye

Ronald

> [x1]
> exten => 300,1,Dial(SIP/300)
>
> include => pstnlocal
>
> [x2]
> exten => 301,1,Dial(SIP/301)
>
> include =>international
>
include => pstnlocal

> [pstnlocal]
>
> exten => _9xxxxxxx,1,Dial(Zap/g1/${EXTEN}) 
>
> [international]
>
> exten => _900.,1,Dial(Zap/g1/${EXTEN}) 
>
 include => pstnlocal

>  
>
> So it is good but in this case I cann t call the local phone .And if I 
> include context x1 in x2 and x2 in x1 the ext 300 will be able to call 
> international no.
>
>  
>
> Can anyone help me ?
>
>  
>
> Thanks.
>
> ------------------------------------------------------------------------
> Do You Yahoo!?
> Yahoo! Small Business - Try our new Resources site! 
> <http://us.rd.yahoo.com/evt=31637/*http://smallbusiness.yahoo.com/resources/> 
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at 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
>


-- 
Ronald Wiplinger  (CEO of ELMIT)
http://www.elmit.com    +886 (0) 939--77-55-16  or FWD 511208
- I'm a SpamCon Foundation Member, #694, Verify it at http://www.spamcon.org

PS: Spam prevention!
Our system is protected with a spam prevention program. 
If you send us an e-mail, our system will send you a confirmation message back. Just reply to this confirmation message please. 
After receiving this confirmation message, our system will send the hold message (one) and all future messages (after the received confirmation message) to me without asking you again.





More information about the asterisk-users mailing list