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

Torrey Searle tsearle at gmail.com
Mon Apr 2 02:01:21 CDT 2012


If you set the
calling ss7_calling_nai=dynamic

in dahdi.conf then you can easily tell the NAI by prefix analysis

libss7 will prefix the number with ss7_subscriberprefix
ss7_nationalprefix or ss7_internationalprefix  depending on the nai

Torrey

On 29 March 2012 10:31, Kaloyan Kovachev <kkovachev at varna.net> wrote:
> 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
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-ss7 mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-ss7



More information about the asterisk-ss7 mailing list