VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
chris at maxpowersoft.com Guest
|
Posted: Mon Apr 27, 2009 4:53 pm Post subject: [Freeswitch-users] uuid_displace & FIFO help |
|
|
Quote: | Quote: | Excellent thanks, this is what I was looking for.
One last question if you don't mind; is there anyway to pull the caller
out of a fifo after a certain time either from api or by setting a
variable (eg. the destination didn't answer after sometime, so carry on
in the dialplan to eg. voicemail)?
| | There is a "uuid_transfer" that will allow you to route them accordingly.
Regards,
Chris |
|
Back to top |
|
|
technical at ttnc.co.uk Guest
|
Posted: Tue Apr 28, 2009 7:03 am Post subject: [Freeswitch-users] uuid_displace & FIFO help |
|
|
Chris Danielson wrote:
Quote: |
Quote: | Excellent thanks, this is what I was looking for.
One last question if you don't mind; is there anyway to pull the caller
out of a fifo after a certain time either from api or by setting a
variable (eg. the destination didn't answer after sometime, so carry on
in the dialplan to eg. voicemail)?
| There is a "uuid_transfer" that will allow you to route them accordingly.
| Thanks Chris
Adnan
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
technical at ttnc.co.uk Guest
|
Posted: Fri May 01, 2009 12:51 am Post subject: [Freeswitch-users] uuid_displace & FIFO help |
|
|
Anthony Minessale wrote:
Quote: | Also is there any way to stop uuid_broadcast as I'd
need to stop it somehow if the destination picks up?
break <uuid> all
| "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).
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).
Thanks again
Adnan
Index: src/mod/applications/mod_dptools/mod_dptools.c
===================================================================
--- src/mod/applications/mod_dptools/mod_dptools.c (revision 13172)
+++ src/mod/applications/mod_dptools/mod_dptools.c (working copy)
@@ -1807,6 +1807,7 @@
char *mydata = NULL;
switch_input_args_t args = { 0 };
switch_channel_t *channel = switch_core_session_get_channel(session);
+ switch_status_t status;
if (!switch_strlen_zero(data) && (mydata = switch_core_session_strdup(session, data))) {
const char *lang;
@@ -1825,8 +1826,23 @@
switch_channel_set_variable(channel, SWITCH_PLAYBACK_TERMINATOR_USED, "" );
- switch_ivr_phrase_macro(session, macro, mdata, lang, &args);
+ status = switch_ivr_phrase_macro(session, macro, mdata, lang, &args);
+ } else {
+ status = SWITCH_STATUS_NOOP;
}
+
+ switch (status) {
+ case SWITCH_STATUS_SUCCESS:
+ case SWITCH_STATUS_BREAK:
+ switch_channel_set_variable(channel, SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE, "PHRASE PLAYED");
+ break;
+ case SWITCH_STATUS_NOOP:
+ switch_channel_set_variable(channel, SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE, "NOTHING");
+ break;
+ default:
+ switch_channel_set_variable(channel, SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE, "UNKNOWN ERROR");
+ break;
+ }
}
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
anthony.minessale at g... Guest
|
Posted: Fri May 01, 2009 7:34 am Post subject: [Freeswitch-users] uuid_displace & FIFO help |
|
|
can you submit the patch over jira
http://jira.freeswitch.org
they do not transfer well over email and we need to document all the patches.
On Fri, May 1, 2009 at 12:50 AM, TTNC - Adnan Barakat <technical@ttnc.co.uk (technical@ttnc.co.uk)> wrote:
Quote: | Anthony Minessale wrote:
Quote: | Also is there any way to stop uuid_broadcast as I'd
need to stop it somehow if the destination picks up?
break <uuid> all
|
"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).
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).
Thanks again
Adnan
Index: src/mod/applications/mod_dptools/mod_dptools.c
===================================================================
--- src/mod/applications/mod_dptools/mod_dptools.c (revision 13172)
+++ src/mod/applications/mod_dptools/mod_dptools.c (working copy)
@@ -1807,6 +1807,7 @@
char *mydata = NULL;
switch_input_args_t args = { 0 };
switch_channel_t *channel = switch_core_session_get_channel(session);
+ switch_status_t status;
if (!switch_strlen_zero(data) && (mydata = switch_core_session_strdup(session, data))) {
const char *lang;
@@ -1825,8 +1826,23 @@
switch_channel_set_variable(channel, SWITCH_PLAYBACK_TERMINATOR_USED, "" );
- switch_ivr_phrase_macro(session, macro, mdata, lang, &args);
+ status = switch_ivr_phrase_macro(session, macro, mdata, lang, &args);
+ } else {
+ status = SWITCH_STATUS_NOOP;
}
+
+ switch (status) {
+ case SWITCH_STATUS_SUCCESS:
+ case SWITCH_STATUS_BREAK:
+ switch_channel_set_variable(channel, SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE, "PHRASE PLAYED");
+ break;
+ case SWITCH_STATUS_NOOP:
+ switch_channel_set_variable(channel, SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE, "NOTHING");
+ break;
+ default:
+ switch_channel_set_variable(channel, SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE, "UNKNOWN ERROR");
+ break;
+ }
}
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|