<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 2/23/2012 3:17 PM, Michael Collins wrote:
<blockquote
cite="mid:%3CCAKzWOxWA-4zaFX_9aNacn_MrfRMDDDEFa8sTJQHZveGP6sTC0g@mail.gmail.com%3E"
type="cite">Try adding this before your bridge:<br>
<a moz-do-not-send="true"
href="http://wiki.freeswitch.org/wiki/Channel_Variables#ringback">http://wiki.freeswitch.org/wiki/Channel_Variables#ringback</a><br>
<br>
-MC<br>
</blockquote>
<br>
Yup, the fusionpbx hunt group lua put that in here:
<br>
<br>
session:execute("set", "ringback=${hold_music}"); --set to
music
<br>
session:execute("set", "transfer_ringback=${hold_music}"); --set to
music
<br>
session:setVariable("continue_on_fail", "true");
<br>
session:setVariable("ignore_early_media", "true");
<br>
session:setVariable("hangup_after_bridge", "true");
<br>
<br>
<br>
The answer turns out to be that the music on hold selection matched
the previous failed extension ring's length. It basically ran out
at the wrong moment and had me looking hard for configuration
issues. So, it was a configuration issue -- wrong wait music
length.
<br>
<br>
Sorry!
<br>
-HC<br>
<br>
P.S. Might take a look at that 'transfer' and 'execute_extension'
documentation relative to 'continue_on_fail'. If continue_on_fail
is set, and bridge /sofia/internal/<dialplan target> itself
does either a transfer, execute_extension leading to another bridge
which then fails, the first bridge doesn't continue. Seems either
freeswitch or sofia ends the connection at the time of the transfer
or execute_extension. So not exactly like 'goto' and 'gosub' as
per the docs. Found out the hard way to have the hunt group
machinery do a loopback bridge (supported by Fusionpbx) or
execute_extension (not supported by fusionpbx) instead of bridge.<br>
<br>
<br>
<br>
<blockquote
cite="mid:%3CCAKzWOxWA-4zaFX_9aNacn_MrfRMDDDEFa8sTJQHZveGP6sTC0g@mail.gmail.com%3E"
type="cite"><br>
<div class="gmail_quote">On Thu, Feb 23, 2012 at 10:56 AM, Harry
Coin <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:hcoin@quietfountain.com">hcoin@quietfountain.com</a>></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'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 moz-do-not-send="true"
href="mailto:011@gate.quietfountain.com" target="_blank">011@gate.quietfountain.com</a>
SET [bypass_media]=[true]<br>
EXECUTE sofia/internal/<a moz-do-not-send="true"
href="mailto:011@gate.quietfountain.com" target="_blank">011@gate.quietfountain.com</a>
bridge({ignore_early_media=true}sofia/internal/<a
moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>|sofia/internal/<a
moz-do-not-send="true"
href="mailto:9915551212@fxoports1to4.quietfountain.com"
target="_blank">9915551212@fxoports1to4.quietfountain.com</a>)<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 moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>
[ab71adf5-4a5e-e111-b2c4-00104b98432d]<br>
<br>
2012-02-23 12:19:44.000317 [DEBUG] mod_sofia.c:4496
(sofia/internal/<a moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>)
State Change CS_NEW -> CS_INIT<br>
2012-02-23 12:19:44.000317 [DEBUG] switch_core_session.c:1175
Send signal sofia/internal/<a moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>
[BREAK]<br>
2012-02-23 12:19:44.021687 [DEBUG]
switch_core_state_machine.c:362 (sofia/internal/<a
moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>)
Running State Change CS_INIT<br>
2012-02-23 12:19:44.021687 [DEBUG]
switch_core_state_machine.c:401 (sofia/internal/<a
moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>)
State INIT<br>
2012-02-23 12:19:44.021687 [DEBUG] mod_sofia.c:85
sofia/internal/<a moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>
SOFIA INIT<br>
2012-02-23 12:19:44.021687 [DEBUG] mod_sofia.c:125
(sofia/internal/<a moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>)
State Change CS_INIT -> CS_ROUTING<br>
2012-02-23 12:19:44.021687 [DEBUG] switch_core_session.c:1175
Send signal sofia/internal/<a moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>
[BREAK]<br>
2012-02-23 12:19:44.021687 [DEBUG]
switch_core_state_machine.c:401 (sofia/internal/<a
moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>)
State INIT going to sleep<br>
2012-02-23 12:19:44.021687 [DEBUG]
switch_core_state_machine.c:362 (sofia/internal/<a
moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>)
Running State Change CS_ROUTING<br>
2012-02-23 12:19:44.021687 [DEBUG] switch_channel.c:1840
(sofia/internal/<a moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>)
Callstate Change DOWN -> RINGING<br>
2012-02-23 12:19:44.021687 [DEBUG]
switch_core_state_machine.c:410 (sofia/internal/<a
moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>)
State ROUTING<br>
2012-02-23 12:19:44.021687 [DEBUG] mod_sofia.c:148
sofia/internal/<a moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>
SOFIA ROUTING<br>
2012-02-23 12:19:44.021687 [DEBUG] switch_ivr_originate.c:66
(sofia/internal/<a moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>)
State Change CS_ROUTING -> CS_CONSUME_MEDIA<br>
<br>
2012-02-23 12:19:44.021687 [DEBUG] switch_core_session.c:1175
Send signal sofia/internal/<a moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>
[BREAK]<br>
2012-02-23 12:19:44.021687 [DEBUG]
switch_core_state_machine.c:410 (sofia/internal/<a
moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>)
State ROUTING going to sleep<br>
2012-02-23 12:19:44.021687 [DEBUG]
switch_core_state_machine.c:362 (sofia/internal/<a
moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>)
Running State Change CS_CONSUME_MEDIA<br>
<br>
2012-02-23 12:19:44.021687 [DEBUG]
switch_core_state_machine.c:429 (sofia/internal/<a
moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>)
State CONSUME_MEDIA<br>
2012-02-23 12:19:44.021687 [DEBUG]
switch_core_state_machine.c:429 (sofia/internal/<a
moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>)
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 moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>
[BREAK]<br>
send 1397 bytes to udp/[192.168.29.55]:5060 at
18:19:44.034612:<br>
------------------------------------------------------------------------<br>
INVITE <a moz-do-not-send="true"
href="mailto:sip%3A9935551212@fxoports1to4.quietfountain.com"
target="_blank">sip:9935551212@fxoports1to4.quietfountain.com</a>
SIP/2.0<br>
Via: SIP/2.0/UDP 192.168.29.1;rport;branch=z9hG4bKQKjKXKZBmD1Sr<br>
Max-Forwards: 69<br>
From: "Net Ops Desk L1" <<a moz-do-not-send="true"
href="mailto:sip%3Ax011@192.168.29.1" target="_blank">sip:x011@192.168.29.1</a>>;tag=3F61avHXm0t2K<br>
To: <<a moz-do-not-send="true"
href="mailto:sip%3A9935551212@fxoports1to4.quietfountain.com"
target="_blank">sip:9935551212@fxoports1to4.quietfountain.com</a>><br>
Call-ID: cd0d8ada-d8ed-122f-669c-3fb68015248b<br>
CSeq: 24674528 INVITE<br>
Contact: <<a moz-do-not-send="true"
href="http://sip:mod_sofia@192.168.29.1:5060"
target="_blank">sip:mod_sofia@192.168.29.1:5060</a>><br>
User-Agent: FreeSWITCH-mod_sofia/1.0.head-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: "Net Ops Desk L1" <<a
moz-do-not-send="true" href="mailto:sip%3Ax011@192.168.29.1"
target="_blank">sip:x011@192.168.29.1</a>><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>
------------------------------------------------------------------------<br>
<br>
<br>
2012-02-23 12:19:44.021687 [DEBUG] sofia.c:5174 Channel
sofia/internal/<a moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@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>
------------------------------------------------------------------------<br>
<br>
SIP/2.0 100 Trying<br>
Via: SIP/2.0/UDP 192.168.29.1;rport;branch=z9hG4bKQKjKXKZBmD1Sr<br>
From: "Net Ops Desk L1" <<a moz-do-not-send="true"
href="mailto:sip%3Ax011@192.168.29.1" target="_blank">sip:x011@192.168.29.1</a>>;tag=3F61avHXm0t2K<br>
To: <<a moz-do-not-send="true"
href="mailto:sip%3A9935551212@fxoports1to4.quietfountain.com"
target="_blank">sip:9935551212@fxoports1to4.quietfountain.com</a>><br>
Call-ID: cd0d8ada-d8ed-122f-669c-3fb68015248b<br>
CSeq: 24674528 INVITE<br>
User-Agent: Grandstream GXW4104 (HW 1.0, Ch:2) 1.3.4.10<br>
Content-Length: 0<br>
------------------------------------------------------------------------<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>
------------------------------------------------------------------------<br>
<br>
SIP/2.0 180 Ringing<br>
Via: SIP/2.0/UDP 192.168.29.1;rport;branch=z9hG4bKQKjKXKZBmD1Sr<br>
From: "Net Ops Desk L1" <<a moz-do-not-send="true"
href="mailto:sip%3Ax011@192.168.29.1" target="_blank">sip:x011@192.168.29.1</a>>;tag=3F61avHXm0t2K<br>
To: <<a moz-do-not-send="true"
href="mailto:sip%3A9935551212@fxoports1to4.quietfountain.com"
target="_blank">sip:9935551212@fxoports1to4.quietfountain.com</a>>;tag=7be5ae114be4f046<br>
Call-ID: cd0d8ada-d8ed-122f-669c-3fb68015248b<br>
CSeq: 24674528 INVITE<br>
User-Agent: Grandstream GXW4104 (HW 1.0, Ch:2) 1.3.4.10<br>
Contact: <sip:<a moz-do-not-send="true"
href="http://192.168.29.55:5060" target="_blank">192.168.29.55:5060</a>;transport=udp><br>
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK<br>
Content-Length: 0<br>
<br>
------------------------------------------------------------------------<br>
2012-02-23 12:19:54.332358 [DEBUG] switch_core_session.c:870
Send signal sofia/internal/<a moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>
[BREAK]<br>
2012-02-23 12:19:54.332358 [DEBUG] switch_core_session.c:870
Send signal sofia/internal/<a moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>
[BREAK]<br>
2012-02-23 12:19:54.353976 [DEBUG] sofia.c:5174 Channel
sofia/internal/<a moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@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 moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>!<br>
2012-02-23 12:19:54.353976 [NOTICE] mod_sofia.c:2393
Ring-Ready sofia/internal/<a moz-do-not-send="true"
href="mailto:011@gate.quietfountain.com" target="_blank">011@gate.quietfountain.com</a>!<br>
<br>
recv 797 bytes from udp/[192.168.29.55]:5060 at
18:19:54.362180:<br>
------------------------------------------------------------------------<br>
SIP/2.0 200 OK<br>
Via: SIP/2.0/UDP 192.168.29.1;rport;branch=z9hG4bKQKjKXKZBmD1Sr<br>
From: "Net Ops Desk L1" <<a moz-do-not-send="true"
href="mailto:sip%3Ax011@192.168.29.1" target="_blank">sip:x011@192.168.29.1</a>>;tag=3F61avHXm0t2K<br>
To: <<a moz-do-not-send="true"
href="mailto:sip%3A9935551212@fxoports1to4.quietfountain.com"
target="_blank">sip:9935551212@fxoports1to4.quietfountain.com</a>>;tag=7be5ae114be4f046<br>
Call-ID: cd0d8ada-d8ed-122f-669c-3fb68015248b<br>
CSeq: 24674528 INVITE<br>
User-Agent: Grandstream GXW4104 (HW 1.0, Ch:2) 1.3.4.10<br>
Contact: <sip:<a moz-do-not-send="true"
href="http://192.168.29.55:5060" target="_blank">192.168.29.55:5060</a>;transport=udp><br>
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,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>
------------------------------------------------------------------------<br>
<br>
2012-02-23 12:19:54.353976 [DEBUG] switch_core_session.c:870
Send signal sofia/internal/<a moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>
[BREAK]<br>
2012-02-23 12:19:54.353976 [DEBUG] switch_core_session.c:870
Send signal sofia/internal/<a moz-do-not-send="true"
href="mailto:9935551212@fxoports1to4.quietfountain.com"
target="_blank">9935551212@fxoports1to4.quietfountain.com</a>
[BREAK]<br>
2012-02-23 12:19:54.353976 [DEBUG] switch_core_session.c:724
Send signal sofia/internal/<a moz-do-not-send="true"
href="mailto:011@gate.quietfountain.com" target="_blank">011@gate.quietfountain.com</a>
[BREAK]<br>
2012-02-23 12:19:54.353976 [NOTICE] switch_ivr_originate.c:481
Ring Ready sofia/internal/<a moz-do-not-send="true"
href="mailto:011@gate.quietfountain.com" target="_blank">011@gate.quietfountain.com</a>!<br>
<br>
<br>
<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>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Harry Coin
Quiet Fountain LLC
2118 Lundy Ln
Bettendorf, Iowa 52722 USA
Office: 563 332 4970x101 Fax: 563 332 9633
Mobile: 563 650 7800
</pre>
</body>
</html>