[asterisk-ss7] chan_ss7 or libss7 work with asterisk v13?

Goke Aruna goksie at gmail.com
Mon Apr 18 08:37:43 CDT 2016


Thanks Jean,
Anders sent same to me few minutes ago.
The error I got while trying to compile it is as contained below.

[root at voipsipgw1 chan_ss7-2.3.11]# make
Makefile:188: .depend: No such file or directory
gcc  -I../source/telephony/dahdi/include
-I../source/telephony/asterisk/include -g -pipe -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE
-DPIC -fpic  -finline-functions -DCHAN_SS7_VERSION=\"2.3.11\" -o astversion
astversion.c -lpthread
./astversion > astversion.h.tmp && mv -f astversion.h.tmp astversion.h
gcc -MM -E -I../source/telephony/dahdi/include
-I../source/telephony/asterisk/include -g -pipe -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE
-DPIC -fpic  -finline-functions -DCHAN_SS7_VERSION=\"2.3.11\" astversion.h
chan_ss7.c l4isup.c isup.c mtp.c utils.c config.c configparser.c cluster.c
lffifo.c transport.c cli.c dump.c mtp3io.c astversion.c aststubs.c mtp3d.c
mtp3cli.c l4isup.h isup.h mtp.h utils.h config.h configparser.h cluster.h
lffifo.h cli.h dump.h transport.h aststubs.h mtp3io.h > .depend.new && mv
-f .depend.new .depend || rm -f .depend.new
gcc -c -I../source/telephony/dahdi/include
-I../source/telephony/asterisk/include -g -pipe -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE
-DPIC -fpic  -finline-functions -DCHAN_SS7_VERSION=\"2.3.11\" -o chan_ss7.o
chan_ss7.c
gcc -I../source/telephony/dahdi/include
-I../source/telephony/asterisk/include -g -pipe -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE
-DPIC -fpic  -finline-functions -DCHAN_SS7_VERSION=\"2.3.11\"   -c -o
l4isup.o l4isup.c
l4isup.c:256:3: warning: initialization from incompatible pointer type
[enabled by default]
   .requester = ss7_requester,
   ^
l4isup.c:256:3: warning: (near initialization for ‘ss7_tech.requester’)
[enabled by default]
l4isup.c: In function ‘ss7_new’:
l4isup.c:955:21: error: storage size of ‘format’ isn’t known
   struct ast_format format;
                     ^
l4isup.c:968:3: error: incompatible type for argument 10 of
‘__ast_channel_alloc’
   chan = ast_channel_alloc(1, state, cid_num, NULL, NULL, exten,
pvt->context, NULL, 0, "%s/%s/%d", type, pvt->link->linkset->name,
pvt->cic);
   ^
