[Freeswitch-dev] stop originate_retries after hangup

Mathieu Rene mrene_lists at avgs.ca
Wed Feb 17 15:34:51 PST 2010


Hi,

Please report bugs on Jira instead of on the mailing list so we can  
keep track of them. See http://wiki.freeswitch.org/wiki/Reporting_Bugs

Since you posted on -dev, are you calling switch_ivr_originate()  
manually from your own code?

Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mrene at avgs.ca




On 17-Feb-10, at 6:00 PM, andre phan wrote:

> I am having a problem whenever I use originate_retries when using  
> bridge.  If the caller on leg A hangs up before anyone on the B leg  
> picks up, the call will continue to attempt to originate until all  
> retries are filled.  I will need both channels to close and not  
> attempt to keep attempting to originate when the caller hangs up.   
> Below is the output log of the call:
>
>
> 2010-02-17 14:44:16.567487 [NOTICE] switch_ivr_originate.c:2026  
> Hangup sofia/external/5555551234 [CS_CONSUME_MEDIA]  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:16.567487 [DEBUG] switch_channel.c:1715 Send signal  
> sofia/external/5555551234 [KILL]
> 2010-02-17 14:44:16.567487 [DEBUG] switch_core_session.c:932 Send  
> signal sofia/external/5555551234 [BREAK]
> 2010-02-17 14:44:16.567487 [DEBUG] switch_core_state_machine.c:398  
> (sofia/external/5555551234) Running State Change CS_HANGUP
> 2010-02-17 14:44:16.567487 [DEBUG] switch_core_state_machine.c:533  
> thread mismatch skipping state handler.
> 2010-02-17 14:44:16.567487 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:16.567487 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:16.567487 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:16.567487 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:16.567487 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:16.567487 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:16.567487 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:16.567487 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:16.567487 [NOTICE] switch_ivr_originate.c:1317  
> Originate attempt 2/3 in 1000 ms
> 2010-02-17 14:44:16.567487 [DEBUG] switch_core_state_machine.c:560  
> (sofia/external/5555551234) State HANGUP
> 2010-02-17 14:44:16.567487 [DEBUG] mod_sofia.c:338 Channel sofia/ 
> external/5555551234 hanging up, cause: ORIGINATOR_CANCEL
> 2010-02-17 14:44:16.567487 [DEBUG] mod_sofia.c:386 Sending CANCEL to  
> sofia/external/5555551234
> 2010-02-17 14:44:16.567487 [DEBUG] switch_core_state_machine.c:46  
> sofia/external/5555551234 Standard HANGUP, cause: ORIGINATOR_CANCEL
> 2010-02-17 14:44:16.567487 [DEBUG] switch_core_state_machine.c:560  
> (sofia/external/5555551234) State HANGUP going to sleep
> 2010-02-17 14:44:16.567487 [DEBUG] switch_core_state_machine.c:417  
> (sofia/external/5555551234) State Change CS_HANGUP -> CS_REPORTING
> 2010-02-17 14:44:16.567487 [DEBUG] switch_core_session.c:932 Send  
> signal sofia/external/5555551234 [BREAK]
> 2010-02-17 14:44:16.567487 [DEBUG] switch_core_state_machine.c:398  
> (sofia/external/5555551234) Running State Change CS_REPORTING
> 2010-02-17 14:44:16.567487 [DEBUG] switch_core_state_machine.c:651  
> (sofia/external/5555551234) State REPORTING
> 2010-02-17 14:44:16.567487 [DEBUG] switch_core_state_machine.c:53  
> sofia/external/5555551234 Standard REPORTING, cause: ORIGINATOR_CANCEL
> 2010-02-17 14:44:16.567487 [DEBUG] switch_core_state_machine.c:651  
> (sofia/external/5555551234) State REPORTING going to sleep
> 2010-02-17 14:44:16.567487 [DEBUG] switch_core_state_machine.c:411  
> (sofia/external/5555551234) State Change CS_REPORTING -> CS_DESTROY
> 2010-02-17 14:44:16.567487 [DEBUG] switch_core_session.c:932 Send  
> signal sofia/external/5555551234 [BREAK]
> 2010-02-17 14:44:16.567487 [DEBUG] switch_core_session.c:1069  
> Session 2 (sofia/external/5555551234) Locked, Waiting on external  
> entities
> 2010-02-17 14:44:16.567487 [NOTICE] switch_core_session.c:1087  
> Session 2 (sofia/external/5555551234) Ended
> 2010-02-17 14:44:16.567487 [NOTICE] switch_core_session.c:1089 Close  
> Channel sofia/external/5555551234 [CS_DESTROY]
> 2010-02-17 14:44:16.567487 [DEBUG] switch_core_state_machine.c:497  
> (sofia/external/5555551234) Running State Change CS_DESTROY
> 2010-02-17 14:44:16.567487 [DEBUG] switch_core_state_machine.c:508  
> (sofia/external/5555551234) State DESTROY
> 2010-02-17 14:44:16.567487 [DEBUG] mod_sofia.c:255 sofia/external/ 
> 5555551234 SOFIA DESTROY
> 2010-02-17 14:44:16.567487 [DEBUG] switch_core_state_machine.c:60  
> sofia/external/5555551234 Standard DESTROY
> 2010-02-17 14:44:16.567487 [DEBUG] switch_core_state_machine.c:508  
> (sofia/external/5555551234) State DESTROY going to sleep
> 2010-02-17 14:44:17.567493 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:17.567493 [NOTICE] switch_ivr_originate.c:1317  
> Originate attempt 2/3 in 1000 ms
> 2010-02-17 14:44:18.567500 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:18.567500 [NOTICE] switch_ivr_originate.c:1317  
> Originate attempt 2/3 in 1000 ms
> 2010-02-17 14:44:19.567506 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:19.567506 [NOTICE] switch_ivr_originate.c:1317  
> Originate attempt 2/3 in 1000 ms
> 2010-02-17 14:44:19.770633 [ALERT] switch_cpp.cpp:1130 CT - Update  
> Balance 0cbcac65-003f-4053-a041-1795748a1941 -0.018
> 2010-02-17 14:44:20.067509 [DEBUG] switch_core_session.c:932 Send  
> signal sofia/external/5555559876 at 10.10.10.15 [BREAK]
> 2010-02-17 14:44:20.067509 [DEBUG] switch_core_state_machine.c:533  
> thread mismatch skipping state handler.
> 2010-02-17 14:44:20.567513 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:20.567513 [NOTICE] switch_ivr_originate.c:1317  
> Originate attempt 2/3 in 1000 ms
> 2010-02-17 14:44:21.567519 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:21.567519 [NOTICE] switch_ivr_originate.c:1317  
> Originate attempt 2/3 in 1000 ms
> 2010-02-17 14:44:22.567525 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:22.567525 [NOTICE] switch_ivr_originate.c:1317  
> Originate attempt 2/3 in 1000 ms
> 2010-02-17 14:44:23.567532 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:23.567532 [NOTICE] switch_ivr_originate.c:1317  
> Originate attempt 2/3 in 1000 ms
> 2010-02-17 14:44:24.567538 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:24.567538 [NOTICE] switch_ivr_originate.c:1317  
> Originate attempt 3/3 in 1000 ms
> 2010-02-17 14:44:25.567545 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:25.567545 [NOTICE] switch_ivr_originate.c:1317  
> Originate attempt 3/3 in 1000 ms
> 2010-02-17 14:44:26.567551 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:26.567551 [NOTICE] switch_ivr_originate.c:1317  
> Originate attempt 3/3 in 1000 ms
> 2010-02-17 14:44:27.567557 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:27.567557 [NOTICE] switch_ivr_originate.c:1317  
> Originate attempt 3/3 in 1000 ms
> 2010-02-17 14:44:28.567564 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:28.567564 [NOTICE] switch_ivr_originate.c:1317  
> Originate attempt 3/3 in 1000 ms
> 2010-02-17 14:44:29.567570 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:29.567570 [NOTICE] switch_ivr_originate.c:1317  
> Originate attempt 3/3 in 1000 ms
> 2010-02-17 14:44:30.567577 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:30.567577 [NOTICE] switch_ivr_originate.c:1317  
> Originate attempt 3/3 in 1000 ms
> 2010-02-17 14:44:31.567583 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:31.567583 [NOTICE] switch_ivr_originate.c:1317  
> Originate attempt 3/3 in 1000 ms
> 2010-02-17 14:44:32.567589 [DEBUG] switch_ivr_originate.c:2166  
> Originate Cancelled by originator termination Cause: 487  
> [ORIGINATOR_CANCEL]
> 2010-02-17 14:44:32.567589 [INFO] mod_dptools.c:2114 Originate  
> Failed.  Cause: ORIGINATOR_CANCEL
> 2010-02-17 14:44:32.567589 [DEBUG] switch_cpp.cpp:571  
> CoreSession::hangup
> 2010-02-17 14:44:32.567589 [DEBUG] switch_cpp.cpp:571  
> CoreSession::hangup
> 2010-02-17 14:44:32.567589 [DEBUG] switch_cpp.cpp:921 destroy/unlink  
> session from object
> 2010-02-17 14:44:32.567589 [DEBUG] switch_core_state_machine.c:432 (sofia/external/5555559876 at 10.10.10.15 
> ) State EXECUTE going to sleep
> 2010-02-17 14:44:32.567589 [DEBUG] switch_core_state_machine.c:398 (sofia/external/5555559876 at 10.10.10.15 
> ) Running State Change CS_HANGUP
> 2010-02-17 14:44:32.567589 [DEBUG] switch_core_media_bug.c:364  
> Removing BUG from sofia/external/5555559876 at 10.10.10.15
> 2010-02-17 14:44:32.567589 [DEBUG] switch_core_state_machine.c:560 (sofia/external/5555559876 at 10.10.10.15 
> ) State HANGUP
> 2010-02-17 14:44:32.567589 [DEBUG] mod_sofia.c:338 Channel sofia/external/5555559876 at 10.10.10.15 
>  hanging up, cause: NORMAL_CLEARING
> 2010-02-17 14:44:32.567589 [DEBUG] switch_core_state_machine.c:46 sofia/external/5555559876 at 10.10.10.15 
>  Standard HANGUP, cause: NORMAL_CLEARING
> 2010-02-17 14:44:32.567589 [DEBUG] switch_core_state_machine.c:560 (sofia/external/5555559876 at 10.10.10.15 
> ) State HANGUP going to sleep
> 2010-02-17 14:44:32.567589 [DEBUG] switch_core_state_machine.c:417 (sofia/external/5555559876 at 10.10.10.15 
> ) State Change CS_HANGUP -> CS_REPORTING
> 2010-02-17 14:44:32.567589 [DEBUG] switch_core_session.c:932 Send  
> signal sofia/external/5555559876 at 10.10.10.15 [BREAK]
> 2010-02-17 14:44:32.567589 [DEBUG] switch_core_state_machine.c:398 (sofia/external/5555559876 at 10.10.10.15 
> ) Running State Change CS_REPORTING
> 2010-02-17 14:44:32.567589 [DEBUG] switch_core_state_machine.c:651 (sofia/external/5555559876 at 10.10.10.15 
> ) State REPORTING
> 2010-02-17 14:44:32.567589 [DEBUG] switch_core_state_machine.c:53 sofia/external/5555559876 at 10.10.10.15 
>  Standard REPORTING, cause: NORMAL_CLEARING
> 2010-02-17 14:44:32.567589 [DEBUG] switch_core_state_machine.c:651 (sofia/external/5555559876 at 10.10.10.15 
> ) State REPORTING going to sleep
> 2010-02-17 14:44:32.567589 [DEBUG] switch_core_state_machine.c:411 (sofia/external/5555559876 at 10.10.10.15 
> ) State Change CS_REPORTING -> CS_DESTROY
> 2010-02-17 14:44:32.567589 [DEBUG] switch_core_session.c:932 Send  
> signal sofia/external/5555559876 at 10.10.10.15 [BREAK]
> 2010-02-17 14:44:32.567589 [DEBUG] switch_core_session.c:1069  
> Session 1 (sofia/external/5555559876 at 10.10.10.15) Locked, Waiting on  
> external entities
> 2010-02-17 14:44:32.567589 [NOTICE] switch_core_session.c:1087  
> Session 1 (sofia/external/5555559876 at 10.10.10.15) Ended
> 2010-02-17 14:44:32.567589 [NOTICE] switch_core_session.c:1089 Close  
> Channel sofia/external/5555559876 at 10.10.10.15 [CS_DESTROY]
> 2010-02-17 14:44:32.567589 [DEBUG] switch_core_state_machine.c:497 (sofia/external/5555559876 at 10.10.10.15 
> ) Running State Change CS_DESTROY
> 2010-02-17 14:44:32.567589 [DEBUG] switch_core_state_machine.c:508 (sofia/external/5555559876 at 10.10.10.15 
> ) State DESTROY
> 2010-02-17 14:44:32.567589 [DEBUG] mod_sofia.c:255 sofia/external/5555559876 at 10.10.10.15 
>  SOFIA DESTROY
> 2010-02-17 14:44:32.567589 [DEBUG] switch_core_state_machine.c:60 sofia/external/5555559876 at 10.10.10.15 
>  Standard DESTROY
> 2010-02-17 14:44:32.567589 [DEBUG] switch_core_state_machine.c:508 (sofia/external/5555559876 at 10.10.10.15 
> ) State DESTROY going to sleep
>
> Thanks,
>
> Andre
> _______________________________________________
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20100217/04916def/attachment-0001.html 


More information about the FreeSWITCH-dev mailing list