Try adding this before your bridge:<br><a href="http://wiki.freeswitch.org/wiki/Channel_Variables#ringback">http://wiki.freeswitch.org/wiki/Channel_Variables#ringback</a><br><br>-MC<br><br><div class="gmail_quote">On Thu, Feb 23, 2012 at 10:56 AM, Harry Coin <span dir="ltr">&lt;<a href="mailto:hcoin@quietfountain.com">hcoin@quietfountain.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all, great project!<br>
<br>
In the simple case of dialing out through a small 4 port fxo (grandstream-4104) there is an unwelcome ringback silence gap of almost exactly 10 seconds while the fxo goes offhook and issues its dtmf, then the audio resumes with whatever audio the PSTN sends in response to the dialled number.<br>

<br>
I&#39;ve tried to continue the ringback music using ignore_early_media=true with no success.  Tried transfer_ringback, instant_ringback, no joy.    In the following short fs_cli trace no matter what I try the music stops at the point below noted as 12:19:44... and there is silence until 12:19:54... when the PSTN provides audio.  What can I do to keep the ringback music going until  the log point noted at ...:54xxxx below?<br>

<br>
2012-02-23 12:19:44.000317 [DEBUG] mod_dptools.c:1176 sofia/internal/<a href="mailto:011@gate.quietfountain.com" target="_blank">011@gate.<u></u>quietfountain.com</a> SET [bypass_media]=[true]<br>
 EXECUTE sofia/internal/<a href="mailto:011@gate.quietfountain.com" target="_blank">011@gate.<u></u>quietfountain.com</a> bridge({ignore_early_media=<u></u>true}sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212<u></u>@fxoports1to4.quietfountain.<u></u>com</a>|sofia/internal/<a href="mailto:9915551212@fxoports1to4.quietfountain.com" target="_blank">9915551212@<u></u>fxoports1to4.quietfountain.com</a><u></u>)<br>

<br>
2012-02-23 12:19:44.000317 [DEBUG] switch_ivr_originate.c:1882 Parsing global variables<br>
2012-02-23 12:19:44.000317 [DEBUG] switch_event.c:1521 Parsing variable [ignore_early_media]=[true]<br>
2012-02-23 12:19:44.000317 [NOTICE] switch_channel.c:911 New Channel sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a> [ab71adf5-4a5e-e111-b2c4-<u></u>00104b98432d]<br>

<br>
2012-02-23 12:19:44.000317 [DEBUG] mod_sofia.c:4496 (sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a><u></u>) State Change CS_NEW -&gt; CS_INIT<br>

2012-02-23 12:19:44.000317 [DEBUG] switch_core_session.c:1175 Send signal sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a> [BREAK]<br>

2012-02-23 12:19:44.021687 [DEBUG] switch_core_state_machine.c:<u></u>362 (sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a><u></u>) Running State Change CS_INIT<br>

2012-02-23 12:19:44.021687 [DEBUG] switch_core_state_machine.c:<u></u>401 (sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a><u></u>) State INIT<br>

2012-02-23 12:19:44.021687 [DEBUG] mod_sofia.c:85 sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a> SOFIA INIT<br>
2012-02-23 12:19:44.021687 [DEBUG] mod_sofia.c:125 (sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a><u></u>) State Change CS_INIT -&gt; CS_ROUTING<br>

2012-02-23 12:19:44.021687 [DEBUG] switch_core_session.c:1175 Send signal sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a> [BREAK]<br>

2012-02-23 12:19:44.021687 [DEBUG] switch_core_state_machine.c:<u></u>401 (sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a><u></u>) State INIT going to sleep<br>

2012-02-23 12:19:44.021687 [DEBUG] switch_core_state_machine.c:<u></u>362 (sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a><u></u>) Running State Change CS_ROUTING<br>

2012-02-23 12:19:44.021687 [DEBUG] switch_channel.c:1840 (sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a><u></u>) Callstate Change DOWN -&gt; RINGING<br>

