[asterisk-users] Strange Issue: asterisk deleted

2014-11-26 Thread Antoine Megalla
Hi,
I am struggling with  a very strange issue I have been facing for the past 
week;I have a fresh install of CENTOS 5.11 and I have installed asterisk 1.8.32 
form sources.The asterisk installation went fine but as soon as I start 
asterisk executable it loads everything and then after the Ready line the 
process gets killed and when I try to run it again i get: /usr/sbin/asterisk : 
command not found
I cleaned the source and re-installed asterisk and again the same thing 
happened again !!!I downloaded asterisk versions 1.4, 11, 12 and compiled them 
from sources and installed them (make install) and amazingly, the same thing 
happened to all of them: I do a make then make install and as soon as I 
start asterisk the process is killed and the executable removed from /usr/sbin.
I tried to look a the asterisk log files but I cannot find a single error in 
them.Also if it was really deleted how did bash know that asterisk is supposed 
to be located in /usr/sbin/asterisk ?
I tried to copy the executable myself after compilation (everything done as 
root) to the /usr/sbin and again if it runs then it is deleted.
If someone can explain to me this behavior or advise me on what to check to 
resolve this issue, then I would be grateful.
Thank you for your help.Regards,Antoine Megalla
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Strange Issue: asterisk deleted

2014-11-26 Thread Thorsten Göllner

Am 26.11.2014 11:37, schrieb Antoine Megalla:
 Hi,

 I am struggling with  a very strange issue I have been facing for the
 past week;
 I have a fresh install of CENTOS 5.11 and I have installed asterisk
 1.8.32 form sources.
 The asterisk installation went fine but as soon as I start asterisk
 executable it loads everything and then after the Ready line the
 process gets killed and when I try to run it again i get:
 /usr/sbin/asterisk : command not found

 I cleaned the source and re-installed asterisk and again the same
 thing happened again !!!
 I downloaded asterisk versions 1.4, 11, 12 and compiled them from
 sources and installed them (make install) and amazingly, the same
 thing happened to all of them: I do a make then make install and
 as soon as I start asterisk the process is killed and the executable
 removed from /usr/sbin.

 I tried to look a the asterisk log files but I cannot find a single
 error in them.
 Also if it was really deleted how did bash know that asterisk is
 supposed to be located in /usr/sbin/asterisk ?

 I tried to copy the executable myself after compilation (everything
 done as root) to the /usr/sbin and again if it runs then it is deleted.

 If someone can explain to me this behavior or advise me on what to
 check to resolve this issue, then I would be grateful.


Hi,

you write Also if it was really deleted .. - did you looked at it via
ls /usr/sbin/asterisk?

You compiled asterisk (make / make install) as root I think. Perhaps
access rights are not set properly? root is owner but you try to start
the daemon as normal user?

You write the process is killed. Where do you now? Did you get a
message on your terminal? Did you take a look at /var/log/syslog?

Best regards
-Thorsten-
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Strange Issue: asterisk deleted

2014-11-26 Thread Tzafrir Cohen
On Wed, Nov 26, 2014 at 10:37:49AM +, Antoine Megalla wrote:
 Hi,
 I am struggling with  a very strange issue I have been facing for the past 
 week;I have a fresh install of CENTOS 5.11 and I have installed asterisk 
 1.8.32 form sources.The asterisk installation went fine but as soon as I 
 start asterisk executable it loads everything and then after the Ready line 
 the process gets killed and when I try to run it again i get: 
 /usr/sbin/asterisk : command not found
 I cleaned the source and re-installed asterisk and again the same thing 
 happened again !!!I downloaded asterisk versions 1.4, 11, 12 and compiled 
 them from sources and installed them (make install) and amazingly, the same 
 thing happened to all of them: I do a make then make install and as soon 
 as I start asterisk the process is killed and the executable removed from 
 /usr/sbin.

If you suspect that something is being run from the asterisk process or
one of its children, run it under 'strace -f' and look for hints (e.g.:
'unlink') in the generated log.

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Strange Issue: asterisk deleted

2014-11-26 Thread Antoine Megalla
Hi,

I looked for asterisk in /usr/sbin using the commands ls and find and whereis 
and it was not there.

I know that the process is killed because when I start asterisk using the 
command asterisk -c it starts and then it exits and the word killed is 
wrote on the console.

Ever time I copy a new executable to /usr/sbin either using cp command or make 
install it gets deleted too.

Now I used the strace command on asterisk and I can clearly see at the end of 
the strace the line : killed by SIGKILL 
This means that something or someone is actually and purposely killing asterisk 
but I do not know what or who is doing that also I know that I am the only user 
on the system.

Again any indicators to solve this very weird issue are welcomed.

Regards,
Antoine Megalla

Sent from my iPhone

