[Freeswitch-users] call_timeout

Federico Beffa beffa at ieee.org
Fri Aug 26 02:24:57 MSD 2011


Hi,

I've setup the dialplan such that when I receive a call from a provider
(public context), the call get transferred to an extension in the default
context (in a similar way as the default config). However, no matter what I
set for call_timeout, the call is always terminated after ca. 19 seconds
with a cause ORIGINATOR_CANCEL. I would like to extend the timeout period.

This is my public entry for the incoming call:

<include>
  <extension name="incoming_call">
    <condition field="destination_number" expression="^XXXXX$">
      <action application="set" data="domain_name=$${domain}"/>
      <action application="export" data="call_timeout=60"/>
      <action application="export" data="bridge_answer_timeout=60"/>
      <action application="export" data="originate_timeout=60"/>
      <action application="ring_ready"/>
      <action application="bridge" data="user/1000@${domain_name}"/>
      <!--<action application="transfer" data="1000 XML default"/>-->
      <action application="hangup"/>
    </condition>
  </extension>
</include>

And this is part of the log:

2011-08-25 23:57:30.920053 [NOTICE] sofia.c:5226 Ring-Ready
sofia/external/0916001220!
2011-08-25 23:57:30.920053 [NOTICE] mod_sofia.c:2366 Ring-Ready
sofia/internal/1001 at xxxxx!
2011-08-25 23:57:30.920053 [NOTICE] switch_ivr_originate.c:481 Ring Ready
sofia/internal/1001 at xxxxx!
2011-08-25 23:57:30.960053 [NOTICE] sofia.c:5226 Ring-Ready sofia/internal/
sip:1000 at 192.168.0.5:31148!
2011-08-25 23:57:30.960053 [NOTICE] switch_ivr_originate.c:481 Ring Ready
sofia/external/0916001220 at 195.190.166.249!
2011-08-25 23:57:50.900063 [NOTICE] sofia.c:5872 Hangup sofia/external/
0916001220 at 195.190.166.249 [CS_EXECUTE] [ORIGINATOR_CANCEL]
2011-08-25 23:57:50.900063 [NOTICE] switch_ivr_originate.c:3144 Hangup
sofia/internal/sip:1000 at 192.168.0.5:31148 [CS_CONSUME_MEDIA]
[ORIGINATOR_CANCEL]
2011-08-25 23:57:50.900063 [NOTICE] switch_ivr_originate.c:2436 Cannot
create outgoing channel of type [user] cause: [ORIGINATOR_CANCEL]
2011-08-25 23:57:50.900063 [INFO] mod_dptools.c:2696 Originate Failed.
Cause: ORIGINATOR_CANCEL
2011-08-25 23:57:50.900063 [NOTICE] sofia.c:5872 Hangup
sofia/external/0916001220 [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE]
2011-08-25 23:57:50.900063 [NOTICE] switch_core_session.c:1353 Session 11
(sofia/external/0916001220 at 195.190.166.249) Ended
2011-08-25 23:57:50.900063 [NOTICE] switch_core_session.c:1355 Close Channel
sofia/external/0916001220 at 195.190.166.249 [CS_DESTROY]
2011-08-25 23:57:50.900063 [NOTICE] switch_core_session.c:1353 Session 12
(sofia/internal/sip:1000 at 192.168.0.5:31148) Ended
2011-08-25 23:57:50.900063 [NOTICE] switch_core_session.c:1355 Close Channel
sofia/internal/sip:1000 at 192.168.0.5:31148 [CS_DESTROY]
2011-08-25 23:57:50.900063 [NOTICE] switch_core_session.c:1353 Session 10
(sofia/external/0916001220) Ended
2011-08-25 23:57:50.900063 [NOTICE] switch_core_session.c:1355 Close Channel
sofia/external/0916001220 [CS_DESTROY]
2011-08-25 23:57:50.900063 [INFO] mod_dptools.c:2696 Originate Failed.
Cause: NORMAL_TEMPORARY_FAILURE
2011-08-25 23:57:50.900063 [NOTICE] mod_dptools.c:2815 Hangup
sofia/internal/1001 at xxxxx [CS_EXECUTE] [NORMAL_TEMPORARY_FAILURE]
2011-08-25 23:57:50.900063 [NOTICE] switch_core_session.c:1353 Session 9
(sofia/internal/1001 at xxxxx) Ended
2011-08-25 23:57:50.900063 [NOTICE] switch_core_session.c:1355 Close Channel
sofia/internal/1001 at xxxxx [CS_DESTROY]

I've tryied with "transfer" and with "bridge" also setting [leg_timeout=60],
but no luck. I've changed all timeout related values in default.xml as well.


If the call comes from a phone registered locally, then the timeout works
fine. The problem only exists with calls coming from outside (the public
context). However, the timeout does seems to be related to freeswitch and
not the provider as I have another system running Asterisk and there the
problem (using the same provider accounts) does not exist.

I would really appreciate any suggestion on how to extend calls timeout.

Regards,
Fede
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110826/2259501a/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list