2012-02-23 12:19:44.021687 [DEBUG] switch_core_state_machine.c:<u></u>410 (sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a><u></u>) State ROUTING<br>

2012-02-23 12:19:44.021687 [DEBUG] mod_sofia.c:148 sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a> SOFIA ROUTING<br>
2012-02-23 12:19:44.021687 [DEBUG] switch_ivr_originate.c:66 (sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a><u></u>) State Change CS_ROUTING -&gt; CS_CONSUME_MEDIA<br>

<br>
2012-02-23 12:19:44.021687 [DEBUG] switch_core_session.c:1175 Send signal sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a> [BREAK]<br>

2012-02-23 12:19:44.021687 [DEBUG] switch_core_state_machine.c:<u></u>410 (sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a><u></u>) State ROUTING going to sleep<br>

2012-02-23 12:19:44.021687 [DEBUG] switch_core_state_machine.c:<u></u>362 (sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a><u></u>) Running State Change CS_CONSUME_MEDIA<br>

<br>
2012-02-23 12:19:44.021687 [DEBUG] switch_core_state_machine.c:<u></u>429 (sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a><u></u>) State CONSUME_MEDIA<br>

2012-02-23 12:19:44.021687 [DEBUG] switch_core_state_machine.c:<u></u>429 (sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a><u></u>) State CONSUME_MEDIA going to sleep<br>

2012-02-23 12:19:44.021687 [DEBUG] switch_core_session.c:870 Send signal sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a> [BREAK]<br>

send 1397 bytes to udp/[192.168.29.55]:5060 at 18:19:44.034612:<br>
   ------------------------------<u></u>------------------------------<u></u>------------<br>
   INVITE <a href="mailto:sip%3A9935551212@fxoports1to4.quietfountain.com" target="_blank">sip:9935551212@fxoports1to4.<u></u>quietfountain.com</a> SIP/2.0<br>
   Via: SIP/2.0/UDP 192.168.29.1;rport;branch=<u></u>z9hG4bKQKjKXKZBmD1Sr<br>
    Max-Forwards: 69<br>
    From: &quot;Net Ops Desk L1&quot; &lt;<a href="mailto:sip%3Ax011@192.168.29.1" target="_blank">sip:x011@192.168.29.1</a>&gt;;tag=<u></u>3F61avHXm0t2K<br>
    To: &lt;<a href="mailto:sip%3A9935551212@fxoports1to4.quietfountain.com" target="_blank">sip:9935551212@fxoports1to4.<u></u>quietfountain.com</a>&gt;<br>
    Call-ID: cd0d8ada-d8ed-122f-669c-<u></u>3fb68015248b<br>
    CSeq: 24674528 INVITE<br>
    Contact: &lt;<a href="http://sip:mod_sofia@192.168.29.1:5060" target="_blank">sip:mod_sofia@192.168.29.1:<u></u>5060</a>&gt;<br>
    User-Agent: FreeSWITCH-mod_sofia/1.0.head-<u></u>git-7f17ad7 2011-10-01 14-05-14 +0200<br>
    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>
    Supported: timer, precondition, path, replaces<br>
    Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer<br>
    Privacy: none<br>
    Content-Type: application/sdp<br>
    Content-Disposition: session<br>
    Content-Length: 445<br>
    X-FS-Support: update_display<br>
    P-Asserted-Identity: &quot;Net Ops Desk L1&quot; &lt;<a href="mailto:sip%3Ax011@192.168.29.1" target="_blank">sip:x011@192.168.29.1</a>&gt;<br>
    v=0<br>
    o=011 8004 8000 IN IP4 192.168.29.57<br>
    s=SIP Call<br>
    c=IN IP4 192.168.29.57<br>
    t=0 0<br>
    m=audio 5012 RTP/AVP 0 8 4 18 112 97 103 102 101<br>
    a=rtpmap:0 PCMU/8000<br>
    a=rtpmap:8 PCMA/8000<br>
    a=rtpmap:4 G723/8000<br>
    a=rtpmap:18 G729/8000<br>
    a=fmtp:18 annexb=no<br>
    a=rtpmap:112 G726-32/8000<br>
    a=rtpmap:97 iLBC/8000<br>
    a=fmtp:97 mode=20<br>
    a=rtpmap:103 AAL2-G726-40/8000<br>
    a=rtpmap:102 G729E/8000<br>
    a=rtpmap:101 telephone-event/8000<br>
    a=fmtp:101 0-16,32-36,54<br>
    a=ptime:20<br>
    ------------------------------<u></u>------------------------------<u></u>------------<br>
