Dialplan Issue?


#1

I am calling my * box and appear to have an issue with incoming calls from Broadvoice.

If I dial internally, the extension rings for 20 seconds, then calls the Voicemail application. Works every time. However, an inbound caller continues to hear the phone ring. The call will eventually hang up, no audio is heard. Sometimes, and I mean sometimes, I hear the unavailable voicemail message (voicemail/default/100/unavail) and get to leave voicemail.

extensions.conf

[macro-dialsipphone]
exten => s,1,Dial(SIP/${ARG1},20,t)
exten => s,2,GotoIf($[${MACRO_EXTEN} = 6024459830]?3:4)
exten => s,3,Voicemail(u${GVM})
exten => s,4,Voicemail(u${MACRO_EXTEN})
exten => s,5,Hangup()

[from-broadvoice]
exten => 6024459830,1,Macro(dialsipphone,${PHONE1})

Thanks for your help.


#2

What does the CLI show when this happens?


#3

This is what I see from the CLI

– Executing Macro(“SIP/6024459830-cb0d”, “oneline|100”) in new stack
– Executing Dial(“SIP/6024459830-cb0d”, “SIP/100|20”) in new stack
– Called 100
– SIP/100-3e30 is ringing
– Nobody picked up in 20000 ms
– Executing GotoIf(“SIP/6024459830-cb0d”, “1?5:6”) in new stack
– Goto (macro-oneline,s,5)
– Executing VoiceMail(“SIP/6024459830-cb0d”, “u100”) in new stack
– Playing ‘voicemail/default/100/unavail’ (language ‘en’)
– Playing ‘vm-intro’ (language ‘en’)
– Playing ‘beep’ (language ‘en’)
– Recording the message
– x=0, open writing: /var/spool/asterisk/voicemail/default/100/INBOX/msg0000 format: wav49, 0x9977a40
– x=1, open writing: /var/spool/asterisk/voicemail/default/100/INBOX/msg0000 format: gsm, 0x9939320
– x=2, open writing: /var/spool/asterisk/voicemail/default/100/INBOX/msg0000 format: wav, 0x997edb8
Jan 29 22:07:16 WARNING[23834]: app.c:620 ast_play_and_record: No audio available on SIP/6024459830-cb0d??
– User hung up
== Spawn extension (macro-oneline, s, 5) exited non-zero on ‘SIP/6024459830-cb0d’ in macro ‘oneline’
== Spawn extension (from-broadvoice, 6024459830, 1) exited non-zero on ‘SIP/6024459830-cb0d’

I have tried inserting the Answer() application into the macro but that appeared to cause yet another interesting issue. The caller hears silence once the # is dialed. The internal SIP phone rings, yet the caller is oblivious to this.

Cheers.


#4

A reboot of the Linux box took care of the issue. Incoming Broadvoice callers now consistently hear voicemail prompts etc.

Cheers.