In file included from l4isup.c:46:0:
/usr/include/asterisk/channel.h:1161:2: note: expected ‘enum ama_flags’ but
argument is of type ‘char *’
  __ast_channel_alloc(int needqueue, int state, const char *cid_num,
  ^
l4isup.c:992:5: warning: implicit declaration of function ‘ast_format_set’
[-Wimplicit-function-declaration]
     ast_format_set(&format, AST_FORMAT_ULAW, 0);
     ^
l4isup.c:992:29: error: ‘AST_FORMAT_ULAW’ undeclared (first use in this
function)
     ast_format_set(&format, AST_FORMAT_ULAW, 0);
                             ^
l4isup.c:992:29: note: each undeclared identifier is reported only once for
each function it appears in
l4isup.c:994:29: error: ‘AST_FORMAT_ALAW’ undeclared (first use in this
function)
     ast_format_set(&format, AST_FORMAT_ALAW, 0);
                             ^
l4isup.c:996:3: warning: implicit declaration of function
‘ast_format_cap_add’ [-Wimplicit-function-declaration]
   ast_format_cap_add(ast_channel_nativeformats(chan), &format);
   ^
l4isup.c:997:3: warning: implicit declaration of function ‘ast_format_copy’
[-Wimplicit-function-declaration]
   ast_format_copy(ast_channel_rawreadformat(chan), &format);
   ^
l4isup.c:955:21: warning: unused variable ‘format’ [-Wunused-variable]
   struct ast_format format;
                     ^
l4isup.c: In function ‘ss7_requester’:
l4isup.c:1081:3: warning: implicit declaration of function
‘ast_getformatname_multiple’ [-Wimplicit-function-declaration]
   ast_log(LOG_DEBUG, "SS7 request (%s/%s) format %s.\n", type, arg,
ast_getformatname_multiple(tmp, sizeof(tmp),cap));
   ^
l4isup.c:1081:3: warning: format ‘%s’ expects argument of type ‘char *’,
but argument 8 has type ‘int’ [-Wformat=]
l4isup.c:1083:39: error: ‘AST_FORMAT_TYPE_AUDIO’ undeclared (first use in
this function)
   if (!((ast_format_cap_has_type(cap, AST_FORMAT_TYPE_AUDIO)) &
(AST_FORMAT_ALAW | AST_FORMAT_ULAW)))  {
                                       ^
l4isup.c:1083:66: error: ‘AST_FORMAT_ALAW’ undeclared (first use in this
function)
   if (!((ast_format_cap_has_type(cap, AST_FORMAT_TYPE_AUDIO)) &
(AST_FORMAT_ALAW | AST_FORMAT_ULAW)))  {
                                                                  ^
l4isup.c:1083:84: error: ‘AST_FORMAT_ULAW’ undeclared (first use in this
function)
   if (!((ast_format_cap_has_type(cap, AST_FORMAT_TYPE_AUDIO)) &
(AST_FORMAT_ALAW | AST_FORMAT_ULAW)))  {

^
l4isup.c:1084:5: warning: format ‘%s’ expects argument of type ‘char *’,
but argument 6 has type ‘int’ [-Wformat=]
     ast_log(LOG_NOTICE, "Audio format 0x%s not supported by SS7
channel.\n", ast_getformatname_multiple(tmp, sizeof(tmp),cap));
     ^
l4isup.c: In function ‘ss7_read’:
l4isup.c:2757:49: error: ‘AST_FORMAT_ULAW’ undeclared (first use in this
function)
     ast_format_set(&pvt->frame.subclass.format, AST_FORMAT_ULAW, 0);
                                                 ^
l4isup.c:2759:49: error: ‘AST_FORMAT_ALAW’ undeclared (first use in this
function)
     ast_format_set(&pvt->frame.subclass.format, AST_FORMAT_ALAW, 0);
                                                 ^
l4isup.c: In function ‘ss7_write’:
l4isup.c:2872:71: error: request for member ‘id’ in something not a
structure or union
   if((frame->frametype != AST_FRAME_VOICE) || ((frame->subclass.format.id
!= AST_FORMAT_ALAW) && (frame->subclass.format.id != AST_FORMAT_ULAW))) {
                                                                       ^
l4isup.c:2872:78: error: ‘AST_FORMAT_ALAW’ undeclared (first use in this
function)
   if((frame->frametype != AST_FRAME_VOICE) || ((frame->subclass.format.id
!= AST_FORMAT_ALAW) && (frame->subclass.format.id != AST_FORMAT_ULAW))) {

^
l4isup.c:2872:121: error: request for member ‘id’ in something not a
structure or union
   if((frame->frametype != AST_FRAME_VOICE) || ((frame->subclass.format.id
!= AST_FORMAT_ALAW) && (frame->subclass.format.id != AST_FORMAT_ULAW))) {

^
l4isup.c:2872:128: error: ‘AST_FORMAT_ULAW’ undeclared (first use in this
function)
   if((frame->frametype != AST_FRAME_VOICE) || ((frame->subclass.format.id
!= AST_FORMAT_ALAW) && (frame->subclass.format.id != AST_FORMAT_ULAW))) {

^
l4isup.c: In function ‘init_pvt’:
l4isup.c:5047:49: error: ‘AST_FORMAT_ULAW’ undeclared (first use in this
function)
     ast_format_set(&pvt->frame.subclass.format, AST_FORMAT_ULAW,0);
                                                 ^
l4isup.c:5051:49: error: ‘AST_FORMAT_ALAW’ undeclared (first use in this
function)
     ast_format_set(&pvt->frame.subclass.format, AST_FORMAT_ALAW,0);
                                                 ^
l4isup.c: In function ‘isup_init’:
l4isup.c:5279:21: error: storage size of ‘tmpfmt’ isn’t known
   struct ast_format tmpfmt;
                     ^
In file included from /usr/include/asterisk/data.h:29:0,
                 from /usr/include/asterisk/channel.h:176,
                 from l4isup.c:46:
l4isup.c:5381:33: error: expected expression before ‘)’ token
   if (!(ss7_tech.capabilities = ast_format_cap_alloc())) {
                                 ^
l4isup.c:5384:69: error: ‘AST_FORMAT_ALAW’ undeclared (first use in this
function)
   ast_format_cap_add(ss7_tech.capabilities, ast_format_set(&tmpfmt,
AST_FORMAT_ALAW, 0));
                                                                     ^
l4isup.c:5385:69: error: ‘AST_FORMAT_ULAW’ undeclared (first use in this
function)
   ast_format_cap_add(ss7_tech.capabilities, ast_format_set(&tmpfmt,
AST_FORMAT_ULAW, 0));
                                                                     ^
l4isup.c:5391:5: warning: implicit declaration of function
‘ast_format_cap_destroy’ [-Wimplicit-function-declaration]
     ast_format_cap_destroy(ss7_tech.capabilities);
     ^
l4isup.c:5279:21: warning: unused variable ‘tmpfmt’ [-Wunused-variable]
   struct ast_format tmpfmt;
                     ^



Regards


On Mon, Apr 18, 2016 at 2:28 PM, Jean Cérien <cerien.jean at gmail.com> wrote:

>
> I've asked directly and received this message from the Netfors people in
> January this year (2016)
>
> *"There are currently no plans for asterisk 13 compatibility, but I expect
> it will be at the latest this coming spring."*
>
>
>
> On Mon, Apr 18, 2016 at 9:20 AM, Abdul Basit <basit.engg at gmail.com> wrote:
>
>> Give it test drive with asterisk 13.
>> couldn't test ss7 libraries with asterisk v13.
>> On 18 Apr 2016 13:56, "Goke Aruna" <goksie at gmail.com> wrote:
>>
>>> Hi all,
>>> Does libss7 or chan_ss7 work with asterisk 13?
>>> Regards
>>>
>>> --
>>> _____________________________________________________________________
>>> -- 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-ss7/attachments/20160418/309e8451/attachment-0001.html>


More information about the asterisk-ss7 mailing list