On Nov 26, 2014, at 6:12 PM, Thorsten Göllner t...@ovm-group.com wrote:

 
 Am 26.11.2014 11:37, schrieb Antoine Megalla:
 Hi,
 
 I am struggling with  a very strange issue I have been facing for the past 
 week;
 I have a fresh install of CENTOS 5.11 and I have installed asterisk  
  1.8.32 form sources.
 The asterisk installation went fine but as soon as I start asterisk 
 executable it loads everything and then after the Ready line the process 
 gets killed and when I try to run it again i get: /usr/sbin/asterisk : 
 command not found
 
 I cleaned the source and re-installed asterisk and again the same thing 
 happened again !!!
 I downloaded asterisk versions 1.4, 11, 12 and compiled them from sources 
 and installed them (make install) and amazingly, the same thing happened to 
 all of them: I do a make then make install and as soon as I start 
 asterisk the process is killed and the executable removed from /usr/sbin.
 
 I tried to look a the asterisk log files but I cannot find a single error in 
 them.
 Also if it was really deleted how did bash know that asterisk is supposed to 
 be located in /usr/sbin/asterisk ?
 
 I tried to copy the executable myself after compilation (everything done as 
 root) to the /usr/sbin and again if it runs then it is deleted.
 
 If someone can explain to me this behavior or advise me on what to check to 
 resolve this issue, then I would be grateful.
 
 Hi,
 
 you write Also if it was really deleted .. - did you looked at it via ls 
 /usr/sbin/asterisk?
 
 You compiled asterisk (make / make install) as root I think. Perhaps access 
 rights are not set properly? root is owner but you try to start the daemon as 
 normal user?
 
 You write the process is killed. Where do you now? Did you get a message on 
 your terminal? Did you take a look at /var/log/syslog?
 
 Best regards
 -Thorsten-
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] High resident memory with 11.14.0 ?

2014-11-26 Thread James Lamanna
On Tue, Nov 25, 2014 at 10:21 AM, James Lamanna jlama...@gmail.com wrote:


 On Tue, Nov 25, 2014 at 8:14 AM, Matthew Jordan mjor...@digium.com
 wrote:

 On Mon, Nov 24, 2014 at 2:12 PM, James Lamanna jlama...@gmail.com
 wrote:
  Also, how big does the cache in frame.c grow to?
  I've recompiled with MALLOC_DEBUG on that server:
 
  asterisk -rx memory show summary
 
  
  1780466242 bytes (1780181594 cache) in2352909 allocations in file
  frame.c
  ...
 
  Seems like a ridiculous cache.
 

 I'm not going to respond to your new thread, since it is the same
 discussion as this one.

 The frame cache is a per-thread local cache of frames that prevents
 having to re-allocate frames as they pass through Asterisk. Clearly,
 something is abusing it.

 I think you'll need to provide some more information on how you're
 producing this situation. Specifically:
  * Channel technologies involved, and the formats on the channels
  * Dialplan that reproduces the problem

 Are you using any non-core dialplan applications or channel drivers?


 This PBX has about 100 registered SIP clients, along with 23 PRI channels,
 2 inbound/outbound SIP trunks and around 100 IAXModems registered to it. It
 primarily handles faxing.
 I am not using any non-standard channel drivers. I am using the T.38
 gateway funcionality.

 The jist of the dialplan is this: (example of the PRI and a SIP trunk,
 inbound)

 [pri-in]
 exten = _X.,1,Set(__FROM_DID=${EXTEN})
 exten = _X.,n,Set(FAX_IDX=700)
 exten = _X.,n,Set(MAX_IDX=719)
 exten = _X.,n,Goto(dial-hylafax,s,1)

 [sip-trunk-in]
 exten = _X.,1(normal),Set(__FROM_DID=${EXTEN})
 exten = _X.,n,Set(FAX_IDX=950)
 exten = _X.,n,Set(MAX_IDX=959)
 exten = _X.,n,Set(FAXOPT(gateway)=yes)
 exten = _X.,n,Goto(dial-hylafax,s,1)

 [dial-hylafax]
 exten = s,1,GotoIf($[${FROM_DID:0:1} = 1]?prune:cont)
 exten = s,n(prune),Set(__FROM_DID=${FROM_DID:1})
 exten = s,n(cont),GotoIf($[${FAX_IDX} = ${MAX_IDX}]?tryfax:nofax)
 exten = s,n(tryfax),Set(STATE=${DEVICE_STATE(Custom:iaxmodem${FAX_IDX})})
 exten = s,n,NoOp(${STATE})
 exten = s,n,Set(DEVICE_STATE(Custom:iaxmodem${FAX_IDX})=INUSE)
 exten = s,n,Dial(IAX2/iaxmodem${FAX_IDX}/${FROM_DID},60,g)
 exten = s,n,Goto(s-${DIALSTATUS},1)
 exten = s,n(nofax),Playtones(busy)
 exten = s,n,NoOp(NO MODEMS AVAILABLE)
 exten = s,n,Wait(20)
 exten = s,n,Hangup()
 exten = s-ANSWER,1,NoOp(IAXMODEM HANGUP)
 exten = s-ANSWER,n,Set(DEVICE_STATE(Custom:iaxmodem${FAX_IDX})=NOT_INUSE)
 exten = s-ANSWER,n,Hangup()
 exten = _s-.,1,Set(FAX_IDX=${MATH(1+${FAX_IDX},i)})
 exten = _s-.,n,Goto(s,1)
 exten = h,1,Set(DEVICE_STATE(Custom:iaxmodem${FAX_IDX})=NOT_INUSE)

 The current state requires me to restart Asterisk almost every day.
 I'm also seeing this on a completely different machine after upgrading
 from Asterisk10 to 11.


