[asterisk-bugs] [JIRA] (ASTERISK-25136) gosub issue
Schneur Rosenberg (JIRA)
noreply at issues.asterisk.org
Wed May 27 04:43:33 CDT 2015
Schneur Rosenberg created ASTERISK-25136:
--------------------------------------------
Summary: gosub issue
Key: ASTERISK-25136
URL: https://issues.asterisk.org/jira/browse/ASTERISK-25136
Project: Asterisk
Issue Type: Bug
Security Level: None
Reporter: Schneur Rosenberg
Severity: Minor
I'm having a issue with gosubs, in this example I'm using a sub to dial out, first argument is destination, second is options, third is timeout, in ARG2 I have a macro which requires ( and ) when the gosub sees the ) character it thinks that the gosub is done and therefore anything afterwards does not get processed, in my case the m (for music on hold) and the 30 (for timeout), I tried using quotes or the "\" as a escape character but nothing works, in my opinion this is a bug, as there should be a way at least to escape the ) character
[testtest]
exten => s,1,gosub(sub_dialing_smart,s,1(sip/test,M(screen)m,30)
[sub_dialing_smart]
exten => s,1,set(__destination1=${ARG1})
exten => s,n,set(__options=${ARG2})
exten => s,n,set(__timeout=${ARG3})
-- Executing [s at testtest:1] Gosub("Console/dsp", "sub_dialing_smart,s,1(sip/test,M(screen)m,30") in new stack
-- Executing [s at sub_dialing_smart:1] Set("Console/dsp", "__destination1=test") in new stack
-- Executing [s at sub_dialing_smart:3] Set("Console/dsp", "__options=M(screen") in new stack
-- Executing [s at sub_dialing_smart:4] Set("Console/dsp", "__timeout=") in new stack
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list