Frank Sautter
2005-Jan-31 12:04 UTC
[Asterisk-Users] Q: PRI leading 0 (area access code) or 00 (country access code) missing on incoming callerid
hi, on our incoming E1-PRI from german telco Arcor the leading 0 for the (area access code in europe) and the 00 (country accescode in europe) are missing on incoming callerids. only prepending a single 0 is not the solution as suggested by some writers on this list, because there is no way to differ between national and international callerids and it's not possible to make the decission based on the length of the presented callerid, as the length of the callerid can vary in most countries. e.g.: i'm getting signalled 4123456789 which could be a call from "Barmstedt (Germany)" which has the areacode '4123' or from Switzerland which has the countrycode '41' somehow our ericsson businessphone 250 fromerly connected to the same E1-PRI was capable of showing the correct number of leading 0s?!? regards frank
Klaus-Peter Junghanns
2005-Jan-31 12:18 UTC
[Asterisk-Users] Q: PRI leading 0 (area access code) or 00 (country access code) missing on incoming callerid
Hi, standard asterisk doesnt support that. However it's in bristuff (www.junghanns.net/asterisk) zapata.conf: nationalprefix=0 internationalprefix=00 best regards Klaus Am Montag, den 31.01.2005, 20:04 +0100 schrieb Frank Sautter:> hi, > > on our incoming E1-PRI from german telco Arcor the leading 0 for the > (area access code in europe) and the 00 (country accescode in europe) > are missing on incoming callerids. > only prepending a single 0 is not the solution as suggested by some > writers on this list, because there is no way to differ between national > and international callerids and it's not possible to make the decission > based on the length of the presented callerid, as the length of the > callerid can vary in most countries. > > e.g.: i'm getting signalled 4123456789 which could be a call from > "Barmstedt (Germany)" which has the areacode '4123' or from Switzerland > which has the countrycode '41' > > somehow our ericsson businessphone 250 fromerly connected to the same > E1-PRI was capable of showing the correct number of leading 0s?!? > > regards > frank > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Peter Svensson
2005-Jan-31 13:53 UTC
[Asterisk-Users] Q: PRI leading 0 (area access code) or 00 (country access code) missing on incoming callerid
On Mon, 31 Jan 2005, Frank Sautter wrote:> on our incoming E1-PRI from german telco Arcor the leading 0 for the > (area access code in europe) and the 00 (country accescode in europe) > are missing on incoming callerids. > only prepending a single 0 is not the solution as suggested by some > writers on this list, because there is no way to differ between national > and international callerids and it's not possible to make the decission > based on the length of the presented callerid, as the length of the > callerid can vary in most countries. > > e.g.: i'm getting signalled 4123456789 which could be a call from > "Barmstedt (Germany)" which has the areacode '4123' or from Switzerland > which has the countrycode '41' > > somehow our ericsson businessphone 250 fromerly connected to the same > E1-PRI was capable of showing the correct number of leading 0s?!?You should be able to determine the Type Of Numer / Numbering Plan through the CALLINGTON dialplan variable and then call SetCIDNum with the corrected digit string. However, there is a bug in chan_zap that prevents it from working. I still have not received the blessing from the legal department for the Digium disclaimer. However, feel free to contact me directly if you want to test the patch. Peter
Philipp von Klitzing
2005-Feb-01 09:31 UTC
[Asterisk-Users] Q: PRI leading 0 (area access code) or 00 (country access code) missing on incoming callerid
Hi!> standard asterisk doesnt support that. However it's in > bristuff (www.junghanns.net/asterisk) zapata.conf: > > nationalprefix=0 > internationalprefix=00BTW: The same applies to chan_capi. Cheers, Philipp
Frank Sautter
2005-Feb-02 11:05 UTC
[Asterisk-Users] Q: PRI leading 0 (area access code) or 00 (country access code) missing on incoming callerid - solved
hi, Frank Sautter wrote: > on our incoming E1-PRI from german telco Arcor the leading 0 for the > (area access code in europe) and the 00 (country accescode in europe) > are missing on incoming callerids. after peter svensson gave me some hints on where to look after, i made a small patch to current cvs-head which should solve this problem, by returning the modified callernum. the patch can be found on http://bugs.digium.com/bug_view_page.php?bug_id=0003493 regards frank
Frank Sautter
2005-Feb-04 02:20 UTC
[Asterisk-Users] A: PRI leading 0 (area access code) or 00 (country access code) missing on incoming callerid
Frank Sautter wrote:> on our incoming E1-PRI from german telco Arcor the leading 0 for the > (area access code in europe) and the 00 (country accescode in europe) > are missing on incoming callerids. > only prepending a single 0 is not the solution as suggested by some > writers on this list, because there is no way to differ between national > and international callerids and it's not possible to make the decission > based on the length of the presented callerid, as the length of the > callerid can vary in most countries. > > e.g.: i'm getting signalled 4123456789 which could be a call from > "Barmstedt (Germany)" which has the areacode '4123' or from Switzerland > which has the countrycode '41' > > somehow our ericsson businessphone 250 fromerly connected to the same > E1-PRI was capable of showing the correct number of leading 0s?!?the patch i made is now available through CVS-HEAD. thanks again to peter svensson who gave me the relevant hints where to look after! it is now possible to define prefixes in zapata.conf internationalprefix=00 nationalprefix=0 localprefix=089 privateprefix=0891234 unknownprefix is also made the channel restart interval per span configurable resetinterval=86400 regards frank