I'm wondering if this is a problem in the SLIN converter?
I do use SLIN with iaxmodem.

-- James
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Strange Issue: asterisk deleted

2014-11-26 Thread Chad Wallace
On Wed, 26 Nov 2014 22:08:05 +0200
Antoine Megalla aa...@rocketmail.com wrote:

 I looked for asterisk in /usr/sbin using the commands ls and find and
 whereis and it was not there.
 
 I know that the process is killed because when I start asterisk using
 the command asterisk -c it starts and then it exits and the word
 killed is wrote on the console.
 
 Ever time I copy a new executable to /usr/sbin either using cp
 command or make install it gets deleted too.
 
 Now I used the strace command on asterisk and I can clearly see at
 the end of the strace the line : killed by SIGKILL This means that
 something or someone is actually and purposely killing asterisk but I
 do not know what or who is doing that also I know that I am the only
 user on the system.

I don't know if there's any way to see where the signal comes from.
But I think it would have to be another process.  Is this a hosted
machine?  Could it be that your hosting provider doesn't allow
asterisk?  This would be a good way to enforce that rule.  Otherwise,
it could be a root kit or a virus.

Or it could be that you (or someone else) wanted to make sure asterisk
wasn't running at some point and left while true; do killall -9
asterisk; done running in a shell, and forgot about it.

You can list all the processes with the command ps -ef

And to see if anyone else (or yourself) is logged in, run w.  That
will show every individual session and where they're connected from.


-- 

C. Chad Wallace, B.Sc.
The Lodging Company
http://www.lodgingcompany.com/
OpenPGP Public Key ID: 0x262208A0


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Strange Issue: asterisk deleted

2014-11-26 Thread Marie Fischer

On 26.11.2014, at 22:08, Antoine Megalla aa...@rocketmail.com wrote:
 The asterisk installation went fine but as soon as I start asterisk 
 executable it loads everything and then after the Ready line the process 
 gets killed and when I try to run it again i get: /usr/sbin/asterisk : 
 command not found
 
 I looked for asterisk in /usr/sbin using the commands ls and find and whereis 
 and it was not there.
 
 I know that the process is killed because when I start asterisk using the 
 command asterisk -c it starts and then it exits and the word killed is 
 wrote on the console.
 
 Ever time I copy a new executable to /usr/sbin either using cp command or 
 make install it gets deleted too.

Interesting problem, I'm quite curious what the cause is.

Are you 100% sure that the asterisk your are running is in /usr/sbin? Try 
'which asterisk' to see what your shell is running and/or start asterisk with a 
full path as /usr/sbin/asterisk -c.

You could also try renaming the binary to find out if indeed something kills 
Asterisk by name.

There's a tool called SystemTap which could give you information which process 
sent the SIGKILL:
https://sourceware.org/systemtap/
http://www.percona.com/blog/2014/07/18/systemtap-solves-phantom-mysqld-sigterm-sigkill-issue/

-- 

marie


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] SIP call drops after 32 seconds, but only when....

2014-11-26 Thread Marie Fischer
On 22.11.2014, at 13:40, Yves A. yves...@gmx.de wrote:
 I have a really strange problem which is driving me crazy for days now.
 
 If I register my asterisk (tried all versions from 1.6 up to 13.x) with one 
 sip registrar,
 everything works... calls go out and call come in... no 32 seconds limit.
 
 but as soon as I configure another sip registration on another server, 
 outgoing
 calls  drop after 32 seconds.

Do a 'sip set debug on' and see what they (Asterisk and the registrar) are 
talking about just before the call drops.

-- 

marie


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] SIP call drops after 32 seconds, but only when....

2014-11-26 Thread Amit Patkar
Call drop after 30+sec happens if RTP is not received by asterisk for 30 
seconds (RTP Timeout).
You should look for media IP address in SDP. If there is firewall, apart 
from port UDP/5060, you also need to open port UDP/1-UDP/2 
(standard RTP ports)
You should try with RTP debug. It should show bidirectional traffic. If 
not, you surely have an issue with media IP or ports.


*Thanks  Regards,*
Amit Patkar


On 11/27/2014 10:01 AM, Marie Fischer wrote:

On 22.11.2014, at 13:40, Yves A. yves...@gmx.de wrote:

I have a really strange problem which is driving me crazy for days now.

If I register my asterisk (tried all versions from 1.6 up to 13.x) with one sip 
registrar,
everything works... calls go out and call come in... no 32 seconds limit.

but as soon as I configure another sip registration on another server, outgoing
calls  drop after 32 seconds.

Do a 'sip set debug on' and see what they (Asterisk and the registrar) are 
talking about just before the call drops.




-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users