[asterisk-ss7] Variable if call is national or not

Kaloyan Kovachev kkovachev at varna.net
Thu Mar 29 03:31:14 CDT 2012


On Thu, 29 Mar 2012 09:59:03 +0200, "Dovid B" <ast-ss7 at dovid.net> wrote:
> Hi,
> 
>  
> 
> Is there some sort of variable that will let me know if the calling
party's
> number is in national format or not?
> 

There is no such variable set by default, but you may:
 1. use ss7 debug and look at the incoming message for nai
 2. patch the code to get SS7_NAI_XXX from ss7->calling_nai
 3. easy do this in dialplan by setting ss7_XXXprefix for the linkset and
match by that variable. For example if you set ss7_nationalprefix = N the
incoming call to 12345 will go to extension N12345 the same goes for the
calling party - it will be N54321

It depends what are you after

>  
> 
> Regards,
> 
>  
> 
> Dovid



More information about the asterisk-ss7 mailing list