can you submit the patch over jira<br><br><a href="http://jira.freeswitch.org">http://jira.freeswitch.org</a><br><br>they do not transfer well over email and we need to document all the patches.<br><br><br><div class="gmail_quote">
On Fri, May 1, 2009 at 12:50 AM, TTNC - Adnan Barakat <span dir="ltr">&lt;<a href="mailto:technical@ttnc.co.uk">technical@ttnc.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Anthony Minessale wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    Also is there any way to stop uuid_broadcast as I&#39;d<br>
    need to stop it somehow if the destination picks up?<br>
<br>
break &lt;uuid&gt; all<br>
</blockquote></div>
&quot;uuid_broadcast &lt;uuid&gt; phrase::saynumber,1&quot; doesn&#39;t set the &#39;current_application_response&#39; variable in the same way as &quot;uuid_broadcast &lt;uuid&gt; playback::filename.wav&quot; does (which my script looks for to know when to move on to the next application).<br>

<br>
I&#39;ve attached a patch which sets this variable if it&#39;s any use to anyone (I&#39;m not that great at C so I hope it&#39;s correct, any comments/improvements are welcome).<br>
<br>
<br>
Thanks again<br><font color="#888888">
<br>
Adnan<br>
</font><br>Index: src/mod/applications/mod_dptools/mod_dptools.c<br>
===================================================================<br>
--- src/mod/applications/mod_dptools/mod_dptools.c      (revision 13172)<br>
+++ src/mod/applications/mod_dptools/mod_dptools.c      (working copy)<br>
@@ -1807,6 +1807,7 @@<br>
        char *mydata = NULL;<br>
        switch_input_args_t args = { 0 };<br>
        switch_channel_t *channel = switch_core_session_get_channel(session);<br>
+       switch_status_t status;<br>
<br>
        if (!switch_strlen_zero(data) &amp;&amp; (mydata = switch_core_session_strdup(session, data))) {<br>
                const char *lang;<br>
@@ -1825,8 +1826,23 @@<br>
<br>
                switch_channel_set_variable(channel, SWITCH_PLAYBACK_TERMINATOR_USED, &quot;&quot; );<br>
<br>
-               switch_ivr_phrase_macro(session, macro, mdata, lang, &amp;args);<br>
+               status = switch_ivr_phrase_macro(session, macro, mdata, lang, &amp;args);<br>
+       } else {<br>
+               status = SWITCH_STATUS_NOOP;<br>
        }<br>
+<br>
+       switch (status) {<br>
+       case SWITCH_STATUS_SUCCESS:<br>
+       case SWITCH_STATUS_BREAK:<br>
+               switch_channel_set_variable(channel, SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE, &quot;PHRASE PLAYED&quot;);<br>
+               break;<br>
+       case SWITCH_STATUS_NOOP:<br>
+               switch_channel_set_variable(channel, SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE, &quot;NOTHING&quot;);<br>
+               break;<br>
+       default:<br>
+               switch_channel_set_variable(channel, SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE, &quot;UNKNOWN ERROR&quot;);<br>
+               break;<br>
+       }<br>
 }<br>
<br>
<br>
<br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>