[asterisk-dev] Asterisk crashed on recording of a channel.

Dimitar Penev dpn at switchvoice.com
Tue Feb 12 15:36:56 CST 2013


> Hi All,
>
> I am tiring to debug the app_alarmreceiver on one of my asterisk server.
> I tried to record the channel but get no luck. My dialplan is:
> (I have tried to record using both Monitor() and MixMonitor() application
> and asterisk crashed on both of those)
>
> [alarm]
> exten => _X.,1,Ringing();
> exten => _X.,2,Wait(1);
> exten => _X.,3,Monitor(wav,alarm);
> ;exten => _X.,3,MixMonitor(alarm.wav);
> exten => _X.,4,AlarmReceiver
> exten => _X.,5,Hangup
>
> I understand that the frames from the alarm panel may be identified as 
> DTMF type
> but I would not expect asterisk to crash.It is asterisk-1.8.7.2.
>
> What is the recommended way to record this type of channels?
>
> Using Monitor() ====================================================
> yni*CLI>     -- Executing [1111 at demo:1] Ringing("SIP/alarm-00000001", "") 
> in new stack
>    -- Executing [1111 at demo:1] Ringing("SIP/alarm-00000001", "") in new 
> stack
> yni*CLI>     -- Executing [1111 at demo:2] Wait("SIP/alarm-00000001", "1") in 
> new stack
>    -- Executing [1111 at demo:2] Wait("SIP/alarm-00000001", "1") in new stack
> yni*CLI>     -- Executing [1111 at demo:3] Monitor("SIP/alarm-00000001", 
> "wav,alarm") in new stack
>    -- Executing [1111 at demo:3] Monitor("SIP/alarm-00000001", "wav,alarm") 
> in new stack
> yni*CLI>     -- Executing [1111 at demo:4] 
> AlarmReceiver("SIP/alarm-00000001", "") in new stack
>    -- Executing [1111 at demo:4] AlarmReceiver("SIP/alarm-00000001", "") in 
> new stack
> yni*CLI>        > AlarmReceiver: Setting read and write formats to ULAW
>       > AlarmReceiver: Setting read and write formats to ULAW
> yni*CLI>        > AlarmReceiver: Answering channel
>       > AlarmReceiver: Answering channel
> yni*CLI>        > AlarmReceiver: Waiting for connection to stabilize
>       > AlarmReceiver: Waiting for connection to stabilize
> yni*CLI>        > AlarmReceiver: Waiting for first event from panel
>       > AlarmReceiver: Sending 1400Hz 100ms burst (ACK)
>       > AlarmReceiver: Waiting for first event from panel
>       > AlarmReceiver: Sending 1400Hz 100ms burst (ACK)
> yni*CLI> [Feb 12 17:05:53] WARNING[2303]: utils.c:1389 tvfix: warning too 
> large timestamp 139965132470376.4696622
> [Feb 12 17:05:53] WARNING[2303]: utils.c:1389 tvfix: warning too large 
> timestamp 139965132470376.4696622
> [Feb 12 17:05:53] WARNING[2303]: utils.c:1389 tvfix: warning too large 
> timestamp 139965132470376.4696622
> yni*CLI> [Feb 12 17:05:53] WARNING[2303]: file.c:167 ast_writestream: 
> Tried to write non-voice frame
> [Feb 12 17:05:53] WARNING[2303]: utils.c:1389 tvfix: warning too large 
> timestamp 139965132470376.4696622
> yni*CLI> [Feb 12 17:05:53] WARNING[2303]: channel.c:4979 ast_write: Failed 
> to write data to channel monitor write stream
> [Feb 12 17:05:53] WARNING[2303]: file.c:167 ast_writestream: Tried to 
> write non-voice frame
> yni*CLI>
> Disconnected from Asterisk server
> Executing last minute cleanups
> [1]+  Bus error               (core dumped) 
> asterisk -fdvvvvvvvvvvvvvvvvvvvvv
>
>
>
> Using MixMonitor() ====================================================
> yni*CLI>   == Using SIP RTP CoS mark 5
>  == Using SIP RTP CoS mark 5
> yni*CLI>     -- Executing [1111 at demo:1] Ringing("SIP/alarm-00000000", "") 
> in new stack
>    -- Executing [1111 at demo:1] Ringing("SIP/alarm-00000000", "") in new 
> stack
> yni*CLI>     -- Executing [1111 at demo:2] Wait("SIP/alarm-00000000", "1") in 
> new stack
>    -- Executing [1111 at demo:2] Wait("SIP/alarm-00000000", "1") in new stack
> yni*CLI>     -- Executing [1111 at demo:3] MixMonitor("SIP/alarm-00000000", 
> "alarm.wav") in new stack
>    -- Executing [1111 at demo:3] MixMonitor("SIP/alarm-00000000", 
> "alarm.wav") in new stack
> yni*CLI>     -- Executing [1111 at demo:4] 
> AlarmReceiver("SIP/alarm-00000000", "") in new stack
>       > AlarmReceiver: Setting read and write formats to ULAW
>       > AlarmReceiver: Answering channel
>    -- Executing [1111 at demo:4] AlarmReceiver("SIP/alarm-00000000", "") in 
> new stack
>       > AlarmReceiver: Setting read and write formats to ULAW
>       > AlarmReceiver: Answering channel
> yni*CLI>   == Begin MixMonitor Recording SIP/alarm-00000000
>  == Begin MixMonitor Recording SIP/alarm-00000000
> yni*CLI>        > AlarmReceiver: Waiting for connection to stabilize
>       > AlarmReceiver: Waiting for connection to stabilize
> yni*CLI>        > AlarmReceiver: Waiting for first event from panel
>       > AlarmReceiver: Sending 1400Hz 100ms burst (ACK)
>       > AlarmReceiver: Waiting for first event from panel
>       > AlarmReceiver: Sending 1400Hz 100ms burst (ACK)
> yni*CLI> [Feb 12 17:14:01] WARNING[2417]: utils.c:1389 tvfix: warning too 
> large timestamp 139898224914984.4696622
>
> Disconnected from Asterisk server
> Executing last minute cleanups
> [1]+  Segmentation fault      (core dumped) asterisk -fdvvvvvvvvvvvvvvv
>
>
> Best Regards
> Dimitar




More information about the asterisk-dev mailing list