Andreas Sikkema
2004-Aug-06 07:02 UTC
[Asterisk-Users] Difficulty evaluating the return value of PlayBack (or any other extensions.conf command
Hi, I just started to "play" with Asterisk today and while I'm writing some IVR-like functionality in extensions.conf I would like to take a decision based on whether playing a file succeeds: exten => s,2,GotoIf($[Playback(${CALLERIDNUM}_personal) = 0]?3,501) So if Playback succeeds I want to jump to label 3, otherwise to label 500. Unfortunately Asterisk doesn't seem to understand what I want it to do: Aug 6 15:46:42 NOTICE[524301]: pbx.c:4700 pbx_builtin_gotoif: Not taking any branch I've been looking all over the wiki and google, but can't find any example doing what I want to do. Is it even possible? -- Andreas Sikkema Rits tele.com Scheepmakersstraat 11 3011 VH Rotterdam t: +31 (0)10 2245544 f: +31 (0)10 2245540
Philipp von Klitzing
2004-Aug-06 12:04 UTC
[Asterisk-Users] Difficulty evaluating the return value of PlayBack (or any other extensions.conf command
Hi!> I just started to "play" with Asterisk today and while I'm > writing some IVR-like functionality in extensions.conf I > would like to take a decision based on whether playing a file > succeeds:Use AGI() to either check for the file presence, or to determine the rest of the dialplan logic (for example by setting a variable). Cheers, Philipp
Andreas Sikkema
2004-Aug-09 00:52 UTC
[Asterisk-Users] Difficulty evaluating the return value of PlayBack (or any other extensions.conf command
> > I just started to "play" with Asterisk today and while I'm > > writing some IVR-like functionality in extensions.conf I > > would like to take a decision based on whether playing a file > > succeeds: > Use AGI() to either check for the file presence, or to determine > the rest of the dialplan logic (for example by setting a variable).That's like using an elephant to kill a mouse. Why does the documentation of Playback suggests the return value can be used intelligently when there's no obvious (documented?) way of using it? Is there a way to use it? -- Andreas Sikkema (on webmail so html post, sorry) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 3266 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20040809/0583e22e/attachment.bin