Discussion:
[Freeswitch-users] Music On Hold
Chia-Yen Wu
2010-10-22 07:19:15 UTC
Permalink
Hello,

I am using freeswitch as an IVR server.
I would like to be able to put the call on hold and play music while
performing some other tasks in the lua.
when the task is complete , the music stop and the IVR continue

but i cant find a way to do that, is there any function can do "music on
hold" in dialplan ?

Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101022/ab6d823e/attachment.html
Antonio
2010-10-22 14:18:25 UTC
Permalink
You can try to put in your dialplan

<action application="set" data="hold_music=/path/to/your/music.mp3"/>
Post by Chia-Yen Wu
Hello,
I am using freeswitch as an IVR server.
I would like to be able to put the call on hold and play music while
performing some other tasks in the lua.
when the task is complete , the music stop and the IVR continue
but i cant find a way to do that, is there any function can do "music
on hold" in dialplan ?
Thank you
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Un cordial saludo / Best regards,

_________________________

Ant?nio Silva

E-mail:asilva at wirelessmundi.com
Michael Collins
2010-10-22 17:39:29 UTC
Permalink
Just x-fer the call to dp ext 9664. When you are done with the Lua tasks use
uuid_transfer (or uuid_bridge) to grab the call out of 9664 and send it
wherever you need it to go.

-MC
Post by Chia-Yen Wu
Hello,
I am using freeswitch as an IVR server.
I would like to be able to put the call on hold and play music while
performing some other tasks in the lua.
when the task is complete , the music stop and the IVR continue
but i cant find a way to do that, is there any function can do "music on
hold" in dialplan ?
Thank you
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101022/6150255e/attachment-0001.html
sidharth_k
2011-06-16 05:41:06 UTC
Permalink
I too have this requirement.

Lets say I have a script abc.lua

In it, I

session:transfer("9664", "XML", "default")
session:setAutoHangup(false) -- prevent the script from ending

lets say I even have the uuid saved in a local variable uuid_value

After I do this, how do I bring the call back to the "context" of the script
abc.lua. In other words, how do I "untransfer"
Post by Michael Collins
Just x-fer the call to dp ext 9664. When you are done with the Lua tasks use
uuid_transfer (or uuid_bridge) to grab the call out of 9664 and send it
wherever you need it to go.
-MC
Post by Chia-Yen Wu
Hello,
I am using freeswitch as an IVR server.
I would like to be able to put the call on hold and play music while
performing some other tasks in the lua.
when the task is complete , the music stop and the IVR continue
but i cant find a way to do that, is there any function can do "music on
hold" in dialplan ?
Thank you
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Music-On-Hold-tp5662660p6481837.html
Sent from the freeswitch-users mailing list archive at Nabble.com.
Continue reading on narkive:
Loading...