[asterisk-users] International calls/pridialplan from a legacy PBX.

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Thu Oct 16 14:40:20 CDT 2008


On Thursday 16 October 2008 13:38:00 Ken D'Ambrosio wrote:
> Hi, all.  This e-mail is a follow-up to an exchange I had several weeks
> ago.  I've got an Asterisk box with a dual-span T1 card.  I want to place
> it between the PSTN and my company's legacy PBX.  I actually did do that,
> but international calls from the legacy PBX were having the "011" stripped
> off *AT* the PBX -- and someone pointed out that the PBX was probably
> using the Asterisk equivalent of pridialplan.  Which makes sense.  But as
> far as I can tell, pridialplan is used to *signal* the PSTN -- but there
> doesn't appear to be any way to detect it, in Asterisk, from another
> switch.
>
> Is that true?
>
> Because, if I can't detect it, I have no other way of determining whether
> or not a call from the legacy PBX is international or not, and pretty much
> puts the kibosh on my Asterisk plans.  OTOH, if there is a way to detect
> it, I'm home free.

Check ${CALLERID(ton)} (type of number).  It should be 0 for unknown, 1 for
international, and 2 for national.  Other possible values are 3, 4, 6, and 7,
though you shouldn't see those too often.

-- 
Tilghman



More information about the asterisk-users mailing list