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 ? [x1] exten => 300,1,Dial(SIP/300) include => pstnlocal [x2] exten => 301,1,Dial(SIP/301) include =>international [pstnlocal] exten => _9xxxxxxx,1,Dial(Zap/g1/${EXTEN}) [international] exten => _900.,1,Dial(Zap/g1/${EXTEN}) 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! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050531/81ef48b3/attachment.htm
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 ? >You read the samples and the guides that are available on the Voip-info.org wiki, in the Asterisk Documentation project and other places. After reading those, configuring Asterisk to do this will be a piece of cake :-) This page is a good start: http://www.voip-info.org/tiki-index.php?page=Asterisk Find the guides and articles under the "Articles" heading. I especially like John Todd's articles on the ONLAMP web site. Good luck! /O ---- Astricon - the Asterisk User's conference - Madrid June 15-17 http://www.astricon.net/europe/ - Register today!
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@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.
Yes Pstn local start with 9 and pstn international starts with 00 .That is ok. I can make call form 300 to pstn local, and from ext 301 to pstn international, that is ok .But in this exemple I can not call form ext 300 to 301 and form 301 to 300. It is possibile to have 2 diferent group of extension, with diferent tyipe of permision (like here x1 pstn local , and x2 pstn international) but extension can call each other regardless form the group. It does not matther in which group is the pone I can call any phone form group x1 or x2. But if I want to call outside it depends on permision of group in wich I am (x1 or x2). Ronald Wiplinger <ronald@elmit.com> wrote: 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! > > > >------------------------------------------------------------------------ > >_______________________________________________ >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 >-- 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. _______________________________________________ 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 --------------------------------- Do you Yahoo!? Yahoo! Mail - You care about security. So do we. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050531/ed792db0/attachment.htm
Hey, not sure if you figured it out yet or not but this is what I came up with. You could create a local context, an international contex and an internal pbx-users context make the default context of extens 300 and 301 part of the internal pbx-users context in sip.conf or iax.conf [local] include => pbx-users exten => _9xxxxxxx,1,Dial(Zap/g1/${EXTEN}) [international] include => pbx-users exten => _900.,1,Dial(Zap/g1/${EXTEN}) [pbx-users] exten => 300,1,Dial(SIP/300) exten => 301,1,Dial(SIP/301) On the subject of includes(I can't find much documentation on them) What happens when you do something like this [context-1] include => context-2 exten => 100,1,Dial(Zap/1) [context-2] include => context-1 exten => 101,1,Dial(Zap/1) does that create an infinite loop or when you include another context does it stop inheriting the includes inside. (Confusing huh?) Thanks On May 31, 2005, at 3:51 AM, 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 ? > > > [x1] > exten => 300,1,Dial(SIP/300) > > include => pstnlocal > > [x2] > exten => 301,1,Dial(SIP/301) > > include =>international > > [pstnlocal] > > exten => _9xxxxxxx,1,Dial(Zap/g1/${EXTEN}) > > [international] > > exten => _900.,1,Dial(Zap/g1/${EXTEN}) > > > > 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! > _______________________________________________ > 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