Sorry for the high latency on this, but it has been really busy. This looks like it could be a bug in the configuration file parsing code.

Can you try the attached patch for me and tell me if the NAI goes to what you set it to? (it should apply ok against 1.6)

Matthew Fredrickson
Digium, Inc.

Bartosz Supczinski wrote:
Hi,

I've set up an SS7 link, the connection works in both directions but I have 2 problems which I am not able to solve.

I don't knot even if it's an Asterisk, Dahdi or libss7 issue or maybe the configuration or the software environment. The second problem is being encountered by other people too. I've found some descriptions, but unfortunately none of them contained a solution.

* The first problem is about blocking a group of channels. During some tests with telecom it occured that when telecom blocks a group of channel Asterisk gets a "CGB" and it replies "CGBA", and despite of that Asterisk is trying to get through the blocked channels by sending "IAM". From the superior tel. exchange it gets "BLO" and replies "BLA" and after that it starts to treat the channel as a blocked one and doesn't occupy it anymore. The above error doesn't allow passing the compatibility tests, which are required by telecom.

* The second problem is about "NAI", no matter how I configure "ss7_called_nai" and "ss7_calling_nai" Asterisk sends "Nature of address: 0" in "IAM", even when NAI = "dynamic" is set. I've managed to correct this by forcing settings in "chan_dahdi.c"

- ss7_called_nai = p->ss7->called_nai;
+ ss7_called_nai = SS7_NAI_NATIONAL;
- ss7_calling_nai = p->ss7->calling_nai;
+ ss7_calling_nai = SS7_NAI_NATIONAL;

Nevertheless it is unacceptable, because telecom expects "NAI=3" while doing national calls and "NAI=4" with international calls.

Maybe somebody would be interested in these problems and may help me solve them.

Asterisk: 1.6.0.6
Dahdi: 2.1.0.4
Dahdi Tools: 2.1.0.2
LibSS7: 1.0.2
Linux: 2.6.25-gentoo-r7 SMP x86_64 Intel Xeon
Gcc: Version 4.1.1 (Gentoo 4.1.1-r3) x86_64-pc-linux-gnu
Cards: Wildcard TE410P (3rd Gen), Wildcard TDM2400P

http://www.dir.pl/~bartek/files/modules
http://www.dir.pl/~bartek/files/system.conf
http://www.dir.pl/~bartek/files/chan_dahdi.conf
http://www.dir.pl/~bartek/files/extensions.conf


Reguards.
Bartosz Supczinski



_______________________________________________
--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: channels/chan_dahdi.c
===================================================================
--- channels/chan_dahdi.c       (revision 185465)
+++ channels/chan_dahdi.c       (working copy)
@@ -8605,13 +8605,13 @@
                                tmp->ss7call = NULL;
                                ss7->pvts[ss7->numchans++] = tmp;
 
-                               
ast_copy_string(linksets[span].internationalprefix, 
conf->ss7.internationalprefix, sizeof(linksets[span].internationalprefix));
-                               ast_copy_string(linksets[span].nationalprefix, 
conf->ss7.nationalprefix, sizeof(linksets[span].nationalprefix));
-                               
ast_copy_string(linksets[span].subscriberprefix, conf->ss7.subscriberprefix, 
sizeof(linksets[span].subscriberprefix));
-                               ast_copy_string(linksets[span].unknownprefix, 
conf->ss7.unknownprefix, sizeof(linksets[span].unknownprefix));
+                               ast_copy_string(ss7->internationalprefix, 
conf->ss7.internationalprefix, sizeof(ss7->internationalprefix));
+                               ast_copy_string(ss7->nationalprefix, 
conf->ss7.nationalprefix, sizeof(ss7->nationalprefix));
+                               ast_copy_string(ss7->subscriberprefix, 
conf->ss7.subscriberprefix, sizeof(ss7->subscriberprefix));
+                               ast_copy_string(ss7->unknownprefix, 
conf->ss7.unknownprefix, sizeof(ss7->unknownprefix));
 
-                               linksets[span].called_nai = 
conf->ss7.called_nai;
-                               linksets[span].calling_nai = 
conf->ss7.calling_nai;
+                               ss7->called_nai = conf->ss7.called_nai;
+                               ss7->calling_nai = conf->ss7.calling_nai;
                        }
 #endif
 #ifdef HAVE_PRI
_______________________________________________
--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

Reply via email to