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"><<a href="mailto:technical@ttnc.co.uk">technical@ttnc.co.uk</a>></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'd<br>
need to stop it somehow if the destination picks up?<br>
<br>
break <uuid> all<br>
</blockquote></div>
"uuid_broadcast <uuid> phrase::saynumber,1" doesn't set the 'current_application_response' variable in the same way as "uuid_broadcast <uuid> playback::filename.wav" does (which my script looks for to know when to move on to the next application).<br>
<br>
I've attached a patch which sets this variable if it's any use to anyone (I'm not that great at C so I hope it'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) && (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, "" );<br>
<br>
- switch_ivr_phrase_macro(session, macro, mdata, lang, &args);<br>
+ status = switch_ivr_phrase_macro(session, macro, mdata, lang, &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, "PHRASE PLAYED");<br>
+ break;<br>
+ case SWITCH_STATUS_NOOP:<br>
+ switch_channel_set_variable(channel, SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE, "NOTHING");<br>
+ break;<br>
+ default:<br>
+ switch_channel_set_variable(channel, SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE, "UNKNOWN ERROR");<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>