Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] PRI dialplan/prefix


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
elam at officegeneral.com
Guest





PostPosted: Mon Feb 18, 2008 1:11 am    Post subject: [asterisk-users] PRI dialplan/prefix Reply with quote

hi.

could somebody explain how exactly the following parameters
in zapata.conf work:

pridialplan
prilocaldialplan
internationalprefix
nationalprefix
localprefix
privateprefix
unknownprefix

the wiki & comments doesn't quite explain them. and
phone companies are absolutely no help.
i've setup systems in the US & China with trial & error
until it works. now i'm setting up a system in Japan
and have hard time getting consistant behavior.
thanks.
--
__ Edwin Lam <edwin at officegeneral.com> __________________________
__ Systems Engineer, Office General, Inc. ________________________
__ Ph: +1 415 439 4988 Fax: +1 415 283 3370 ______________________
__ http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xEF11A895 __
Back to top
tony at softins.clara....
Guest





PostPosted: Mon Feb 18, 2008 5:30 am    Post subject: [asterisk-users] PRI dialplan/prefix Reply with quote

In article <20080218061138.GA23463 at officegeneral.com>,
<elam at officegeneral.com> wrote:
Quote:
hi.

could somebody explain how exactly the following parameters
in zapata.conf work:

pridialplan
prilocaldialplan
internationalprefix
nationalprefix
localprefix
privateprefix
unknownprefix

They are all to do with the ToN (Type of Number) field that is carried
along with the number in the called-number and caller-number information
elements in the ISDN PRI protocol.

For numbers supplied by the remote device (i.e. incoming extension and
caller's number), the ToN is examined. If ToN is "international", then
the value of "internationalprefix" is prepended to the supplied number.
If ToN is "national", then the value of "nationalprefix" is prepended,
and so on.

I don't know about US numbering, but in the UK, we would set:
nationalprefix=0
internationalprefix=00

Then a UK number received as 1234567890 with ToN=national would be
converted to 01234567890. A US number received as 12345678999 with
ToN=international would be converted to 0012345678999.

For outgoing calls, I haven't any direct experience, but the following
is my belief from reading the code in chan_zap.c:

The value of pridialplan specifies the ToN that will accompany
the dialled number, and prilocaldialplan specifies the ToN that will
accompany the caller-ID. If the dialplan value is "unknown", "private",
"local", "national" or "international", I don't think the actual number
gets changed - just the ToN is specified. However, if "dynamic" is
specified, then the number is compared with the list of prefixes.
If the international prefix matches, the prefix is stripped from the
number, and a ToN of "international" is attached. Else if the national
prefix matches, that is stripped and a ToN of "national" is used.
Otherwise the number is left unchanged an a ToN of "local" is used.

Hope this helps!

Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services