* You are viewing the archive for February, 2012

GSM gateway call redirect

Hi,

I have a Portech mv-374 GSM IP gateway and I have to redirect all the
incoming calls to a certain phone number on every weeknight and all the
weekend. What would be the best solution? I have to do it by asterisk
because I have to record all the communication.

Thanks for your help in advance.

Best regards,
Peter Gelencser

asterisk distributions

I’m looking at replacing a PBX for a small business with an asterisk
box. I’m rather attracted to the idea of one of the iso distributions
where someone did most of the integration for us already ;)

Can anyone comment on the pros/cons of the various options? I’m seeing
several options out there:

-Trixbox CE (no new version since 2010? is this project dead?)
-Asterisk NOW
-PBX in a Flash
-Elastix

Problem while sending SIP NOTIFY via AMI in 1.8.10-rc2

Hi,

while testing asterisk 1.8.10-rc2 I stumbled across a weird behavior. I
want to notify a snom phone to reload its configuration. For this to
happen, I use the NOTIFY mechanism. I started the notify via AMI
command. Asterisk is bound to udp 25060, because all phones are
registered with a local opensips proxy which uses 5060. The expected
behavior would be:
asterisk send SIP NOTIFY to the proxy, the proxy sends it to the phone.

Actually asterisk sends the packet to the proxy, but the contact header
contains something invalid (IMHO):

On Manager Interface:
T 127.0.0.1:57530 -> 127.0.0.1:5038 [AP]
Action: SIPnotify.
Channel: SIP/max.
Variable: Event=check-sync;reboot=false.

Leads to:
U 192.168.10.72:25060 -> 192.168.10.72:5060
NOTIFY sip:max@192.168.10.72 SIP/2.0.
Via: SIP/2.0/UDP 192.168.10.72:0;branch=z9hG4bK1dff6efe.
Max-Forwards: 70.
From: “asterisk” ;tag=as66766c2a.
To: .
Contact: .
Call-ID: 412a8eff76bd7ac56ac06831256fd6aa@192.168.10.72.
CSeq: 102 NOTIFY.
Subscription-State: terminated.
Event: check-sync;reboot=false.
Content-Length: 0.

The weird thing is the port number 0 in the contact header.

Is this a bug or do I something wrong?

Thanks,

Karsten

Getting Ulimit Message after restart asterisk service

Hi all,

Currently I’m getting this message after restarting asterisk service;

Starting asterisk: /usr/sbin/safe_asterisk: line 86: ulimit: open files:
cannot modify limit: Operation not permitted

Before when I had root access I was not facing this message after that
system administrator assigned me sudo access for restarting asterisk
service.

Please assist me out to resolve this issue at earliest. I also tried to set
ulimit till 4-40 times higher than currently set i.e. 1024 but still giving
me same message.

Getting Ulimit Message after restart asterisk service

Hi all,

Currently I’m getting this message after restarting asterisk service;

Starting asterisk: /usr/sbin/safe_asterisk: line 86: ulimit: open files:
cannot modify limit: Operation not permitted

Before when I had root access I was not facing this message after that
system administrator assigned me sudo access for restarting asterisk
service.

Please assist me out to resolve this issue at earliest. I also tried to set
ulimit till 4-40 times higher than currently set i.e. 1024 but still giving
me same message.

Asterisk Ulimit

After re/starting Asterisk with a user other than root you might see this error:

"/usr/sbin/safe_asterisk: line 86: ulimit: open files: cannot modify limit: Operation not permitted"

,
even if you try to set the current ulimit to a higher level.

Edit your ‘/usr/sbin/safe_asterisk‘ and comment (put #) the line 86 and 102. Or you can also modify ‘/etc/sudoers‘ in order to to allow your user to call ulimit via sudo. The reason for this is that Asterisk will limit the number of open files it uses if you are not a super-user, to 32K (look at line 32). Anyways, it’s very likely that Linux will cut you off at lower number than that.