[VoIP] Asterisk Programming Technique
Lee Spenadel
lee at spenadel.com
Wed Sep 5 06:34:39 CDT 2007
Yes Mark, that's what I was initially thinking. The way Shane explained his
solution seemed plausible and easy. My fallback will be my original plan.
Lee
-----Original Message-----
From: voip-bounces at ckts.info [mailto:voip-bounces at ckts.info] On Behalf Of
Mark Rudholm
Sent: Tuesday, September 04, 2007 7:44 PM
To: Voice Over IP Tandem for Analog Switches
Subject: Re: [VoIP] Asterisk Programming Technique
The problem is that FWD numbers don't all start with 7, so when
Lee says FWD numbers are five or six digits, he'll be dialing
7+5D or 7+6D, so it's impossible to distinguish between a
7+6D FWD call and a 7XX-XXXX CNET call.
I think he should use _*7XXXXX. for FWD calls, and
_NXXXXXX for CNET calls (which is what he's already doing, I
imagine)
-Mark
Shane Young wrote:
> 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
>
>
> _______________________________________________
> 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/
More information about the VoIP
mailing list