Hello,
I was trying to use retrydial, but did not get the result I expected so I started writing the following code but it doesnt work, it never shows the noop(${dialstatus}) or anything after it... what am I doing wrong here??? I have tried it with both priority 3, and 103 as stated on voip-info of it jumping to n+101.
BTW the number it dials as shown in the originate is a non-working #, I am using it purposely to test.
Here is the dialplan code:
[wtn] ;this context will dial a number and retry it up to 4 times
exten => wtn,1,Set(Retry=0)
exten => wtn,2,Dial(SIP/${dial}@cal
lcentric)
exten => wtn,103,Set(Retry=$[${retr
y} + 1])
exten => wtn,104,Noop(${dialstatus}
${retry})
exten => wtn,105,Wait(5)
exten => wtn,106,Gotoif($[${retry} <= 3}?2:107)
exten => wtn,107,Goto(wakeupcallsus
a,scall,1)
Here is the CLI output:
-- Executing Set("Local/wtn@default-a3f
b,2", "Retry=0") in new stack
-- Executing Dial("Local/wtn@default-a3
fb,2", "SIP/15618281473@callcentr
ic") in new stack
-- Called 15618281473@callcentric
-- SIP/callcentric-08378270 is making progress passing it to Local/wtn@default-a3fb,2
-- SIP/callcentric-08378270 is making progress passing it to Local/wtn@default-a3fb,2
-- SIP/callcentric-08378270 is making progress passing it to Local/wtn@default-a3fb,2
-- SIP/callcentric-08378270 is making progress passing it to Local/wtn@default-a3fb,2
-- SIP/callcentric-08378270 is making progress passing it to Local/wtn@default-a3fb,2
-- SIP/callcentric-08378270 is making progress passing it to Local/wtn@default-a3fb,2
== Spawn extension (default, wtn, 2) exited non-zero on 'Local/wtn@default-a3fb,2'
Here is the originate command passed into the manager api:
Action: Originate
Channel: Local/wtn
Context: default
Exten: wakeupcall
Priority: 1
Callerid:
Timeout: 60000
Account: wakeupcallsusa
Async: yes
Variable: dial=15618281473
Variable: uid=1
Variable: recid=32
Variable: timezone=EST5EDT
Variable: calltime=2:20
Variable: iteration=1
Variable: calldate=06/20/2007
Worth 500 points.
Thanks,
Rick
Start Free Trial