[Freeswitch-users] Displacing ringback audio during bridge - only first displacement heard
Scott Beil
scobei001 at gmail.com
Wed Dec 5 04:37:41 MSK 2012
I am attempting to interrupt the ringback audio at regular intervals
with announcements while a bridge is in progress. Everything is going
fine - the far end is ringing, the ringback audio is playing, the first
displacement is heard, but subsequent displacements are not.
I am using an outbound ESL connection, FreeSWITCH version 1.2.3.
First, the ringback audio is set:
esl_execute(handle, "set",
"ringback=file_string://'../sounds/music/8000/suite-espanola-op-47-leyenda.wav'",NULL);
Next, the bridge is initiated:
esl_execute(handle, "bridge", "user/1001",NULL);
Now, a displacement is scheduled for 5 seconds in the future:
esl_send_recv(handle, "api sched_api +5 none uuid_displace
<uuid> start digits/1.wav");
After each MEDIA_BUG_STOP event is received, another displacement is
scheduled.
The log file shows successful attempts are being made to play the
displacement audio:
66017ce6-23c8-4df1-accc-6275eed8fc45 2012-12-04 18:25:39.161496 [DEBUG]
switch_core_media_bug.c:506 Attaching BUG to
sofia/internal/1000 at 192.168.1.136
2012-12-04 18:25:39.161496 [DEBUG] mod_commands.c:3894 Command
uuid_displace(66017ce6-23c8-4df1-accc-6275eed8fc45 start digits/1.wav):
+OK Success
2012-12-04 18:25:39.161496 [DEBUG] switch_scheduler.c:138 Deleting task
17 sched_api_function (none)
66017ce6-23c8-4df1-accc-6275eed8fc45 2012-12-04 18:25:39.641496 [DEBUG]
switch_core_media_bug.c:724 Removing BUG from
sofia/internal/1000 at 192.168.1.136
2012-12-04 18:25:39.761496 [DEBUG] switch_scheduler.c:214 Added task 18
sched_api_function (none) to run at 1354667144
66017ce6-23c8-4df1-accc-6275eed8fc45 2012-12-04 18:25:44.161496 [DEBUG]
switch_core_media_bug.c:506 Attaching BUG to
sofia/internal/1000 at 192.168.1.136
2012-12-04 18:25:44.161496 [DEBUG] mod_commands.c:3894 Command
uuid_displace(66017ce6-23c8-4df1-accc-6275eed8fc45 start digits/1.wav):
+OK Success
2012-12-04 18:25:44.161496 [DEBUG] switch_scheduler.c:138 Deleting task
18 sched_api_function (none)
66017ce6-23c8-4df1-accc-6275eed8fc45 2012-12-04 18:25:44.181496 [DEBUG]
switch_core_media_bug.c:724 Removing BUG from
sofia/internal/1000 at 192.168.1.136
2012-12-04 18:25:44.341496 [DEBUG] switch_scheduler.c:214 Added task 19
sched_api_function (none) to run at 1354667149
66017ce6-23c8-4df1-accc-6275eed8fc45 2012-12-04 18:25:49.161496 [DEBUG]
switch_core_media_bug.c:506 Attaching BUG to
sofia/internal/1000 at 192.168.1.136
2012-12-04 18:25:49.161496 [DEBUG] mod_commands.c:3894 Command
uuid_displace(66017ce6-23c8-4df1-accc-6275eed8fc45 start digits/1.wav):
+OK Success
2012-12-04 18:25:49.161496 [DEBUG] switch_scheduler.c:138 Deleting task
19 sched_api_function (none)
66017ce6-23c8-4df1-accc-6275eed8fc45 2012-12-04 18:25:49.181496 [DEBUG]
switch_core_media_bug.c:724 Removing BUG from
sofia/internal/1000 at 192.168.1.136
2012-12-04 18:25:49.341496 [DEBUG] switch_scheduler.c:214 Added task 20
sched_api_function (none) to run at 1354667154
66017ce6-23c8-4df1-accc-6275eed8fc45 2012-12-04 18:25:54.161496 [DEBUG]
switch_core_media_bug.c:506 Attaching BUG to
sofia/internal/1000 at 192.168.1.136
2012-12-04 18:25:54.161496 [DEBUG] mod_commands.c:3894 Command
uuid_displace(66017ce6-23c8-4df1-accc-6275eed8fc45 start digits/1.wav):
+OK Success
Any guidance would be appreciated.
Thanks,
Scott
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list