<br>
<br>
2012-02-23 12:19:44.021687 [DEBUG] sofia.c:5174 Channel sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a> entering state [calling][0]<br>

 recv 353 bytes from udp/[192.168.29.55]:5060 at 18:19:44.040757:<br>
   ------------------------------<u></u>------------------------------<u></u>------------<br>
<br>
   SIP/2.0 100 Trying<br>
   Via: SIP/2.0/UDP 192.168.29.1;rport;branch=<u></u>z9hG4bKQKjKXKZBmD1Sr<br>
   From: &quot;Net Ops Desk L1&quot; &lt;<a href="mailto:sip%3Ax011@192.168.29.1" target="_blank">sip:x011@192.168.29.1</a>&gt;;tag=<u></u>3F61avHXm0t2K<br>
   To: &lt;<a href="mailto:sip%3A9935551212@fxoports1to4.quietfountain.com" target="_blank">sip:9935551212@fxoports1to4.<u></u>quietfountain.com</a>&gt;<br>
   Call-ID: cd0d8ada-d8ed-122f-669c-<u></u>3fb68015248b<br>
   CSeq: 24674528 INVITE<br>
   User-Agent: Grandstream GXW4104 (HW 1.0, Ch:2) 1.3.4.10<br>
   Content-Length: 0<br>
   ------------------------------<u></u>------------------------------<u></u>------------<br>
<br>
SNOOZE WITH UNWELCOME SILENCE.....<br>
<br>
<br>
recv 503 bytes from udp/[192.168.29.55]:5060 at 18:19:54.350776:<br>
   ------------------------------<u></u>------------------------------<u></u>------------<br>
<br>
   SIP/2.0 180 Ringing<br>
   Via: SIP/2.0/UDP 192.168.29.1;rport;branch=<u></u>z9hG4bKQKjKXKZBmD1Sr<br>
   From: &quot;Net Ops Desk L1&quot; &lt;<a href="mailto:sip%3Ax011@192.168.29.1" target="_blank">sip:x011@192.168.29.1</a>&gt;;tag=<u></u>3F61avHXm0t2K<br>
   To: &lt;<a href="mailto:sip%3A9935551212@fxoports1to4.quietfountain.com" target="_blank">sip:9935551212@fxoports1to4.<u></u>quietfountain.com</a>&gt;;tag=<u></u>7be5ae114be4f046<br>
   Call-ID: cd0d8ada-d8ed-122f-669c-<u></u>3fb68015248b<br>
   CSeq: 24674528 INVITE<br>
   User-Agent: Grandstream GXW4104 (HW 1.0, Ch:2) 1.3.4.10<br>
   Contact: &lt;sip:<a href="http://192.168.29.55:5060" target="_blank">192.168.29.55:5060</a>;<u></u>transport=udp&gt;<br>
   Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,<u></u>REFER,OPTIONS,INFO,SUBSCRIBE,<u></u>UPDATE,PRACK<br>
   Content-Length: 0<br>
<br>
   ------------------------------<u></u>------------------------------<u></u>------------<br>
