<div dir="ltr">Hi Fredick,<div><br></div><div>Your PBX is giving 504 Gateway timeout and not sure how it will solve the issue by sending the keep-alive. Once the call answered if you want to send any KEEP alive for the particular call you can use SIP session timer. </div><div><br></div><div><h5 style="color:rgb(0,0,0);margin:0px 0px 0.3em;overflow:hidden;padding-top:0.5em;padding-bottom:0.17em;border-bottom-style:none;font-size:12.8000001907349px;font-family:sans-serif;line-height:19.2000007629395px;background-image:none;background-repeat:initial"><span class="" id="enable-timer">enable-timer</span></h5><p style="margin:0.4em 0px 0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px">This enables or disables support for <a rel="nofollow" class="" href="http://tools.ietf.org/html/rfc4028" style="text-decoration:none;color:rgb(102,51,102);padding-right:13px">RFC 4028</a> SIP Session Timers.</p><pre style="font-family:monospace,Courier;padding:1em;border:1px dashed rgb(47,111,171);color:rgb(0,0,0);line-height:1.3em;font-size:12.8000001907349px;background-color:rgb(249,249,249)"><param name="enable-timer" value="false"/>
</pre><h5 style="color:rgb(0,0,0);margin:0px 0px 0.3em;overflow:hidden;padding-top:0.5em;padding-bottom:0.17em;border-bottom-style:none;font-size:12.8000001907349px;font-family:sans-serif;line-height:19.2000007629395px;background-image:none;background-repeat:initial"><span class="" id="session-timeout">session-timeout</span></h5><p style="margin:0.4em 0px 0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px">session timers for all call to expire after the specified seconds Then it will send another invite (re-invite). If not specified defaults to 30 minutes. Some gateways may reject values less than 30 minutes. This values refers to Session-Expires in <a rel="nofollow" class="" href="http://tools.ietf.org/html/rfc4028" style="text-decoration:none;color:rgb(102,51,102);padding-right:13px">RFC 4028</a>(The time at which an element will consider the session timed out, if no successful session refresh transaction occurs beforehand)</p><pre style="font-family:monospace,Courier;padding:1em;border:1px dashed rgb(47,111,171);color:rgb(0,0,0);line-height:1.3em;font-size:12.8000001907349px;background-color:rgb(249,249,249)"><param name="session-timeout" value="1800"/></pre></div><div class="gmail_extra"><br><div class="gmail_quote">But for your problem I strongly recommend you to check the issue in your PBX side where we are getting 504 error.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Regards</div><div class="gmail_quote"><br></div><div class="gmail_quote">Paul </div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">On Thu, Apr 2, 2015 at 12:21 PM, Fredrik Larsson <span dir="ltr"><<a href="mailto:fl@workmansoft.com" target="_blank">fl@workmansoft.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This is the log as well:<div><br></div><div><div>2015-04-02 21:16:28.729469 [DEBUG] mod_httapi.c:1218 Process Tag: [playback]</div><div>66eb8d8c-51f1-4a96-af26-a76fd65f86c9 2015-04-02 21:16:28.729469 [DEBUG] switch_ivr_play_say.c:1314 Codec Activated L16@8000hz 1 channels 20ms</div><div>..\..\sofia-sip\libsofia-sip-ua\tport\tport.c:2749 tport_wakeup_pri() tport_wakeup_pri(02632630): events IN</div><div>..\..\sofia-sip\libsofia-sip-ua\tport\tport.c:2864 tport_recv_event() tport_recv_event(02632630)</div><div>..\..\sofia-sip\libsofia-sip-ua\tport\tport.c:3205 tport_recv_iovec() tport(02632630) msg 03CE6898 from (udp/<a href="http://10.98.7.37:5070" target="_blank">10.98.7.37:5070</a>) has 472 bytes, veclen = 1</div><div>recv 472 bytes from udp/[10.44.33.16]:5060 at 19:16:28.991477:</div><div> ------------------------------------------------------------------------</div><div> SIP/2.0 504 Gateway Timeout</div><div> Via: SIP/2.0/UDP 10.98.7.37:5070;rport;branch=z9hG4bK3KvmXjNUaD61e</div><div> From: "wm98991155" <<a href="mailto:sip%3A7411041111@10.98.7.37" target="_blank">sip:7411041111@10.98.7.37</a>>;tag=3BU8reyaX4m6g</div><div> Call-ID: e82eb3a4-540e-1233-2385-33f7f366dd04</div><div> CSeq: 73664880 INVITE</div><div> Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,INFO,NOTIFY,UPDATE</div><div> Supported: timer</div><div> Server: IP Office 9.0.5.0 build 972</div><div> Reason: Q.850;cause=102;text="Recovery on timer expiry"</div><div> To: <<a href="mailto:sip%3A9999@10.44.33.16" target="_blank">sip:9999@10.44.33.16</a>>;tag=5c965d7da3a12d47</div><div> Content-Length: 0</div><div> </div><div> ------------------------------------------------------------------------</div><div>..\..\sofia-sip\libsofia-sip-ua\tport\tport.c:3023 tport_deliver() tport(02632630): msg 03CE6898 (472 bytes) from udp/<a href="http://10.44.33.16:5070/sip" target="_blank">10.44.33.16:5070/sip</a> next=00000000</div><div>..\..\sofia-sip\libsofia-sip-ua\nta\nta.c:3299 agent_recv_response() nta: received 504 Gateway Timeout for INVITE (73664880)</div><div>..\..\sofia-sip\libsofia-sip-ua\nta\nta.c:3366 agent_recv_response() nta: 504 Gateway Timeout is going to a transaction</div><div>..\..\sofia-sip\libsofia-sip-ua\tport\tport.c:4222 tport_release() tport(02632630): 03CE6078 by 027C4748 with 03CE6898</div><div>..\..\sofia-sip\libsofia-sip-ua\tport\tport.c:3257 tport_tsend() tport_tsend(02632630) tpn = UDP/<a href="http://10.44.33.16:5060" target="_blank">10.44.33.16:5060</a></div><div>..\..\sofia-sip\libsofia-sip-ua\tport\tport.c:4680 tport_by_addrinfo() tport(02632630): not found by name UDP/<a href="http://10.44.33.16:5060" target="_blank">10.44.33.16:5060</a></div><div>send 323 bytes to udp/[10.44.33.16]:5060 at 19:16:28.991477:</div><div> ------------------------------------------------------------------------</div><div> ACK <a href="mailto:sip%3A9999@10.44.33.16" target="_blank">sip:9999@10.44.33.16</a> SIP/2.0</div><div> Via: SIP/2.0/UDP 10.98.7.37:5070;rport;branch=z9hG4bK3KvmXjNUaD61e</div><div> Max-Forwards: 70</div><div> From: "wm98991155" <<a href="mailto:sip%3A7411041111@10.98.7.37" target="_blank">sip:7411041111@10.98.7.37</a>>;tag=3BU8reyaX4m6g</div><div> To: <<a href="mailto:sip%3A9999@10.44.33.16" target="_blank">sip:9999@10.44.33.16</a>>;tag=5c965d7da3a12d47</div><div> Call-ID: e82eb3a4-540e-1233-2385-33f7f366dd04</div><div> CSeq: 73664880 ACK</div><div> Content-Length: 0</div><div> </div><div> ------------------------------------------------------------------------</div><div>..\..\sofia-sip\libsofia-sip-ua\nta\nta.c:8304 outgoing_send() nta: sent ACK (73664880) to UDP/<a href="http://10.44.33.16:5060" target="_blank">10.44.33.16:5060</a></div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_session.c:1053 Send signal sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a> [BREAK]</div><div>..\..\sofia-sip\libsofia-sip-ua\nua\nua_session.c:4139 signal_call_state_change() nua(01D997F0): call state changed: proceeding -> init</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_session.c:1053 Send signal sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a> [BREAK]</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_session.c:1053 Send signal sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a> [BREAK]</div><div>..\..\sofia-sip\libsofia-sip-ua\nua\nua_dialog.c:397 nua_dialog_usage_remove_at() nua(01D997F0): removing session usage</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] sofia.c:5840 Remote Reason: 102</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] sofia.c:6614 Channel sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a> entering state [terminated][504]</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [NOTICE] sofia.c:7529 Hangup sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a> [CS_CONSUME_MEDIA] [RECOVERY_ON_TIMER_EXPIRE]</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_channel.c:3222 Send signal sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a> [KILL]</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_session.c:1388 Send signal sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a> [BREAK]</div><div>..\..\sofia-sip\libsofia-sip-ua\nua\nua_stack.c:529 nua_signal() nua(01D997F0): sent signal r_destroy</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_state_machine.c:472 (sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a>) Running State Change CS_HANGUP</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_state_machine.c:735 (sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a>) Callstate Change RINGING -> HANGUP</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_state_machine.c:737 (sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a>) State HANGUP</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] mod_sofia.c:413 Channel sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a> hanging up, cause: RECOVERY_ON_TIMER_EXPIRE</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_state_machine.c:60 sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a> Standard HANGUP, cause: RECOVERY_ON_TIMER_EXPIRE</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_state_machine.c:737 (sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a>) State HANGUP going to sleep</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_state_machine.c:504 (sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a>) State Change CS_HANGUP -> CS_REPORTING</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_session.c:1388 Send signal sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a> [BREAK]</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_state_machine.c:472 (sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a>) Running State Change CS_REPORTING</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_state_machine.c:823 (sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a>) State REPORTING</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_state_machine.c:104 sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a> Standard REPORTING, cause: RECOVERY_ON_TIMER_EXPIRE</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_state_machine.c:823 (sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a>) State REPORTING going to sleep</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_state_machine.c:498 (sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a>) State Change CS_REPORTING -> CS_DESTROY</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_session.c:1388 Send signal sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a> [BREAK]</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_session.c:1615 Session 3 (sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a>) Locked, Waiting on external entities</div><div>2015-04-02 21:16:28.989475 [DEBUG] switch_ivr_originate.c:3695 Originate Resulted in Error Cause: 102 [RECOVERY_ON_TIMER_EXPIRE]</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [NOTICE] switch_core_session.c:1633 Session 3 (sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a>) Ended</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [NOTICE] switch_core_session.c:1637 Close Channel sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a> [CS_DESTROY]</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_state_machine.c:626 (sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a>) Running State Change CS_DESTROY</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_state_machine.c:636 (sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a>) State DESTROY</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] mod_sofia.c:323 sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a> SOFIA DESTROY</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_state_machine.c:111 sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a> Standard DESTROY</div><div>285c3556-b081-4ac7-bd62-b82129f4f362 2015-04-02 21:16:28.989475 [DEBUG] switch_core_state_machine.c:636 (sofia/internal/<a href="mailto:9999@10.44.33.16" target="_blank">9999@10.44.33.16</a>) State DESTROY going to sleep</div></div><div><br></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div><div><br></div></div></div></div></div></div></div>
<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>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.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></blockquote></div><br></div></div>