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

Dovid B ast-ss7 at dovid.net
Fri Aug 10 08:18:25 CDT 2012


Anyone?


-----Original Message-----
From: asterisk-ss7-bounces at lists.digium.com
[mailto:asterisk-ss7-bounces at lists.digium.com] On Behalf Of Dovid B
Sent: Saturday, June 23, 2012 23:04
To: asterisk-ss7 at lists.digium.com
Subject: Re: [asterisk-ss7] Variable if call is national or not

Hi,

Here is my current configs:
[root at gw2 asterisk]# cat chan_dahdi.conf
;autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
;autogenrated on 2010-12-01
;Dahdi Channels Configurations 
;For detailed Dahdi options, view /etc/asterisk/chan_dahdi.conf.bak

[trunkgroups]

[channels]
context=default
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=no
echocancelwhenbridged=yes
relaxdtmf=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no

;;Sangoma A102 port 1 [slot:1 bus:10 span:1] <wanpipe1>
;switchtype=euroisdn
context=from-pstn
;group=0
;echocancel=yes
;signalling=pri_cpe
;channel =>1-15,17-31

;;Sangoma A102 port 2 [slot:1 bus:10 span:2] <wanpipe2>
;switchtype=euroisdn
;context=from-pstn
;group=0
;echocancel=yes
;signalling=pri_cpe
;channel =>32-46,48-62

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

Regards,

Dovid


-----Original Message-----
From: asterisk-ss7-bounces at lists.digium.com
[mailto:asterisk-ss7-bounces at lists.digium.com] On Behalf Of Kaloyan Kovachev
Sent: Tuesday, June 19, 2012 11:21
To: asterisk-ss7 at lists.digium.com
Subject: Re: [asterisk-ss7] Variable if call is national or not

Hi,

On Tue, 19 Jun 2012 09:23:55 +0300, "Dovid B" <ast-ss7 at dovid.net> wrote:
> Hi,
> 
> I added: ss7_nationalprefix=N and I am not seeing N. Unless N needs to
be a
> digit and not the actual letter N?
> 

If the incoming call is national (asuming called_nai=dynamic) it will be
prefixed with 'N', but probably 'N' is not a good choice, because in the
dialplan it translates to 'any digit between 2 and 9' if the extension is
prefixed with '_'. Avoid using also X, Z, r, R, g, G

First confirm if the call is coming as national - in the IAM message of an
incoming call it should say "Called Party Number: Nature of address: 3"
Also check if ss7_called_nai=dynamic

> Regards,
> 
> Dovid
> 
> -----Original Message-----
> From: asterisk-ss7-bounces at lists.digium.com
> [mailto:asterisk-ss7-bounces at lists.digium.com] On Behalf Of Torrey
Searle
> Sent: Thursday, April 05, 2012 20:12
> To: asterisk-ss7 at lists.digium.com
> Subject: Re: [asterisk-ss7] Variable if call is national or not
> 
> 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 at 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 at lists.digium.com
>> [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: [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 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
>>
>>
>>
>> --
>> _____________________________________________________________________
>> -- 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



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