[Freeswitch-users] SIP INVITE timeout

Gabriel Kuri gkuri at ieee.org
Fri Nov 28 13:03:59 PST 2008


I have a phone that is registered to FS but is no longer available
(Internet connection down, phone turned off, etc.). The registration
still exists in the sip_registrations table (not expired yet), but the
phone is not reachable on the network.

According to my dialplan, if the bridge to the phone fails after 20
seconds, the call should be forwarded to a different box for handling
(see dialplan below).


      <extension name="My Extension">
       <condition field="destination_number" expression="1213XXXXXXX">
         	<action application="info"/>
		<action application="set" data="originate_timeout=20"/>
         	<action application="set" data="hangup_after_bridge=true"/>
         	<action application="bridge"
data="${sofia_contact(default/1213XXXXXXX at mydomain.net"/>
		<action application="bridge"
data="sofia/default/1213XXXXXXX at box.mydomain.net"/>
        </condition>
      </extension>


If the phone is down and not responding to the INVITEs, it appears my
carrier is canceling the SIP INVITE to FreeSWITCH after about 10
seconds. My timeout is 20 seconds. Is there anyway to deal with this
situation, without going back to my carrier and asking them to increase
their timeout on an INVITE?

Call Progress:

Carrier -> FS (INVITE)
FS -> Carrier (100 Trying)

<10 seconds pass while FS is attempting to contact the phone>

Carrier -> FS (CANCEL)
FS -> Carrier (200 OK)
FS -> Carrier (487 Request Terminated)
Carrier -> FS (ACK)


Thanks ...

Gabe





More information about the FreeSWITCH-users mailing list