E1 configuration params

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Patch against which version of Asterisk n Libss7? 

Mitul 

Gustavo M?rsico <gustavomarsico at gmail.com> wrote:

>Hope this helps.
>
>--- chan_dahdi.c
>+++ chan_dahdi.c
>@@ -381,6 +381,7 @@
> static int cur_adjpointcode = -1;
> static int cur_networkindicator = -1;
> static int cur_defaultdpc = -1;
>+static int cur_slc = -1;
> #endif /* HAVE_SS7 */
> 
> #ifdef HAVE_PRI
>@@ -13948,6 +13949,11 @@
> 		return -1;
> 	} else
> 		ss7_set_pc(link->ss7, cur_pointcode);
>+	
>+	if (cur_slc < 0) {
>+		ast_log(LOG_ERROR, "Unspecified SLC!\n");
>+		return -1;
>+	}
> 
> 	if (sigchan < 0) {
> 		ast_log(LOG_ERROR, "Invalid sigchan!\n");
>@@ -13993,9 +13999,9 @@
> 		}
> 
> 		if (p.sigtype == DAHDI_SIG_MTP2)
>-			ss7_add_link(link->ss7, SS7_TRANSPORT_DAHDIMTP2, link->fds[curfd]);
>+			ss7_add_link(link->ss7, SS7_TRANSPORT_DAHDIMTP2, link->fds[curfd], cur_slc);
> 		else
>-			ss7_add_link(link->ss7, SS7_TRANSPORT_DAHDIDCHAN, link->fds[curfd]);
>+			ss7_add_link(link->ss7, SS7_TRANSPORT_DAHDIDCHAN, link->fds[curfd], cur_slc);
> 
> 		link->numsigchans++;
> 
>@@ -16086,6 +16092,8 @@
> 				if (res < 0)
> 					return -1;
> 
>+			} else if (!strcasecmp(v->name, "slc")) {
>+				cur_slc = atoi(v->value);
> 			} else if (!strcasecmp(v->name, "ss7_explicitacm")) {
> 				struct dahdi_ss7 *link;
> 				link = ss7_resolve_linkset(cur_linkset);
>
>
>
>
>On Jan 10, 2011, at 9:50 PM, mitul at enterux.com wrote:
>
>> Dear Gustavo,
>> 
>> I would appreciate if you can point me to this patch. 
>> 
>> Regards,
>> Mitul Limbani
>> Enterux Solutions
>> 
>> 
>> Gustavo M?rsico <gustavomarsico at gmail.com> wrote:
>> 
>>> Not in the release, but there is a patch to do it.
>>> 
>>> 
>>> On Jan 10, 2011, at 5:38 PM, mitul at enterux.com wrote:
>>> 
>>>> Just a question running my mind does Digium LIBSS7 have SLC= parameter that it reads from chan_dahdi.conf coz it does show me some warnings, undefined parameter I load or reload dahdi within asterisk. 
>>>> 
>>>> Any one - Matt, can you give us an update if such varaible can be defined using std configuration. 
>>>> 
>>>> Regards,
>>>> Mitul Limbani
>>>> 
>>>> 
>>>> Wasim Baig <wasim at convergence.pk> wrote:
>>>> 
>>>>> On Sun, Jan 9, 2011 at 23:18, Benaiad <benaiad at gmail.com> wrote:
>>>>> 
>>>>>> Hi,
>>>>>> 
>>>>>> ;First of all, I'm newbie in this field, so please forgive
>>>>>> my unprofessional explanation.
>>>>>> 
>>>>> 
>>>>>> I'm trying to connect to a mobile operator with chan_ss7 using sangoma
>>>>>> card.
>>>>>> the telecom regulator initiated an SPC code for us
>>>>>> Now, the operator's engineer asked me for the following parameters:
>>>>>> OPC , Link type , TS , SLC.
>>>>>> 
>>>>> 
>>>>> Ideally, they should give a Point Code for you as well, if they don't, you
>>>>> can choose any
>>>>> arbitrary figure like "1234" or "1" or "69".
>>>>> 
>>>>> 
>>>>>> but I don't know what should I provide to him.
>>>>>> I think the OPC similar to our SPC, And the Link type is 64k,
>>>>>> But for TS and SLC, I don't know what to say.
>>>>>> 
>>>>> 
>>>>> TS is the timeslot/chan on which you will send signalling. On each E1 you
>>>>> have 31 TS.
>>>>> Normally 16 is used, although you can use any 1 to 31.
>>>>> 
>>>>> Use SLC=0 for the first link.
>>>>> 
>>>>> 
>>>>>> 
>>>>>> I appreciate and applaud your help and concern.
>>>>>> 
>>>>>> Thank you all.
>>>>>> 
>>>>>> Regards,
>>>>>> --
>>>>>> Benaiad
>>>>>> 
>>>>>> --
>>>>>> _____________________________________________________________________
>>>>>> -- 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
>>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> -- 
>>>>> wasim h. baig | principal consultant | convergence pk | +92 30 0850 8070 |
>>>>> peace be upon you ...
>>>>> 
>>>>> --
>>>>> _____________________________________________________________________
>>>>> -- 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


[Index of Archives]     [Asterisk App Development]     [PJ SIP]     [Gnu Gatekeeper]     [IETF Sipping]     [Info Cyrus]     [ALSA User]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite Backpacking]     [Deep Creek Hot Springs]     [Yosemite Campsites]     [ISDN Cause Codes]     [Asterisk Books]

  Powered by Linux