[Home]

Summary:ASTERISK-08661: Dial's G option causes strange behavior in some circustances.
Reporter:Jon Webster (jon)Labels:
Date Opened:2007-01-25 09:48:41.000-0600Date Closed:2011-06-07 14:07:51
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_dial
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Using the G dial argument in combination with meetme (and probably other situations) causes GotoIf to behave strangely in the hangup extension.

****** ADDITIONAL INFORMATION ******

DIALPLAN
=========================
exten => 999,1,Dial(SIP/test||G(dial-goto^test^1))
[dial-goto]
exten => test,1,Goto(5)
exten => test,2,SET(t=Callee)
exten => test,n,Meetme(5)

exten => test,5,SET(t=Caller)
exten => test,n,Meetme(5)

exten => h,1,Goto(h,5)
exten => h,5,GotoIf($["${t}" = "Caller"]1?10)
exten => h,10,NoOp(ten)

CLI OUTPUT
==============================

pbx*CLI> dial 999
   -- Executing Dial("OSS/dsp", "SIP/jon||G(dial-goto^test^1)") in new stack
   -- Called jon
   -- SIP/jon-08173f60 is ringing
Jan 25 10:38:44 WARNING[19047]: chan_oss.c:585 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory
   -- SIP/jon-08173f60 answered OSS/dsp
   -- Executing Goto("OSS/dsp", "5") in new stack
   -- Goto (dial-goto,test,5)
   -- Executing Set("OSS/dsp", "t=Caller") in new stack
   -- Executing MeetMe("OSS/dsp", "5") in new stack
<< Console call has been answered >>
 == Parsing '/etc/asterisk/meetme.conf': Found
Jan 25 10:38:46 WARNING[7008]: chan_oss.c:585 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory
   -- Playing 'conf-invalid' (language 'en')
   -- Executing Set("SIP/jon-08173f60", "t=Callee") in new stack
   -- Executing MeetMe("SIP/jon-08173f60", "5") in new stack
 == Parsing '/etc/asterisk/meetme.conf': Found
   -- Playing 'conf-invalid' (language 'en')
Jan 25 10:38:47 WARNING[7008]: chan_oss.c:585 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory
Jan 25 10:38:48 WARNING[7008]: chan_oss.c:585 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory
Jan 25 10:38:49 WARNING[7008]: chan_oss.c:585 setformat: Unable to re-open DSP device /dev/dsp: No such file or directory
 == Spawn extension (dial-goto, test, 3) exited non-zero on 'SIP/jon-08173f60'
   -- Executing Goto("SIP/jon-08173f60", "h|5") in new stack
   -- Goto (dial-goto,h,5)
   -- Executing GotoIf("SIP/jon-08173f60", "01?10") in new stack
   -- Goto (dial-goto,h,10)
   -- Executing NoOp("SIP/jon-08173f60", "ten") in new stack
 == Spawn extension (dial-goto, test, 6) exited non-zero on 'OSS/dsp'
   -- Executing Goto("OSS/dsp", "h|5") in new stack
   -- Goto (dial-goto,h,5)
   -- Executing GotoIf("OSS/dsp", "11?10") in new stack
   -- Goto (dial-goto,h,10)
   -- Executing NoOp("OSS/dsp", "ten") in new stack
<< Hangup on console >>
Comments:By: Leif Madsen (lmadsen) 2007-01-25 09:57:56.000-0600

Your line:

exten => h,5,GotoIf($["${t}" = "Caller"]1?10)

Is incorrect.

By: Leif Madsen (lmadsen) 2007-01-25 10:00:56.000-0600

This is a dialplan issue.