Variable if call is national or not

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Here is my config:

signalling = ss7
ss7type = itu
networkindicator = national
linkset = 1
pointcode = 1607
adjpointcode = 9402
defaultdpc = 9402
cicbeginswith = 1
channel=1-15
cicbeginswith = 17
channel = 17-31
sigchan = 16
group=0

ss7_called_nai=national
ss7_calling_nai=national

I don?t remember why but I know that to work with our carrier I needed both
ss7_called_nai and ss7_calling_nai to be set to national. Now if I
understand correctly this is for calls TO my carrier? For calls FROM my
carrier I can set ss7_nationalprefix=N and then any caller ID or DID that
has N in front I know it is a national call?

Regards,

Dovid


-----Original Message-----
From: asterisk-ss7-bounces@xxxxxxxxxxxxxxxx
[mailto:asterisk-ss7-bounces at lists.digium.com] On Behalf Of Torrey Searle
Sent: Monday, April 02, 2012 10:01
To: asterisk-ss7 at lists.digium.com
Subject: Re: Variable if call is national or not

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

--
_____________________________________________________________________
-- 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





[Index of Archives]     [Asterisk App Development]     [PJ SIP]     [Gnu Gatekeeper]     [IETF Sipping]     [Info Cyrus]     [ALSA User]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite Backpacking]     [Deep Creek Hot Springs]     [Yosemite Campsites]     [ISDN Cause Codes]     [Asterisk Books]

  Powered by Linux