chan_ss7 patch for Asterisk SVN

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

 



Thanks to Denis Smirnov, we have patch to compile chan_ss7 
for * SVN trunk.

Please see attached, if anyone is interested.

----------  Forwarded Message  ----------

Subject: Re: chan_ss7
Date: 10 April 2006 18:32
From: Denis Smirnov <mithraen@xxxxxxxxxxxxxxx>
To: Anton <anton.vazir@xxxxxxxxx>

Anton wrote:
> ???? ???????? ? ?????? 1.2.6 ? ??????? ??????????
> ???????????? 0.8.3 ??? ????????? ?? ??????? ????????????
> ? RBT

?????? ????????. ?? ??????? ???? ? _?????????_ trunk ??
 ???????????.

-------------------------------------------------------
-------------- next part --------------
diff -ur chan_ss7-0.8.3.orig/chan_ss7.c chan_ss7-0.8.3/chan_ss7.c
--- chan_ss7-0.8.3.orig/chan_ss7.c	2006-03-17 12:11:57 +0300
+++ chan_ss7-0.8.3/chan_ss7.c	2006-04-10 17:25:39 +0400
@@ -566,8 +566,7 @@
   }
 
   chan->tech = &ss7_tech;
-  snprintf(chan->name, sizeof(chan->name), "%s/%d", type, pvt->cic);
-  chan->type = type;
+  snprintf((char *)chan->name, sizeof(chan->name), "%s/%d", type, pvt->cic);
   chan->nativeformats = AST_FORMAT_ALAW;
   chan->rawreadformat = AST_FORMAT_ALAW;
   chan->rawwriteformat = AST_FORMAT_ALAW;
@@ -1273,7 +1272,7 @@
 
   ast_copy_string(chan->exten, iam->dni.num, sizeof(chan->exten));
   ast_copy_string(chan->context, pvt->context, sizeof(chan->context));
-  ast_copy_string(chan->language, pvt->language, sizeof(chan->language));
+  ast_string_field_set(chan, language, pvt->language);
 
   if(iam->ani.present) {
     chan->cid.cid_num = strdup(iam->ani.num);
@@ -4596,10 +4595,10 @@
   return res;
 }
 
-char *description() {
+const char *description() {
   return (char *) desc;
 }
 
-char *key() {
+const char *key() {
   return ASTERISK_GPL_KEY;
 }
?????? ? chan_ss7-0.8.3.orig: cluster.o
?????? ? chan_ss7-0.8.3.orig: config.o

[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