[Asterisk-Users] Internal Lines Dialing Out

Steve Rodgers hwstar at rodgers.sdcoxmail.com
Fri Jan 30 22:59:30 MST 2004


Oops!  I forgot the leading underscore. Use this version below.

Steve.


 [always-out-pots]

 ;as generic as possible to allow all calls out other than local extensions
 which loads first above

exten =>_ NXXXXXX,1,Dial(Zap/1/$EXTEN)
exten => _NXXXXXX,2,Goto(102)
exten => _NXXXXXX,102,Congestion
exten => _NXXXXXX,103,Hangup

exten => _1NXXNXXXXXX,1,Dial(Zap/1/$EXTEN)
exten => _1NXXNXXXXXX,2,Goto(102)
exten => _1NXXNXXXXXX,102,Congestion
exten => _1NXXNXXXXXX,103,Hangup


On Friday 30 January 2004 21:51, Steve Rodgers wrote:
> Try replacing these lines:
> > [always-out-pots]
> >
> > ;as generic as possible to allow all calls out other than local
> > extensions which loads first above
> > exten => _.,1,Dial(Zap/1/$EXTEN)
> > exten => _.,2,Goto(102)
> > exten => _.,102,Congestion
> > exten => _.,103,Hangup
>
> with these:
>
>  [always-out-pots]
>
>  ;as generic as possible to allow all calls out other than local extensions
>  which loads first above
>
> exten => NXXXXXX,1,Dial(Zap/1/$EXTEN)
> exten => NXXXXXX,2,Goto(102)
> exten => NXXXXXX,102,Congestion
> exten => NXXXXXX,103,Hangup
>
> exten => 1NXXNXXXXXX,1,Dial(Zap/1/$EXTEN)
> exten => 1NXXNXXXXXX,2,Goto(102)
> exten => 1NXXNXXXXXX,102,Congestion
> exten => 1NXXNXXXXXX,103,Hangup
>
> I believe your problem is that you are not specific enough in your
> extension matching criteria.
>
> Also,
>
> I would recommend that you change your extension numbers to something like
> 110,112,113,114,115 ... Etc.
>
> These are not likely to conflict with normal telephone numbers, at least in
> North America anyway.
>
> Steve.
>
> On Friday 30 January 2004 20:21, Bruce Marler wrote:
> > * Gurus,
> >
> > I have been trying, with mixed results, to setup an * server as a pbx in
> > my home. Internal dialing works great, sip phone to sip phone and 1 fxs
> > phone to sip phones, as well as inward dialing ringing all extensions
> > then going to vmail. All great.
> >
> > But, when I try to dial out I run into issues, I have taken a look at the
> > docs and the wiki and none of the tips have solved my problems.
> >
> > I have 1 fxs port and 1 fxo port (both digium cards) and as I said dial
> > in works from the pstn.
> >
> > I want to dial my local extensions, but also be able to dialout my fxo
> > port for anything not local, adding a 9 to be able to dial out is not an
> > option (wife and kids would be all messed up:)
> >
> > FYI, also, if i set immediate=yes in my zapata.conf i can get straight
> > dial tone and dial out but that does me little good since i am trying to
> > get the value of dialing ext to ext in the house.
> >
> > All help is truly appreciated.
> >
> > Here is my extensions.conf file
> >
> >
> > [general]
> > static=yes
> > writeprotect=yes
> >
> >
> >
> >
> > [internallines]
> >
> > ;sip phones and fxs port use this as their context
> >
> > include => local-extensions
> > include => always-out-pots
> > exten => h,1,Hangup
> > exten => i,1,Congestion
> > exten => i,2,Hangup
> >
> >
> > [always-out-pots]
> >
> > ;as generic as possible to allow all calls out other than local
> > extensions which loads first above
> > exten => _.,1,Dial(Zap/1/$EXTEN)
> > exten => _.,2,Goto(102)
> > exten => _.,102,Congestion
> > exten => _.,103,Hangup
> >
> >
> >
> > [local-extensions]
> > exten => 20,1,Dial(Zap/2-1,20)
> > exten => 20,2,Voicemail(u21)
> > exten => 20,102,Voicemail(b21)
> > exten => 20,103,Hangup
> > exten => 21,1,Dial(SIP/21,20)
> > exten => 21,2,Voicemail(u21)
> > exten => 21,102,Voicemail(b21)
> > exten => 21,103,Hangup
> > exten => 22,1,Dial(SIP/22,20)
> > exten => 22,2,Voicemail(u21)
> > exten => 22,102,Voicemail(b21)
> > exten => 22,103,Hangup
> > exten => 30,1,VoicemailMain($CALLERIDNUM)
> > [root at asterisk asterisk]# cat extensions.conf
> > [general]
> > static=yes       ; These two lines prevent the command-line interface
> > writeprotect=yes ; from overwriting the config file. Leave them here.
> >
> >
> >
> >
> > [internallines]
> > include => local-extensions
> > include => always-out-pots
> > exten => h,1,Hangup
> > exten => i,1,Congestion
> > exten => i,2,Hangup
> >
> >
> > [always-out-pots]
> >
> > exten => _.,1,Dial(Zap/1/$EXTEN)
> > exten => _.,2,Goto(102)
> > exten => _.,102,Congestion
> > exten => _.,103,Hangup
> >
> >
> >
> > [local-extensions]
> > exten => 20,1,Dial(Zap/2-1,20)
> > exten => 20,2,Voicemail(u21)
> > exten => 20,102,Voicemail(b21)
> > exten => 20,103,Hangup
> > exten => 21,1,Dial(SIP/21,20)
> > exten => 21,2,Voicemail(u21)
> > exten => 21,102,Voicemail(b21)
> > exten => 21,103,Hangup
> > exten => 22,1,Dial(SIP/22,20)
> > exten => 22,2,Voicemail(u21)
> > exten => 22,102,Voicemail(b21)
> > exten => 22,103,Hangup
> > exten => 30,1,VoicemailMain($CALLERIDNUM)
> > exten => 40,1,Dial(SIP/40,20)
> > exten => 40,2,Voicemail(u21)
> > exten => 40,102,Voicemail(b21)
> > exten => 40,103,Hangup
> > exten => 50,1,Dial(SIP/21&SIP/22&Zap/2-1,15)
> > exten => 50,103,Hangup
> >
> >
> >
> > [from-analog]
> > exten => s,1,PrivacyManager
> > exten => s,2,Dial(SIP/21&SIP/22&Zap/2-1,20)
> > exten => s,3,Voicemail(u21)
> > exten => s,4,Hangup
> > exten => s,103,Voicemail(b21)
> > exten => s,104,Hangup
> > exten => i,1,Hangup
> > exten => h,1,Hangup
> > [root at asterisk asterisk]#
> >
> > _______________________________________________
> > 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
>
> _______________________________________________
> 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




More information about the asterisk-users mailing list