hello, the CLI for whe the call is answered :
Accepting call from '0661xxxxxx' to '534' on channel 0/26, span 1 -- Executing [534@default:1] Dial("Zap/26-1", "SIP/228| 10") in new stack -- Called 228 -- SIP/228-09e71378 is ringing -- SIP/228-09e71378 answered Zap/26-1 == Spawn extension (default, 534, 1) exited non-zero on 'Zap/26-1' -- Hungup 'Zap/26-1' srvradio*CLI> the CLI for whe the call is no answer : Accepting call from '0661xxxxxx' to '534' on channel 0/23, span 1 -- Executing [534@default:1] Dial("Zap/23-1", "SIP/228| 10") in new stack -- Called 228 -- SIP/228-09e8b4b0 is ringing -- Nobody picked up in 10000 ms -- Executing [534@default:2] NoOp("Zap/23-1", "Dial status is NOANSWER") in new stack -- Executing [534@default:3] GotoIf("Zap/23-1", "0?answered") in new stack -- Executing [534@default:4] Goto("Zap/23-1", "home|s|1") in new stack -- Goto (home,s,1) -- Executing [s@home:1] SetGlobalVar("Zap/23-1", "sounds_path=/var/lib/asterisk/sounds/") in new stack == Setting global variable 'sounds_path' to '/var/lib/asterisk/sounds/' -- Executing [s@home:2] BackGround("Zap/23-1", "/var/lib/asterisk/sounds/welcome") in new stack -- <Zap/23-1> Playing '/var/lib/asterisk/sounds/welcome' (language 'en') -- Channel 0/23, span 1 got hangup request, cause 16 == Spawn extension (home, s, 2) exited non-zero on 'Zap/23-1' -- Hungup 'Zap/23-1' 2013/7/26 A J Stiles <asterisk_l...@earthshod.co.uk> > * THIS IS NOT WHERE YOUR RESPONSE GOES * > > On Friday 26 July 2013, Salaheddine Elharit wrote: > > thanks for your response > > > > but i get the same result i can't execut the next (go to home,s,1) with > the > > code below > > > > exten => 534,1,Dial(SIP/228, 10) > > exten => 534,n,NoOp(Dial status is ${DIALSTATUS}) > > exten => 534,n,GotoIf($["${DIALSTATUS}" = "ANSWER"]?answered) > > exten => 534,n,Goto(home,s,1) > > exten => 534,n(answered),NoOp(Call was answered) > > > > any help please > > Do you get the dial status displayed? Then the NoOp() immediately before > the > GotoIf is executing. It's just possible I messed up the syntax of the > GotoIf() since I can't actually test that right now -- I do have an > Asterisk > box with a dialplan stuffed with GotoIf() statements; but right at the > moment, > I can't get to that machine. > > Please paste your CLI output below, for the cases where (1) the call is > answered and (2) the Dial() command times out. > > -- > AJS > > Answers come *after* questions. > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users