Askozia Forums
May 21, 2012, 08:17:56 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: voicemaill crash asterisk  (Read 703 times)
giovanni.v
Hero Member
*****

Karma: 53
Posts: 670


View Profile
« on: September 16, 2008, 08:08:44 am »

This happen when a VoIP provider has an empty public number and a non numeric username.
Askozia create an entry like this the dialplan:

exten => SIP-PROVIDER-261233284489c97364cccd,n,Macro(main|SIP/202|202||to|20)

This pass an empty value in ${ARG3} when calling the voicemail app:

exten => vm-busy,n,VoiceMail(${ARG2},b,${ARG3})

When executed and the call goes to voicemail:

Sep 15 18:57:46    -- Executing [3255555555@SIP-PROVIDER-261233284489c97364cccd-incoming:5] Macro("SIP/3255555555-08746000", "main|SIP/202|202||to|20") in new stack
Sep 15 18:57:46    -- Executing [s@macro-main:1] Dial("SIP/3255555555-08746000", "SIP/202|20|to") in new stack
Sep 15 18:57:46    -- Called 202
Sep 15 18:57:46    -- SIP/202-08768000 is ringing
Sep 15 18:58:06    -- Nobody picked up in 20000 ms
Sep 15 18:58:06    -- Executing [s@macro-main:2] NoOp("SIP/3255555555-08746000", "DIALSTATUS: NOANSWER") in new stack
Sep 15 18:58:06    -- Executing [s@macro-main:3] Goto("SIP/3255555555-08746000", "s-NOANSWER|1") in new stack
Sep 15 18:58:06    -- Goto (macro-main,s-NOANSWER,1)
Sep 15 18:58:06    -- Executing [s-NOANSWER@macro-main:1] Goto("SIP/3255555555-08746000", "noanswer|1") in new stack
Sep 15 18:58:06    -- Goto (macro-main,noanswer,1)
Sep 15 18:58:06    -- Executing [noanswer@macro-main:1] GotoIf("SIP/3255555555-08746000", "1?vm-noanswer|1") in new stack
Sep 15 18:58:06    -- Goto (macro-main,vm-noanswer,1)
Sep 15 18:58:06    -- Executing [vm-noanswer@macro-main:1] Wait("SIP/3255555555-08746000", "1") in new stack
Sep 15 18:58:07    -- Executing [vm-noanswer@macro-main:2] Set("SIP/3255555555-08746000", "MISSEDCAUSE=no-answer") in new stack
Sep 15 18:58:07    -- Executing [vm-noanswer@macro-main:3] VoiceMail("SIP/3255555555-08746000", "202|u|") in new stack
Sep 15 18:58:07    -- <SIP/3255555555-08746000> Playing 'vm-theperson' (language 'it')

At this point, in the exact time the vm try to say the number, asterisk crashes:

- Last asterisk log entry:
Sep 15 18:18:05     -- <SIP/3255555555-08791000> Playing 'vm-theperson' (language 'it')
- System:
Sep 15 18:18:06     kernel: pid 209 (asterisk), uid 0: exited on signal 11

I think it's easy to fix checking this condition in the gui but i like to see this handled in the macro-main leaving the freedom not to say the number in the default vm message.
Logged
Michael
Askozia Staff
Hero Member
*

Karma: 49
Posts: 1020


View Profile
« Reply #1 on: September 16, 2008, 10:00:10 am »

This is due to a patch we wrote for app_voicemail. It does not properly handle an empty 3rd parameter (which we knew...) so care has been taken to set it in each case.

Thanks for the specific breakdown of where this is going wrong, we'll look into it!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.141 seconds with 19 queries.