[Solved] Missing chan_sip module in Asterisk 10

I just installed Asterisk 10 to try it out on a box I built last weekend for SS7 with libss7. I have had prior experience with Asterisk 1.6 and Asterisk 1.8, both of which had sip as a CLI command when running Asterisk as well as the module chan_sip.so. However, I noticed both of these were missing in my current Asterisk 10 build. Obviously, if the sip module hasn’t loaded then I won’t have the CLI command available. Was chan_sip.so phased out for a different module that works with sip.conf? I have sip.conf and made the appropriate changes to get a SIP phone up and running but can’t seem to find chan_sip.so.

Thanks in advance!

Nope, Asterisk 10 still has chan_sip.so. What happened to your build?

That’s a good question. I didn’t catch any errors as I went through the build. Is the original build log still available/saved somewhere by default? I just checked /usr/lib/asterisk/modules and there is no chan_sip.so to be found. Can I simply recompile and install Asterisk again and see if it fixes the issue? If I do not issue make config will this prevent my current config files from being overwritten? My current box is setup with a Sangoma A104 using latest wanpipe drivers, dahdi-linux, dahdi-tools, libpri, and libss7. I’m using Asterisk 10.1.3.

The only thing I can think of is perhaps I inadvertently deselected chan_sip in modules when I was in the make menuselect window, but I can’t remember if chan_sip was even an option to select/deselect? I don’t know why I would’ve done that but otherwise it was a flawless install from what I remember.

See menuselect.makeopts

If you see chan_sip in the MENUSELECT_CHANNELS option, then it wasn’t selected for building.

Wasn’t built then, most likely. You did do a “make install” yes? Asterisk “core show version” indicates you’re actually running 10.1.3?

Most likely, yes. Run “make menuselect” first to see if chan_sip is selected to be built. If it’s not, select it, duh. :smiley:

“make config” is for the startup scripts. “make samples” creates sample files. Don’t run it, and you won’t have any trouble.

Sadly, Sangoma cards don’t fund the development of Asterisk, or these forums. :frowning: Buying cards from Digium does both.

[quote=“g9s0x”]
The only thing I can think of is perhaps I inadvertently deselected chan_sip in modules when I was in the make menuselect window, but I can’t remember if chan_sip was even an option to select/deselect? I don’t know why I would’ve done that but otherwise it was a flawless install from what I remember.[/quote]

Probably. It’s selected by default but can be unselected, just like nearly everything. See the “Channel Drivers” section of menuselect.

Thanks for the pointers malcolmd. I’ll give that a shot and see what I come up with.

I knew you would mention that working for Digium :smiley: Trust me, I have 2 Digium TE420 cards here and then this Sangoma A104. If the other Digium cards weren’t working flawlessly, I’d have grabbed one of those to begin with. I gave the A104 a shot just to save money, but I will say the Digium cards are much easier to work with and get setup. I’m a Digium supporter and customer so don’t worry!

Thanks for your help and support.

[quote=“g9s0x”]Thanks for the pointers malcolmd. I’ll give that a shot and see what I come up with.
[/quote]
Cool :smile:

:wink:

[quote=“g9s0x”]
Thanks for your help and support.[/quote]

No problem. :smiley:

I did do a make install during installation.

I confirmed that I have Asterisk 10.1.3 via core show version. My earlier assumption was based on the name of the directory created in /usr/src.

[quote]See menuselect.makeopts

If you see chan_sip in the MENUSELECT_CHANNELS option, then it wasn’t selected for building.[/quote]

I did see chan_sip here which indicated it wasn’t built as expected.

I then issued make menuselect and looked for chan_sip and found that it was XXX and not available to be selected due to missing dependencies or an existing conflict. I even tried to a ./configure first and then make menuselect but the same behavior occurred. What dependencies are required for chan_sip? This was a fresh install with CentOS 5.6 so perhaps I’m missing a dependency that is preventing chan_sip from loading.

Now I see why…

You’ll need to install openssl-devel and re-run ./configure.

This shows up in the center of the window and it showed Depends on: chan_local (M), res_crypto (M). I’m not sure what the (M) means here?

So I then checked that chan_local was selected, and it was; in fact, it was also correctly built as it shows up in /usr/lib/asterisk/modules. However, res_crypto was missing from /usr/lib/asterisk/modules.

So I then checked back in menuselect and saw that res_crypto was XXX as well. The dependency for res_crypto is openssl (E). As was the case with the (M) above, I’m not sure what (E) signifies, excuse the ignorance if this is basic :smiley:

I went into my Package Manager in CentOS and searched for openssl. I have the following two packages installed:

[ul]m2crypto-0.16-8.el5.i386
openssl-0.9.8e-20.el5_7.1.0.1.centos.i686[/ul]

I’m guessing I just need to install all the openssl packages that are available and I should be good? I will give that shot now and see where that takes me. Then I will need to reinstall Asterisk.

That did the trick. I installed all the required dependencies and then reinstalled asterisk and now I am able to configure SIP phones and make SIP calls on my ss7 box. Thanks again for your help malcolmd.

Yay! :smiley:

Hi… seems like I’m struggling with the SIP… this is the closest help I’ve found, so I think this is the best place to ask .

Same problem. Have the openssl installed but the “make menuselect” cant find the package so I can not get the crypto and of course nor the SIP… so I’m stuck.

It is simple, I think. There’s no such a thing as openssl-dev or openssl-devel but libssl-dev that I can install from my repositories… I certainly don’t know if it is possible to make Asterisk to work form my Ubuntu 11.10 (not a server version)

I can’t affort re-installing the openssl because it will blow several of the tools I already use for some other projects. Yet I do have a virtual machine, same configuration, same problem.

Both machimes have “openssl 1.0.0e-2ubuntu4.6”, does this one work for the Asterisk crypto?

And the main question. Does it have to be an Ubuntu server to make it work?