Does asterisk work from the roms?

Post new topic   Reply to topic    DD-WRT Forum Index -> Generic Questions
Author Message
sthomo
DD-WRT Novice


Joined: 28 Oct 2014
Posts: 6

PostPosted: Thu Oct 30, 2014 7:00    Post subject: Does asterisk work from the roms? Reply with quote
I have been testing an ARM build that contains asterisk.

I move the asterisk.conf to /jffs/etc/asterisk and modify the paths. I change the module paths and it seems to get stuck on the module loading. In the modules.conf I just add chan_iax2.so and chan_sip.so and both come back with unresolved symbols.

Are there any pointers out there for how to get asterisk to work from the ROM?
Cheers

Stevo
Sponsor
sthomo
DD-WRT Novice


Joined: 28 Oct 2014
Posts: 6

PostPosted: Tue Nov 04, 2014 19:49    Post subject: Asterisk is stuffed Reply with quote
Asterisk isn't loading the shared objects correctly. It is a problem with asterisk not being modified to work with musl-libc.

I have a working version if anyone is interested - but I am not going to clean it up. If anyone is interested you can pm me
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7492
Location: Dresden, Germany

PostPosted: Thu Nov 06, 2014 16:08    Post subject: Reply with quote
i will take a look on it
_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
sthomo
DD-WRT Novice


Joined: 28 Oct 2014
Posts: 6

PostPosted: Fri Nov 07, 2014 7:40    Post subject: Reply with quote
I have all a working version with musl. The module loading with the RTLD_LOCAL and RTLD_GLOBAL that asterisk uses isn't going to work.

However, from what I can see the deadlock is caused by this patch not being applied.


--- asterisk-12.6.0/include/asterisk/lock.h 2013-11-02 04:05:24.000000000 +0000
+++ asterisk-12.6.1/include/asterisk/lock.h 2014-11-05 03:34:04.257868679 +0000
@@ -66,9 +66,9 @@
#define AST_PTHREADT_NULL (pthread_t) -1
#define AST_PTHREADT_STOP (pthread_t) -2

-#if (defined(SOLARIS) || defined(BSD))
+//#if (defined(SOLARIS) || defined(BSD))
#define AST_MUTEX_INIT_W_CONSTRUCTORS
-#endif /* SOLARIS || BSD */
+//#endif /* SOLARIS || BSD */

/* Asterisk REQUIRES recursive (not error checking) mutexes
and will not run without them. */


BrainSlayer wrote:
i will take a look on it
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Generic Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum