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