[prev in list] [next in list] [prev in thread] [next in thread] 

List:       asterisk-ss7
Subject:    Re: [asterisk-ss7] Variable if call is national or not
From:       bipin singh <bipinraghuvanshi () gmail ! com>
Date:       2012-04-12 10:07:09
Message-ID: CAGbA=3885YgMOu-XvN--fRZAKAdwPv1DkNYH_rn5=iastuLuWA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,
Try this
networkindicator=national
ss7_called_nai=national
ss7_calling_nai=national

On Thu, Apr 5, 2012 at 10:41 PM, Torrey Searle <tsearle@gmail.com> wrote:

> I see no reason dynamic should not work for you.  N will be added to
> anything received with a national cli.  but you will need to be sure
> to prefix your dialed number and callerid with N if you want the nai
> to be properly set on outbound calls.
>
> On 05/04/2012, Dovid B <ast-ss7@dovid.net> wrote:
> > 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@lists.digium.com
> > [mailto:asterisk-ss7-bounces@lists.digium.com] On Behalf Of Torrey
> Searle
> > Sent: Monday, April 02, 2012 10:01
> > To: asterisk-ss7@lists.digium.com
> > Subject: Re: [asterisk-ss7] 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@varna.net> wrote:
> >> On Thu, 29 Mar 2012 09:59:03 +0200, "Dovid B" <ast-ss7@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
> >
> >
> >
> > --
> > _____________________________________________________________________
> > -- 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
>



-- 
BIPIN RAGHUVANSHI
OPERATION HEAD
ASTERISK (DEVELOPMENT AND RESEARCH)
WWW.EHORIZONS.IN
011-32323262
011-46334633

[Attachment #5 (text/html)]

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">&lt;<a href="mailto:tsearle@gmail.com">tsearle@gmail.com</a>&gt;</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 &lt;<a \
href="mailto:ast-ss7@dovid.net">ast-ss7@dovid.net</a>&gt; wrote:<br> &gt; Hi,<br>
&gt;<br>
&gt; Here is my config:<br>
&gt;<br>
&gt; signalling = ss7<br>
&gt; ss7type = itu<br>
&gt; networkindicator = national<br>
&gt; linkset = 1<br>
&gt; pointcode = 1607<br>
&gt; adjpointcode = 9402<br>
&gt; defaultdpc = 9402<br>
&gt; cicbeginswith = 1<br>
&gt; channel=1-15<br>
&gt; cicbeginswith = 17<br>
&gt; channel = 17-31<br>
&gt; sigchan = 16<br>
&gt; group=0<br>
&gt;<br>
&gt; ss7_called_nai=national<br>
&gt; ss7_calling_nai=national<br>
&gt;<br>
&gt; I don’t remember why but I know that to work with our carrier I needed both<br>
&gt; ss7_called_nai and ss7_calling_nai to be set to national. Now if I<br>
&gt; understand correctly this is for calls TO my carrier? For calls FROM my<br>
&gt; carrier I can set ss7_nationalprefix=N and then any caller ID or DID that<br>
&gt; has N in front I know it is a national call?<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; Dovid<br>
&gt;<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:asterisk-ss7-bounces@lists.digium.com">asterisk-ss7-bounces@lists.digium.com</a><br>
 &gt; [mailto:<a href="mailto:asterisk-ss7-bounces@lists.digium.com">asterisk-ss7-bounces@lists.digium.com</a>] \
On Behalf Of Torrey Searle<br> &gt; Sent: Monday, April 02, 2012 10:01<br>
&gt; To: <a href="mailto:asterisk-ss7@lists.digium.com">asterisk-ss7@lists.digium.com</a><br>
 &gt; Subject: Re: [asterisk-ss7] Variable if call is national or not<br>
&gt;<br>
&gt; If you set the<br>
&gt; calling ss7_calling_nai=dynamic<br>
&gt;<br>
&gt; in dahdi.conf then you can easily tell the NAI by prefix analysis<br>
&gt;<br>
&gt; libss7 will prefix the number with ss7_subscriberprefix<br>
&gt; ss7_nationalprefix or ss7_internationalprefix  depending on the nai<br>
&gt;<br>
&gt; Torrey<br>
&gt;<br>
&gt; On 29 March 2012 10:31, Kaloyan Kovachev &lt;<a \
href="mailto:kkovachev@varna.net">kkovachev@varna.net</a>&gt; wrote:<br> &gt;&gt; On \
Thu, 29 Mar 2012 09:59:03 +0200, &quot;Dovid B&quot; &lt;<a \
href="mailto:ast-ss7@dovid.net">ast-ss7@dovid.net</a>&gt; wrote:<br> &gt;&gt;&gt; \
Hi,<br> &gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Is there some sort of variable that will let me know if the calling<br>
&gt;&gt; party&#39;s<br>
&gt;&gt;&gt; number is in national format or not?<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; There is no such variable set by default, but you may:<br>
&gt;&gt;  1. use ss7 debug and look at the incoming message for nai<br>
&gt;&gt;  2. patch the code to get SS7_NAI_XXX from ss7-&gt;calling_nai<br>
&gt;&gt;  3. easy do this in dialplan by setting ss7_XXXprefix for the linkset \
and<br> &gt;&gt; match by that variable. For example if you set ss7_nationalprefix = \
N the<br> &gt;&gt; incoming call to 12345 will go to extension N12345 the same goes \
for the<br> &gt;&gt; calling party - it will be N54321<br>
&gt;&gt;<br>
&gt;&gt; It depends what are you after<br>
&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Regards,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Dovid<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; _____________________________________________________________________<br>
&gt;&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" \
target="_blank">http://www.api-digital.com</a> --<br> &gt;&gt;<br>
&gt;&gt; asterisk-ss7 mailing list<br>
&gt;&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;&gt;   <a href="http://lists.digium.com/mailman/listinfo/asterisk-ss7" \
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-ss7</a><br> \
&gt;<br> &gt; --<br>
&gt; _____________________________________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" \
target="_blank">http://www.api-digital.com</a> --<br> &gt;<br>
&gt; asterisk-ss7 mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;    <a href="http://lists.digium.com/mailman/listinfo/asterisk-ss7" \
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-ss7</a><br> \
&gt;<br> &gt;<br>
&gt;<br>
&gt; --<br>
&gt; _____________________________________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" \
target="_blank">http://www.api-digital.com</a> --<br> &gt;<br>
&gt; asterisk-ss7 mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;    <a href="http://lists.digium.com/mailman/listinfo/asterisk-ss7" \
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-ss7</a><br> \
&gt;<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>




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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic