<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
<br>
I'm currently experimenting with sched_api to schedule a ringback
sound from a Ruby script. My code looks like this:<br>
<br>
<small><tt>ringback_result = con.bgapi('sched_api +8 none
uuid_broadcast ' + leg1_uuid + ' /var/www/mi/audio/ringback.mp3
aleg')<br>
puts "Serialized result:"<br>
puts ringback_result.serialize()</tt></small><br>
<br>
When I run the script, my output looks like:<br>
<br>
<small><tt>Serialized result:<br>
Event-Name: SOCKET_DATA<br>
Content-Type: command/reply<br>
Reply-Text:
%2BOK%20Job-UUID%3A%20cec047cc-97d7-4320-811a-e15e454843f9<br>
Job-UUID: cec047cc-97d7-4320-811a-e15e454843f9</tt><br>
</small><br>
The problem here is that I'm not getting the scheduled task ID
returned by sched_api I expect. I need the task ID so as to run
sched_del should I need to abort the task. Trying the same api_sched
command on fs_cli I get an output confirming that the task has been
added, together with the assigned task ID.<br>
<br>
<tt><small>sched_api +8 none uuid_broadcast
41b482a9-8595-47d4-a3fd-3c6a0d32e942
/var/www/mi/audio/ringback.mp3 aleg<br>
+OK Added: 34<br>
</small></tt><br>
Can anyone help me out with this one?<br>
<br>
Thanks!<br>
<pre class="moz-signature" cols="72">--
Claudio Álvarez, Ph.D.
Arquitecto de Sistemas / Systems Architect
Medularis S.p.A. - ClickFono
Tel: 56 2 934 40 74
Cel: 56 9 9079 4951
<a class="moz-txt-link-abbreviated" href="mailto:claudio@clickfono.com">claudio@clickfono.com</a></pre>
</body>
</html>