Adding Alarm Receiver

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

Adding Alarm Receiver

Postby edatsecure » Wed Jan 13, 2016 2:15 pm

hi, I am working with an OpenWRT router with Asterisk already installed and configured for the board; however, Alarm Receiver was stripped from Asterisk before being installed.

Is there any way to add Alarm Receiver to Asterisk after it is already on the router or will I have to recompile their Asterisk build with Alarm Receiver?

I'm very new to Asterisk so I apologize if this is a naive question.

specifics:
- Processor: AR9331
- OpenWRT 12.09
- Asterisk 11.16.0

Thanks for the help,
-ED
edatsecure
Newsterisk
 
Posts: 3
Joined: Tue Jan 12, 2016 11:13 pm

Re: Adding Alarm Receiver

Postby malcolmd » Thu Jan 14, 2016 9:15 am

You'll have to have a compiled app_alarmreceiver.so. So..you'll need the environment that did the build and you'll need to add, rebuild, and then you can drop the .so in place on the router.
Malcolm Davenport
Digium, Inc. | Senior Product Manager
malcolmd
Moves Like Spencer
 
Posts: 3019
Joined: Wed Aug 03, 2005 3:53 pm
Location: Huntsville, AL, US

Re: Adding Alarm Receiver

Postby edatsecure » Tue Jan 19, 2016 3:38 pm

There was a compiled alarmreceiver that could be installed using opkg; however, Asterisk was unwilling to run the app because it "was not compiled with the same compile-time options" (the Asterisk CLI output is below). I did notice that the AlarmReceiver is version 11.12 where the Asterisk version is 11.16. Is this the problem? Will a new app_alarmreceiver.so need to be compiled under a newer environment?

Thanks for the help,
-ED

dragino-143800*CLI> module load app_alarmreceiver.so
Unable to load module app_alarmreceiver.so
Command 'module load app_alarmreceiver.so' failed.
[Jan 19 19:56:18] WARNING[1813]: loader.c:840 inspect_module: Module 'app_alarmreceiver.so' was not compiled with the same compile-time options as this version of Asterisk.
[Jan 19 19:56:18] WARNING[1813]: loader.c:841 inspect_module: Module 'app_alarmreceiver.so' will not be initialized as it may cause instability.
[Jan 19 19:56:18] WARNING[1813]: loader.c:931 load_resource: Module 'app_alarmreceiver.so' could not be loaded.
edatsecure
Newsterisk
 
Posts: 3
Joined: Tue Jan 12, 2016 11:13 pm

Re: Adding Alarm Receiver

Postby david55 » Wed Jan 20, 2016 2:09 am

You need to compile it under exactly the same environment, both Asterisk version, platform, and the settings selected with menuconfig. In many cases the code will run properly when this is not true, but it would take a careful analysis of the code to be sure of that.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am


Return to Asterisk Support

Who is online

Users browsing this forum: Google [Bot] and 1 guest