[VoIP] Asterisk Programming Technique
Shane Young
voiptandem at shaneyoung.com
Tue Sep 4 22:39:34 CDT 2007
Oh, that's easy then.
exten => _7xxxx,1,macro(dial-fwd)
exten => _7xxxxx,1,macro(dial-fwd)
exten => _7xxxxxx,1,macro(dial-cnet)
This should dial immediately when you dial a 7-digit CNET number
starting with "7". If you dial a 5 or 6 digit number starting with
"7" it will wait for a bit to see if you are done dialing. If no
more digits are entered, then it will fire off the macro for fwd.
Quoting Lee Spenadel <lee at spenadel.com>:
> Shane,
>
> I'm trying to avoid implementing an NPA to my dialing plan. FWD numbers are
> 5 - 6 digits.
>
> Lee
>
> -----Original Message-----
> From: voip-bounces at ckts.info [mailto:voip-bounces at ckts.info] On Behalf Of
> Shane Young
> Sent: Tuesday, September 04, 2007 10:35 PM
> To: voip at ckts.info
> Subject: Re: [VoIP] Asterisk Programming Technique
>
> My asterisk box is my home PBX first and CNET tandem second.
>
> What I do is assign the generic area code "200" to north american CNET.
>
> If I want to call a CNET number, I dial 1-200-NXX-XXXX. 200 isn't
> assigned in north america, so it works good for me.
>
> How many digits are in yoru free world dialup numbers? (I haven't used
> FWD in many years)
>
>
>
> Quoting Lee Spenadel <lee at spenadel.com>:
>
>> 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
>>
>>
>>
>>
>>
>> _______________________________________________
>> VoIP mailing list
>> VoIP at ckts.info
>> http://lists.ckts.info/mailman/listinfo/voip
>> Project Web Page: http://www.ckts.info/
>>
>
> --Shane
> +1-821-7311 CNET
>
>
> _______________________________________________
> VoIP mailing list
> VoIP at ckts.info
> http://lists.ckts.info/mailman/listinfo/voip
> Project Web Page: http://www.ckts.info/
>
> _______________________________________________
> VoIP mailing list
> VoIP at ckts.info
> http://lists.ckts.info/mailman/listinfo/voip
> Project Web Page: http://www.ckts.info/
>
--Shane
+1-821-7311 CNET
More information about the VoIP
mailing list