Hi,<br>Try this<br>networkindicator=national<br>ss7_called_nai=national<br>ss7_calling_nai=national<br><br><div class="gmail_quote">On Thu, Apr 5, 2012 at 10:41 PM, Torrey Searle <span dir="ltr"><<a href="mailto:tsearle@gmail.com">tsearle@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I see no reason dynamic should not work for you. N will be added to<br>
anything received with a national cli. but you will need to be sure<br>
to prefix your dialed number and callerid with N if you want the nai<br>
to be properly set on outbound calls.<br>
<div class="HOEnZb"><div class="h5"><br>
On 05/04/2012, Dovid B <<a href="mailto:ast-ss7@dovid.net">ast-ss7@dovid.net</a>> wrote:<br>
> Hi,<br>
><br>
> Here is my config:<br>
><br>
> signalling = ss7<br>
> ss7type = itu<br>
> networkindicator = national<br>
> linkset = 1<br>
> pointcode = 1607<br>
> adjpointcode = 9402<br>
> defaultdpc = 9402<br>
> cicbeginswith = 1<br>
> channel=1-15<br>
> cicbeginswith = 17<br>
> channel = 17-31<br>
> sigchan = 16<br>
> group=0<br>
><br>
> ss7_called_nai=national<br>
> ss7_calling_nai=national<br>
><br>
> I don’t remember why but I know that to work with our carrier I needed both<br>
> ss7_called_nai and ss7_calling_nai to be set to national. Now if I<br>
> understand correctly this is for calls TO my carrier? For calls FROM my<br>
> carrier I can set ss7_nationalprefix=N and then any caller ID or DID that<br>
> has N in front I know it is a national call?<br>
><br>
> Regards,<br>
><br>
> Dovid<br>
><br>
><br>
> -----Original Message-----<br>
> From: <a href="mailto:asterisk-ss7-bounces@lists.digium.com">asterisk-ss7-bounces@lists.digium.com</a><br>
> [mailto:<a href="mailto:asterisk-ss7-bounces@lists.digium.com">asterisk-ss7-bounces@lists.digium.com</a>] On Behalf Of Torrey Searle<br>
> Sent: Monday, April 02, 2012 10:01<br>
> To: <a href="mailto:asterisk-ss7@lists.digium.com">asterisk-ss7@lists.digium.com</a><br>
> Subject: Re: [asterisk-ss7] Variable if call is national or not<br>
><br>
> If you set the<br>
> calling ss7_calling_nai=dynamic<br>
><br>
> in dahdi.conf then you can easily tell the NAI by prefix analysis<br>
><br>
> libss7 will prefix the number with ss7_subscriberprefix<br>
> ss7_nationalprefix or ss7_internationalprefix depending on the nai<br>
><br>
> Torrey<br>
><br>
> On 29 March 2012 10:31, Kaloyan Kovachev <<a href="mailto:kkovachev@varna.net">kkovachev@varna.net</a>> wrote:<br>
>> On Thu, 29 Mar 2012 09:59:03 +0200, "Dovid B" <<a href="mailto:ast-ss7@dovid.net">ast-ss7@dovid.net</a>> wrote:<br>
>>> Hi,<br>
>>><br>
>>><br>
>>><br>
>>> Is there some sort of variable that will let me know if the calling<br>
>> party's<br>
>>> number is in national format or not?<br>
>>><br>
>><br>
>> There is no such variable set by default, but you may:<br>
>> 1. use ss7 debug and look at the incoming message for nai<br>
>> 2. patch the code to get SS7_NAI_XXX from ss7->calling_nai<br>
>> 3. easy do this in dialplan by setting ss7_XXXprefix for the linkset and<br>
>> match by that variable. For example if you set ss7_nationalprefix = N the<br>
>> incoming call to 12345 will go to extension N12345 the same goes for the<br>
>> calling party - it will be N54321<br>
>><br>
>> It depends what are you after<br>
>><br>
>>><br>
>>><br>
>>> Regards,<br>
>>><br>
>>><br>
>>><br>
>>> Dovid<br>
>><br>
>> --<br>
>> _____________________________________________________________________<br>
>> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
>><br>
>> asterisk-ss7 mailing list<br>
>> To UNSUBSCRIBE or update options visit:<br>
>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-ss7" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-ss7</a><br>
><br>
> --<br>
> _____________________________________________________________________<br>
> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
><br>
> asterisk-ss7 mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-ss7" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-ss7</a><br>
><br>
><br>
><br>
> --<br>
> _____________________________________________________________________<br>
> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
><br>
> asterisk-ss7 mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-ss7" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-ss7</a><br>
><br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-ss7 mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-ss7" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-ss7</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>BIPIN RAGHUVANSHI<br>OPERATION HEAD<br>ASTERISK (DEVELOPMENT AND RESEARCH) <br><a href="http://WWW.EHORIZONS.IN">WWW.EHORIZONS.IN</a><br>011-32323262<br>011-46334633<br>