* You are viewing Posts Tagged ‘chan’

chan_sip.so module not loading

Hi,

I have installed asterisk 1.8.11.0. but there’s a problem with the sip
channel module.

The module chan_sip.so exists in /usr/lib/asterisk/modules, but it
won’t load at startup.
CLI command module load chan_sip.so also did not work.

Channel allocation failed

Hello List!

My Asterisk stopped making SIP-calls today, I could call from external, and
saw Call coming in over PRI, but calling the SIP/Device
wont work. I saw 5 open channels – all chan_spy. Only a restart helped.

In the messages-file i found from yesterday:

[Mar 4 17:28:01] NOTICE[25769] app_chanspy.c: Attaching SIP/209-0000170fto
SIP/210-0000170e
[Mar 4 17:29:38] NOTICE[25790] app_chanspy.c: Attaching SIP/209-00001715
to SIP/210-00001714
[Mar 4 17:31:06] NOTICE[25812] app_chanspy.c: Attaching SIP/209-0000171c
to SIP/210-0000171a
[Mar 4 17:31:19] ERROR[25818] acl.c: Cannot create socket
[Mar 4 17:31:19] ERROR[25818] res_timing_timerfd.c: Failed to create
timerfd timer: Too many open files
[Mar 4 17:31:19] WARNING[25818] channel.c: Channel allocation failed:
Can’t create alert pipe! Try increasing max file descriptors with ulimit -n
[Mar 4 17:31:19] WARNING[25818] chan_sip.c: Unable to allocate AST channel
structure for SIP channel
[Mar 4 17:31:19] WARNING[25818] channel.c: Channel allocation failed:Can’t
create alert pipe! Try increasing max file descriptors with ulimit -n
[Mar 4 17:31:19] WARNING[25818] chan_sip.c: Unable to allocate AST channel
structure for SIP channel
[Mar 4 17:31:20] ERROR[3685] acl.c: Cannot create socket
[Mar 4 17:31:20] ERROR[3685] acl.c: Cannot create socket
[Mar 4 17:31:23] NOTICE[25812] app_chanspy.c: Attaching SIP/209-0000171c
to SIP/212-00001718
[Mar 4 17:31:27] ERROR[3685] acl.c: Cannot create socket
[Mar 4 17:31:27] ERROR[3703] res_timing_timerfd.c: Failed to create
timerfd timer: Too many open files
[Mar 4 17:31:27] WARNING[25808] res_rtp_asterisk.c: RTP Read error: Bad
file descriptor. Hanging up.
[Mar 4 17:31:34] NOTICE[25824] app_chanspy.c: Attaching SIP/209-00001724
to SIP/210-00001722
[Mar 4 17:31:42] NOTICE[25824] app_chanspy.c: Attaching SIP/209-00001724
to SIP/205-0000171d
[Mar 4 17:32:47] NOTICE[3685] chan_sip.c: Got OK on REFER Notify message
[Mar 4 17:35:41] NOTICE[25861] app_chanspy.c: Attaching
SIP/209-0000172a to SIP/210-00001729

I’m not sure what’s going wrong? My ulimit should by unlimited.

yours
christian gansberger

app_rpt and chan_usbradio removal from trunk

On Thu, Feb 23, 2012 at 11:56:12AM -0600, Josh Freeman wrote:
> Just to inform the list -
>
> App_rpt and chan_usbradio are still regularly used and maintained, but
> now live in a repository at ohnosec.org along with the forked-off builds
> of Asterisk 1.4 and Zaptel that are required to have them work properly.
>
> I’m told there is some fundamental incompatibility between canonical
> Zaptel/DAHDI and the radio application that can’t be effectively worked
> around, or would take more effort than it would be worth to fix and keep
> up with DAHDI changes. This was the motivation for forking Asterisk and
> maintaining a separate codebase.

I’d appreciate some more details. Is it related to dahdi_cfg? pciradio
(is it still used?) ?

Bug reports would be welcomed.

Troubleshooting realtime LDAP

I’m attempting to pull SIP users from LDAP, following the instructions from here:

http://asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/ExternalServices_id291590.html

However, when I attempt to register a user from LDAP, I see on the console:

chan_sip.c:24431 handle_request_register: Registration from ‘‘ failed for ’172.20.24.131:3072′ – No matching peer found

Poking around with tcpdump I see that Asterisk sends a query to the LDAP server, and gets a response for that user, so the connection is working at least. So, Asterisk must not be recognizing the record as valid. However, I have no idea why. Is there some more verbose logging that can be enabled? How can I do test lookups with the realtime engine? I can’t find any place to start troubleshooting this issue.

I’m full of other questions, like:

what’s the difference between “sipusers” and “sippeers” in extconfig.conf?

what happens if I don’t provide all of the attributes (amaflags, callgroup, callerid…there are dozens listen in res_ldap.conf) in my LDAP directory? I don’t really want to duplicate all those settings for each user in my organization: that’s not very managable.

Any guidance from someone who’s been down this road would be appreciated.

How to receive SMS ?

Hi,

I’ve read here and there how Asterisk could send SMS but I didn’t find
much about how to receive SMS and forward them to an email box.

1. First of all, I don’t think my telco would let me receive any SMS
my landline.

2. Maybe I could find providers selling this service for a monthly fee;

3. I could build and operate my own infrastructure.

Given this asterisk-users mailing-list purpose, and for curiosity’s
sake, how could I build my own SMS reception service with Asterisk
(1.6.1 or later) ?
Which channel (chan_mobile, chan_datacard, …) and hardware would be
appropriate ?
Suggestions ?

Regards