<div dir="ltr">I&#39;m having a problem with failover. I have the call_timeout set to 15 seconds which results in a landline ringing 4 rings, and INSTANTLY after the 4th ring fails over to the failover destination. However, if the number being dialed is a cell phone I&#39;ve had one of two things happen: it will either ring and ring until voicemail, or what seems to happening now (I&#39;m not sure what setting caused this) it will rings twice and there will be dead air and eventually the calling side will time out and fail.<br>
<br>timeout=15<br>&nbsp;&nbsp;&nbsp; desk phone: 4 rings -&gt; failover<br>&nbsp;&nbsp;&nbsp; sprint mobile: 5 rings -&gt; voicemail<br>&nbsp;&nbsp;&nbsp; verizon mobile: 5 rings -&gt; voicemail<br><br>&lt;section name=&quot;dialplan&quot; description=&quot;&quot;&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;context name=&quot;public&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;extension name=&quot;did&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^($did)$&quot;&gt;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;!-- set the caller id --&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application=&quot;set&quot; data=&quot;effective_caller_id_name=Bob Smith&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application=&quot;set&quot; data=&quot;effective_caller_id_number=8005551234&quot;/&gt;<br>
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;!-- stops processing the dialplan after call is bridged --&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;!-- &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt; --&gt;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;!-- this is needed to allow call_timeout to work after bridging to a gateway --&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application=&quot;set&quot; data=&quot;ignore_early_media=true&quot;/&gt;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;!-- continue to process the dialplan after failure --&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=NO_ANSWER&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;!-- &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=NORMAL_TEMPORARY_FAILURE,TIMEOUT,NO_ROUTE_DESTINATION,NO_ANSWER&quot;/&gt; --&gt;<br>
<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;!-- try the client shop --&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application=&quot;set&quot; data=&quot;call_timeout=15&quot;/&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application=&quot;bridge&quot; data=&quot;sofia/vitelity/&lt;number to try&gt;@&lt;carrier&gt;&quot;/&gt;<br>
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;!-- failover destination --&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application=&quot;bridge&quot; data=&quot;sofia/vitelity/$0@&lt;failover dest&gt;&quot;/&gt;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/extension&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/context&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/section&gt;<br><br>call to desk:<br>2008-10-15 15:47:13 [NOTICE] switch_channel.c:534 switch_channel_set_name() New Channel sofia/vitelity/&lt;caller&gt;@&lt;carrier&gt; [1022c19a-9af2-11dd-bf67-89c26635687a]<br>
2008-10-15 15:47:13 [INFO] mod_dialplan_xml.c:222 dialplan_hunt() Processing &lt;caller&gt;-&gt;4073921320@public<br>2008-10-15 15:47:13 [NOTICE] switch_channel.c:534 switch_channel_set_name() New Channel sofia/vitelity/4078023342@&lt;carrier&gt; [1026f4ae-9af2-11dd-bf67-89c26635687a]<br>
2008-10-15 15:47:14 [NOTICE] sofia.c:2167 sofia_handle_sip_i_state() Ring-Ready sofia/vitelity/4078023342@&lt;carrier&gt;!<br>2008-10-15 15:47:14 [NOTICE] mod_sofia.c:1058 sofia_receive_message() Ring-Ready sofia/vitelity/&lt;caller&gt;@&lt;carrier&gt;!<br>
2008-10-15 15:47:14 [NOTICE] switch_ivr_originate.c:1148 switch_ivr_originate() Ring Ready sofia/vitelity/&lt;caller&gt;@&lt;carrier&gt;!<br>2008-10-15 15:47:28 [NOTICE] switch_ivr_originate.c:1277 switch_ivr_originate() Hangup sofia/vitelity/4078023342@&lt;carrier&gt; [CS_CONSUME_MEDIA] [NO_ANSWER]<br>
2008-10-15 15:47:28 [INFO] mod_dptools.c:1789 audio_bridge_function() Originate Failed.&nbsp; Cause: NO_ANSWER<br>2008-10-15 15:47:28 [NOTICE] switch_core_session.c:807 switch_core_session_thread() Session 181 (sofia/vitelity/4078023342@&lt;carrier&gt;) Ended<br>
2008-10-15 15:47:28 [NOTICE] switch_core_session.c:809 switch_core_session_thread() Close Channel sofia/vitelity/4078023342@&lt;carrier&gt; [CS_HANGUP]<br>2008-10-15 15:47:28 [NOTICE] switch_channel.c:534 switch_channel_set_name() New Channel sofia/vitelity/4073921320@&lt;failover dest&gt; [18d07116-9af2-11dd-bf67-89c26635687a]<br>
2008-10-15 15:47:28 [NOTICE] sofia.c:2456 sofia_handle_sip_i_state() Channel [sofia/vitelity/4073921320@&lt;failover dest&gt;] has been answered<br>2008-10-15 15:47:28 [NOTICE] sofia.c:2469 sofia_handle_sip_i_state() Channel [sofia/vitelity/&lt;caller&gt;@&lt;carrier&gt;] has been answered<br>
2008-10-15 15:47:45 [NOTICE] sofia.c:2545 sofia_handle_sip_i_state() Hangup sofia/vitelity/&lt;caller&gt;@&lt;carrier&gt; [CS_HIBERNATE] [NORMAL_CLEARING]<br>2008-10-15 15:47:45 [NOTICE] switch_ivr_bridge.c:586 signal_bridge_on_hangup() Hangup sofia/vitelity/4073921320@&lt;failover dest&gt; [CS_HIBERNATE] [NORMAL_CLEARING]<br>
2008-10-15 15:47:45 [NOTICE] switch_core_session.c:807 switch_core_session_thread() Session 180 (sofia/vitelity/&lt;caller&gt;@&lt;carrier&gt;) Ended<br>2008-10-15 15:47:45 [NOTICE] switch_core_session.c:809 switch_core_session_thread() Close Channel sofia/vitelity/&lt;caller&gt;@&lt;carrier&gt; [CS_HANGUP]<br>
2008-10-15 15:47:45 [NOTICE] switch_core_session.c:807 switch_core_session_thread() Session 182 (sofia/vitelity/4073921320@&lt;failover dest&gt;) Ended<br>2008-10-15 15:47:45 [NOTICE] switch_core_session.c:809 switch_core_session_thread() Close Channel sofia/vitelity/4073921320@&lt;failover dest&gt; [CS_HANGUP]<br>
<br>call to cell phone:<br>2008-10-15 15:51:09 [NOTICE] switch_channel.c:534 switch_channel_set_name() New Channel sofia/vitelity/&lt;caller&gt;@&lt;carrier&gt; [9cce820a-9af2-11dd-bf67-89c26635687a]<br>2008-10-15 15:51:09 [INFO] mod_dialplan_xml.c:222 dialplan_hunt() Processing &lt;caller&gt;-&gt;4073921320@public<br>
2008-10-15 15:51:09 [NOTICE] switch_channel.c:534 switch_channel_set_name() New Channel sofia/vitelity/3216956446@&lt;carrier&gt; [9cd274fa-9af2-11dd-bf67-89c26635687a]<br>2008-10-15 15:51:13 [NOTICE] switch_channel.c:1406 switch_channel_perform_mark_pre_answered() Ring-Ready sofia/vitelity/3216956446@&lt;carrier&gt;!<br>
2008-10-15 15:51:13 [NOTICE] sofia.c:2188 sofia_handle_sip_i_state() Pre-Answer sofia/vitelity/3216956446@&lt;carrier&gt;!<br>2008-10-15 15:51:13 [INFO] mod_sofia.c:1072 sofia_receive_message() Asked to send early media by sofia/vitelity/&lt;caller&gt;@&lt;carrier&gt;<br>
2008-10-15 15:51:13 [NOTICE] switch_channel.c:1406 switch_channel_perform_mark_pre_answered() Ring-Ready sofia/vitelity/&lt;caller&gt;@&lt;carrier&gt;!<br>2008-10-15 15:51:13 [NOTICE] mod_sofia.c:1116 sofia_receive_message() Pre-Answer sofia/vitelity/&lt;caller&gt;@&lt;carrier&gt;!<br>
2008-10-15 15:51:24 [NOTICE] switch_ivr_originate.c:1277 switch_ivr_originate() Hangup sofia/vitelity/3216956446@&lt;carrier&gt; [CS_CONSUME_MEDIA] [NO_ANSWER]<br>2008-10-15 15:51:24 [INFO] mod_dptools.c:1789 audio_bridge_function() Originate Failed.&nbsp; Cause: NO_ANSWER<br>
2008-10-15 15:51:24 [NOTICE] switch_core_session.c:807 switch_core_session_thread() Session 187 (sofia/vitelity/3216956446@&lt;carrier&gt;) Ended<br>2008-10-15 15:51:24 [NOTICE] switch_core_session.c:809 switch_core_session_thread() Close Channel sofia/vitelity/3216956446@&lt;carrier&gt; [CS_HANGUP]<br>
2008-10-15 15:52:14 [NOTICE] sofia.c:2545 sofia_handle_sip_i_state() Hangup sofia/vitelity/&lt;caller&gt;@&lt;carrier&gt; [CS_EXECUTE] [ORIGINATOR_CANCEL]<br>2008-10-15 15:52:25 [INFO] mod_dptools.c:1789 audio_bridge_function() Originate Failed.&nbsp; Cause: ORIGINATOR_CANCEL<br>
2008-10-15 15:52:25 [NOTICE] switch_core_session.c:807 switch_core_session_thread() Session 186 (sofia/vitelity/&lt;caller&gt;@&lt;carrier&gt;) Ended<br>2008-10-15 15:52:25 [NOTICE] switch_core_session.c:809 switch_core_session_thread() Close Channel sofia/vitelity/&lt;caller&gt;@&lt;carrier&gt; [CS_HANGUP]<br>
<br><br>I&#39;m not sure what to make of the differences between these logs. Any ideas?<br><br>Ted (irc:fedya)<br></div>