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


_______________________________________________
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

Reply via email to