<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Well, after a long discussion with "MorkBork" on IRC, the riddle has
been solved. (Thanks again for your patience MorkBork!)<br>
<br>
The <action application="bridge" data=<a moz-do-not-send="true"
href="mailto:sofia/internal/1005@192.168.0.150" target="_blank">"sofia/internal/1005@192.168.0.150"</a>/>
is causing the problem. 192.168.0.150 is the FS IP address and is
causing a loop-back though the dialplan. <br>
<br>
In MorkBork's own words - "<span>freeswitch sees this, handles it as
a refer, it re-transverses the dialplan and misses all your
dialplan logic on the second time around</span>"<br>
<br>
This works<br>
<br>
<extension name="ext_8888"><br>
<condition field="destination_number"
expression="^(8888)$"><br>
<action application="export"
data="ringback=local_stream://custom1"/><br>
<action application="bridge"
data="user/1005"/><br>
</condition><br>
</extension><br>
<br>
Thanks you all for your help and suggestions.<br>
<br>
<br>
<div class="moz-cite-prefix">On 06/11/12 15:38, Nandy Dagondon
wrote:<br>
</div>
<blockquote
cite="mid:CAHKqMb6crZvfDpb3aekct-j4CbzBW7uTf8F+375v30gYPs_SoA@mail.gmail.com"
type="cite">Yes. Answer the call before the bridge so that MOH can
be played on the caller.<br>
<div class="gmail_extra"><br clear="all">
================================================<br>
Lapulapu City, Phils<br>
Phone: +63-32-3401807, (USA) +1-646-5471226<br>
Mobile: +63-920-6373450<br>
<b>Worldwide:</b><br>
Dial any <a moz-do-not-send="true"
href="http://www.snipurl.com/magicbox-access" target="_blank">200+
Access Number in 37 Countries</a>, then ...
<div> dial *011-63-32-3401807# afterwards.<br>
</div>
<br>
<br>
<br>
<div class="gmail_quote">On Tue, Nov 6, 2012 at 11:30 AM, ocset
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:ocset@the800group.com" target="_blank">ocset@the800group.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>Thanks Avi<br>
<br>
I have tried the following two dial plans but the phone
just rings - no music.
<div class="im"><br>
<br>
<extension name="ext_8888"><br>
<condition field="destination_number"
expression="^(8888)$"><br>
</div>
<div class="im"> <action
application="set"
data="transfer_ringback=local_stream://moh"/><br>
<action application="set"
data="ringback=local_stream://moh"/><br>
</div>
<action application="transfer"
data="1005 XML default"/><br>
</condition><br>
</extension>
<div class="im"><br>
<br>
<extension name="ext_8888"><br>
<condition field="destination_number"
expression="^(8888)$"><br>
</div>
<div class="im"> <action
application="set"
data="transfer_ringback=local_stream://moh"/><br>
<action application="set"
data="ringback=local_stream://moh"/><br>
</div>
<action application="bridge" data=<a
moz-do-not-send="true"
href="mailto:sofia/internal/1005@192.168.0.150"
target="_blank">"sofia/internal/1005@192.168.0.150"</a>/><br>
</condition><br>
</extension><br>
<br>
What am I missing? Should there be an "answer" directive
in there somewhere also?<br>
<br>
Thanks<span class="HOEnZb"><font color="#888888"><br>
O.</font></span>
<div>
<div class="h5"><br>
<br>
On 05/11/12 23:30, Avi Marcus wrote:<br>
</div>
</div>
</div>
<div>
<div class="h5">
<blockquote type="cite">
<div dir="ltr">You probably want ringback and/or
transfer ringback. That's for playing something
while the call is waiting to be answered.
<div><br>
<div>See: <a moz-do-not-send="true"
href="http://wiki.freeswitch.org/wiki/Time_of_Day_Routing#Example_for_office_open_09:00-16:00"
target="_blank">http://wiki.freeswitch.org/wiki/Time_of_Day_Routing#Example_for_office_open_09:00-16:00</a> there's
something set there, using:</div>
<div>
<pre style="padding-top:1em;padding-right:1em;padding-bottom:1em;padding-left:1em;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:dashed;border-right-style:dashed;border-bottom-style:dashed;border-left-style:dashed;border-top-color:rgb(47,111,171);border-right-color:rgb(47,111,171);border-bottom-color:rgb(47,111,171);border-left-color:rgb(47,111,171);background-color:rgb(249,249,249);line-height:1.1em"> <action application="set" data="ringback=local_stream://moh"/>
<action application="set" data="transfer_ringback=local_stream://moh"/></pre>
</div>
<div>You're line isn't quite right --
"{ignore_early_media<u>=<span
style="background-color:rgb(249,249,249);line-height:1.1em">true</span></u>}",
you need to set the variable data.</div>
<div><br>
</div>
<div>Playback is blocking -- it plays and then
moves on. Transfer_ringback sets what to do
when the transfer occurs.</div>
<div><br>
</div>
<div>I hope that helps and you can clean up the
wiki when you've got it all figured out.</div>
<div><br clear="all">
<div dir="ltr"><span
style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi<br>
</span></div>
<br>
<br>
<br>
<div class="gmail_quote">On Mon, Nov 5, 2012
at 4:55 PM, ocset <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:ocset@the800group.com"
target="_blank">ocset@the800group.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex"> Hi<br>
<br>
I am trying to to configure FS to play
music while transferring a new<br>
incoming call. Like when you phone a
business and you get the "your call<br>
in important to use, please wait while we
transfer..." message.<br>
<br>
I found this suggestion on the web but it
does not work for me. I have<br>
tested the two <action> command
separately to make sure they work but<br>
when they are put together, the call is
never answered and no music is<br>
played.<br>
<br>
<br>
<include><br>
<extension name="ext_8888"><br>
<condition
field="destination_number"
expression="^(8888)$"><br>
<action
application="playback"
data="music/test.wav"/><br>
<action
application="bridge"<br>
data="{ignore_early_media}sofia/internal/<a
moz-do-not-send="true"
href="mailto:1005@192.168.0.150"
target="_blank">1005@192.168.0.150</a>"/><br>
</condition><br>
</extension><br>
</include><br>
<br>
ps. I cannot find the answer in either of
the two FS books. Would have<br>
expected this to be there, at least in the
cookbook? All I can find is<br>
examples of playing music and then hanging
up. Happy to be corrected if<br>
I missed it:-)<br>
<br>
All help greatly appreciated<br>
Thanks<br>
O.<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting
Services:<br>
<a moz-do-not-send="true"
href="mailto:consulting@freeswitch.org"
target="_blank">consulting@freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitchsolutions.com"
target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel
Communication Server<br>
<a moz-do-not-send="true"
href="http://www.cudatel.com"
target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a moz-do-not-send="true"
href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://wiki.freeswitch.org"
target="_blank">http://wiki.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.cluecon.com"
target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a moz-do-not-send="true" href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a moz-do-not-send="true" href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a moz-do-not-send="true" href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a moz-do-not-send="true"
href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a moz-do-not-send="true" href="http://www.cudatel.com"
target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
<a moz-do-not-send="true" href="http://wiki.freeswitch.org"
target="_blank">http://wiki.freeswitch.org</a><br>
<a moz-do-not-send="true" href="http://www.cluecon.com"
target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
</body>
</html>