[Asterisk-Users] Don't receive the prefix

Peter Svensson psvasterisk at psv.nu
Tue Jan 4 10:35:51 MST 2005


On Tue, 4 Jan 2005, GIBERT Frédéric wrote:

> I had such problem on PRI and BRI lines. And I think but I need to verify,
> also on analog lines.
> 
> For example, I had such configuration:
> 
> [root at ConnecteurPRI01 asterisk]# more zapata.conf
> [channels]
> 
> switchtype=euroisdn
> pridialplan=unknown
> signalling=pri_cpe
> group = 1
> channel => 1-15,17-31
> context=FromTNR



> 
> 
> 
> And I get such traces:
> 
> < Calling Number (len=13) [ Ext: 0  TON: National Number (2)  NPI:
> ISDN/Telephony Numbering Plan (E.164/E.163) (1)
> <                           Presentation: Presentation allowed of network
> provided number (3) '672083516' ]
>
> Do I need to change my pridialplan?

This is as expected, the switch you are connected to sends the numbers in 
the "National" format, i.e. no leading zero. Chances are very good that 
international numbers will be sent with "international" number format, 
i.e. a country prefix but no international prefix (no double zero in 
Europe). 

You will have to modify the callerid once received. We pass it through a 
context that rewrites the callerid using setcallerid. This is not related 
to the "pridialplan" setting which sets what TON is used on outgoing 
dialed numbers or "prilocaldialplan" which sets the outgoing callerid 
format.

Peter





More information about the asterisk-users mailing list