[asterisk-ss7] chan_ss7 patch for Asterisk SVN

Anton anton.vazir at gmail.com
Wed Apr 12 05:00:57 MST 2006


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 at freesource.info>
To: Anton <anton.vazir at gmail.com>

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


More information about the asterisk-ss7 mailing list