2012-02-23 12:19:54.332358 [DEBUG] switch_core_session.c:870 Send signal sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a> [BREAK]<br>

2012-02-23 12:19:54.332358 [DEBUG] switch_core_session.c:870 Send signal sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a> [BREAK]<br>

2012-02-23 12:19:54.353976 [DEBUG] sofia.c:5174 Channel sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a> entering state [proceeding][180]<br>

2012-02-23 12:19:54.353976 [NOTICE] sofia.c:5253 Ring-Ready sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a><u></u>!<br>
2012-02-23 12:19:54.353976 [NOTICE] mod_sofia.c:2393 Ring-Ready sofia/internal/<a href="mailto:011@gate.quietfountain.com" target="_blank">011@gate.<u></u>quietfountain.com</a>!<br>
<br>
recv 797 bytes from udp/[192.168.29.55]:5060 at 18:19:54.362180:<br>
   ------------------------------<u></u>------------------------------<u></u>------------<br>
   SIP/2.0 200 OK<br>
   Via: SIP/2.0/UDP 192.168.29.1;rport;branch=<u></u>z9hG4bKQKjKXKZBmD1Sr<br>
   From: &quot;Net Ops Desk L1&quot; &lt;<a href="mailto:sip%3Ax011@192.168.29.1" target="_blank">sip:x011@192.168.29.1</a>&gt;;tag=<u></u>3F61avHXm0t2K<br>
   To: &lt;<a href="mailto:sip%3A9935551212@fxoports1to4.quietfountain.com" target="_blank">sip:9935551212@fxoports1to4.<u></u>quietfountain.com</a>&gt;;tag=<u></u>7be5ae114be4f046<br>
   Call-ID: cd0d8ada-d8ed-122f-669c-<u></u>3fb68015248b<br>
   CSeq: 24674528 INVITE<br>
   User-Agent: Grandstream GXW4104 (HW 1.0, Ch:2) 1.3.4.10<br>
   Contact: &lt;sip:<a href="http://192.168.29.55:5060" target="_blank">192.168.29.55:5060</a>;<u></u>transport=udp&gt;<br>
   Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,<u></u>REFER,OPTIONS,INFO,SUBSCRIBE,<u></u>UPDATE,PRACK<br>
   Content-Type: application/sdp<br>
   Supported: replaces, timer, 100rel, path<br>
   Content-Length: 224<br>
   v=0<br>
   o=system 8002 8000 IN IP4 192.168.29.55<br>
   s=SIP Call<br>
   c=IN IP4 192.168.29.55<br>
   t=0 0<br>
   m=audio 5012 RTP/AVP 0 8 4 18 3 101<br>
   a=sendrecv<br>
   a=rtpmap:0 PCMU/8000<br>
   a=ptime:20<br>
   a=rtpmap:101 telephone-event/8000<br>
   a=fmtp:101 0-11<br>
<br>
   ------------------------------<u></u>------------------------------<u></u>------------<br>
<br>
2012-02-23 12:19:54.353976 [DEBUG] switch_core_session.c:870 Send signal sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a> [BREAK]<br>

2012-02-23 12:19:54.353976 [DEBUG] switch_core_session.c:870 Send signal sofia/internal/<a href="mailto:9935551212@fxoports1to4.quietfountain.com" target="_blank">9935551212@<u></u>fxoports1to4.quietfountain.com</a> [BREAK]<br>

2012-02-23 12:19:54.353976 [DEBUG] switch_core_session.c:724 Send signal sofia/internal/<a href="mailto:011@gate.quietfountain.com" target="_blank">011@gate.<u></u>quietfountain.com</a> [BREAK]<br>
2012-02-23 12:19:54.353976 [NOTICE] switch_ivr_originate.c:481 Ring Ready sofia/internal/<a href="mailto:011@gate.quietfountain.com" target="_blank">011@gate.<u></u>quietfountain.com</a>!<br>
<br>
<br>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>