[VoIP] Asterisk Programming Technique

Lee Spenadel lee at spenadel.com
Tue Sep 4 20:58:47 CDT 2007


To you savvy Asterisk programmers out there, I have a question.   What is a
good way to branch out a call to a particular SIP service, like FWD in a
dial plan?  What I mean by this is that I want to be able to dial 7 in my
PBX so that I can send out calls to FWD via that route, yet still reach CNET
members whose office codes are 7XX.  I know I can wild card a command such
as

 

_71., 

 

so that FWD calls go out that way, but I'm wondering if there's a way to use
some sort of delay with the ignorepat command so that if I dial 7 and wait,
say 1 second, those calls go out via FWD, yet if there is no delay in
dialing the digits the call goes out via CNET.  I know that the ignorepat
command only disables the cancellation of dial tone for that dialed digit,
but I'm looking to emulate a PBX where you dial, say 9, to get an outside
line to reach the PSTN, which is how I had my FWD access setup.  But now
there are 7XX CNET numbers that I need to contend with. I'm thinking that
I'll have to have a unique code like *9, *8, etc for each SIP service that I
want to send calls out on.  Constructive comments welcome. 

 

 

Thanks

Lee

 

 



More information about the VoIP mailing list