<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><br style="" class=""><div style="" class="">Hello all,</div><div style="" class=""><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">New to Freeswith and I am working on setting up a sip trunk to register freeswith to external service provider.</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">Follwoing sequences are happening in order.</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
 Grande,sans-serif; background-color: transparent; font-style: normal;">1. Freeswith sends REGISTER to external Registrar. (Expire=360)<br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">2. Registrar responds with 200OK. (expries=360)</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">3. After few seconds, Freeswitch sends REGISTER with Expries=0 and unregisters.</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size:
 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">Looks like Timer K is expiring. After successful 200 OK why expring timer K triggers an UnRegister?</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">nta.c:9099 outgoing_timer_dk() nta: timer K fired, terminate REGISTER (64250994)</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">Any help is much appreciated.</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style=""
 class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">-Sid<br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">I enabled sofia debug and here is the log</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">2014-08-27 17:15:16.842412 [NOTICE] sofia_reg.c:423 Registering
 Inphonex<br style="" class="">nua.c:622 nua_register() nua: nua_register: entering<br style="" class="">nua_stack.c:529 nua_signal() nua(0xb6518d28): sent signal r_register<br style="" class="">nua_stack.c:569 nua_stack_signal() nua(0xb6518d28): recv signal r_register<br style="" class="">nua_params.c:480 nua_stack_set_params() nua: nua_stack_set_params: entering<br style="" class="">soa.c:280 soa_clone() soa_clone(static::0xb6100d80, 0xb61008f8, 0xb6518d28) called<br style="" class="">soa.c:403 soa_set_params() soa_set_params(static::0xb6114780, ...) called<br style="" class="">soa.c:403 soa_set_params() soa_set_params(static::0xb6114780, ...) called<br style="" class="">nua_dialog.c:338 nua_dialog_usage_add() nua(0xb6518d28): adding register usage<br style="" class="">nta.c:4415 nta_leg_tcreate() nta_leg_tcreate(0xb612b810)<br style="" class="">nta.c:2665 nta_tpn_by_url() nta: selecting scheme sip<br style="" class="">tport.c:3257 tport_tsend()
 tport_tsend(0xb61023d8) tpn = udp/172.16.222.166:5060<br style="" class="">tport.c:4046 tport_resolve() tport_resolve addrinfo = 172.16.222.166:5060<br style="" class="">tport.c:4680 tport_by_addrinfo() tport_by_addrinfo(0xb61023d8): not found by name udp/172.16.222.166:5060<br style="" class="">tport.c:3594 tport_vsend() tport_vsend(0xb61023d8): 574 bytes of 574 to udp/172.16.222.166:5060<br style="" class="">tport.c:3492 tport_send_msg() tport_vsend returned 574<br style="" class="">nta.c:8302 outgoing_send() nta: sent REGISTER (64250994) to udp/172.16.222.166:5060<br style="" class="">tport.c:4160 tport_pend() tport_pend(0xb61023d8): pending 0xb6127c50 for udp/172.16.1.10:5092 (already 0)<br style="" class="">nta.c:1350 set_timeout() nta: timer set to 32000 ms<br style="" class="">nta.c:1348 set_timeout() nta: timer shortened to 1000 ms<br style="" class="">tport.c:2749 tport_wakeup_pri() tport_wakeup_pri(0xb61023d8): events IN<br style=""
 class="">tport.c:2864 tport_recv_event() tport_recv_event(0xb61023d8)<br style="" class="">tport.c:3205 tport_recv_iovec() tport_recv_iovec(0xb61023d8) msg 0xb6153848 from (udp/172.16.1.10:5092) has 435 bytes, veclen = 1<br style="" class="">tport.c:3023 tport_deliver() tport_deliver(0xb61023d8): msg 0xb6153848 (435 bytes) from udp/172.16.222.166:5092/sip next=(nil)<br style="" class="">nta.c:3297 agent_recv_response() nta: received 200 OK for REGISTER (64250994)<br style="" class="">nta.c:3364 agent_recv_response() nta: 200 OK is going to a transaction<br style="" class="">nta.c:9562 outgoing_estimate_delay() nta_outgoing: RTT is 3.65 ms<br style="" class="">tport.c:4222 tport_release() tport_release(0xb61023d8): 0xb6127c50 by 0xb612cac0 with 0xb6153848<br style="" class="">nua_dialog.c:564 nua_dialog_usage_set_refresh_range() nua(): refresh register after 259 seconds (in [90..270])<br style="" class="">nua_stack.c:271 nua_stack_event()
 nua(0xb6518d28): event r_register 200 OK<br style="" class="">nua_stack.c:359 nua_application_event() nua: nua_application_event: entering<br style="" class="">nua.c:366 nua_handle_magic() nua: nua_handle_magic: entering<br style="" class="">nua.c:366 nua_handle_magic() nua: nua_handle_magic: entering<br style="" class="">nta.c:1296 agent_timer() nta: timer set next to 4003 ms<br style="" class="">nta.c:9099 outgoing_timer_dk() nta: timer K fired, terminate REGISTER (64250994)<br style="" class="">nta.c:8797 outgoing_reclaim_queued() outgoing_reclaim_all((nil), (nil), 0xb570f1cc)<br style="" class="">nta.c:8927 _nta_outgoing_timer() nta_outgoing_timer: 0/0 resent, 0/0 tout, 1/1 term, 1/1 free<br style="" class="">nta.c:1289 agent_timer() nta: timer not set<br style="" class=""><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;
 background-color: transparent; font-style: normal;"><br style="" class=""></div></div></body></html>