[Freeswitch-users] Source device doesn't hangup videocall when the target device hangs
Jose David Jurado Alonso
josedavid at zennio.com
Mon Dec 10 13:08:54 UTC 2018
Hi,
In principle it seems that the BYE is sent correctly. This is the record
fragment that appears when I hang up from my mobile:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
27203df 2018-12-10 12:53:40.751007 [DEBUG] switch_ivr_bridge.c:848 Ending
video thread.
127203df 2018-12-10 12:53:40.751007 [DEBUG] switch_ivr_bridge.c:906 Ending
video thread.
127203df 2018-12-10 12:53:40.751007 [DEBUG] switch_ivr_bridge.c:255
sofia/external/MOBILE01 at 88.22.1.17:42697 video thread ended.
127203df 2018-12-10 12:53:40.751007 [DEBUG] switch_ivr_bridge.c:257
sofia/external/MOBILE01 at 88.22.1.17:42697 skip receive message [DISPLAY]
(channel is hungup already)
70c48dd9 2018-12-10 12:53:40.751007 [DEBUG] switch_ivr_bridge.c:255
sofia/external/DOOR01 at sip.mytestdomain.com:5080 video thread ended.
2018-12-10 12:53:40.751007 [DEBUG] switch_core_media.c:7470 sofia/external/
MOBILE01 at 88.22.1.17:42697 Video thread ended
127203df 2018-12-10 12:53:40.761014 [DEBUG] switch_ivr_bridge.c:917 BRIDGE
THREAD DONE [sofia/external/MOBILE01 at 88.22.1.17:42697]
127203df 2018-12-10 12:53:40.761014 [DEBUG] switch_core_state_machine.c:653
(sofia/external/MOBILE01 at 88.22.1.17:42697) State EXCHANGE_MEDIA going to
sleep
127203df 2018-12-10 12:53:40.761014 [DEBUG] switch_core_state_machine.c:584
(sofia/external/MOBILE01 at 88.22.1.17:42697) Running State Change CS_HANGUP
(Cur 2 Tot 652)
127203df 2018-12-10 12:53:40.761014 [DEBUG] switch_core_state_machine.c:847
(sofia/external/MOBILE01 at 88.22.1.17:42697) Callstate Change ACTIVE -> HANGUP
127203df 2018-12-10 12:53:40.761014 [DEBUG] switch_core_state_machine.c:849
(sofia/external/MOBILE01 at 88.22.1.17:42697) State HANGUP
127203df 2018-12-10 12:53:40.761014 [DEBUG] mod_sofia.c:449 Channel
sofia/external/MOBILE01 at 88.22.1.17:42697 hanging up, cause: NORMAL_CLEARING
127203df 2018-12-10 12:53:40.761014 [DEBUG] switch_core_state_machine.c:60
sofia/external/MOBILE01 at 88.22.1.17:42697 Standard HANGUP, cause:
NORMAL_CLEARING
127203df 2018-12-10 12:53:40.761014 [DEBUG] switch_core_state_machine.c:849
(sofia/external/MOBILE01 at 88.22.1.17:42697) State HANGUP going to sleep
127203df 2018-12-10 12:53:40.761014 [DEBUG] switch_core_state_machine.c:619
(sofia/external/MOBILE01 at 88.22.1.17:42697) State Change CS_HANGUP ->
CS_REPORTING
127203df 2018-12-10 12:53:40.761014 [DEBUG] switch_core_state_machine.c:584
(sofia/external/MOBILE01 at 88.22.1.17:42697) Running State Change
CS_REPORTING (Cur 2 Tot 652)
127203df 2018-12-10 12:53:40.761014 [DEBUG] switch_core_state_machine.c:935
(sofia/external/MOBILE01 at 88.22.1.17:42697) State REPORTING
127203df 2018-12-10 12:53:40.761014 [DEBUG] switch_core_state_machine.c:174
sofia/external/MOBILE01 at 88.22.1.17:42697 Standard REPORTING, cause:
NORMAL_CLEARING
127203df 2018-12-10 12:53:40.761014 [DEBUG] switch_core_state_machine.c:935
(sofia/external/MOBILE01 at 88.22.1.17:42697) State REPORTING going to sleep
127203df 2018-12-10 12:53:40.761014 [DEBUG] switch_core_state_machine.c:610
(sofia/external/MOBILE01 at 88.22.1.17:42697) State Change CS_REPORTING ->
CS_DESTROY
127203df 2018-12-10 12:53:40.761014 [DEBUG] switch_core_session.c:1714
Session 652 (sofia/external/MOBILE01 at 88.22.1.17:42697) Locked, Waiting on
external entities
70c48dd9 2018-12-10 12:53:40.761014 [DEBUG] switch_ivr_bridge.c:825
sofia/external/MOBILE01 at 88.22.1.17:42697 ending bridge by request from
write function
� 2018-12-10 12:53:40.761014 [DEBUG] switch_ivr_bridge.c:825 sofia/external/
MOBILE01 at 88.22.1.17:42697 ending bridge by request from write function
70c48dd9 2018-12-10 12:53:40.761014 [DEBUG] switch_ivr_bridge.c:917 BRIDGE
THREAD DONE [sofia/external/DOOR01 at sip.mytestdomain.com:5080]
70c48dd9 2018-12-10 12:53:40.761014 [NOTICE] switch_ivr_bridge.c:1933
Hangup sofia/external/DOOR01 at sip.mytestdomain.com:5080 [CS_EXECUTE]
[NORMAL_CLEARING]
127203df 2018-12-10 12:53:40.771024 [NOTICE] switch_core_session.c:1732
Session 652 (sofia/external/MOBILE01 at 88.22.1.17:42697) Ended
127203df 2018-12-10 12:53:40.771024 [NOTICE] switch_core_session.c:1736
Close Channel sofia/external/MOBILE01 at 88.22.1.17:42697 [CS_DESTROY]
70c48dd9 2018-12-10 12:53:40.771024 [DEBUG] switch_core_session.c:2886
sofia/external/DOOR01 at sip.mytestdomain.com:5080 skip receive message
[PHONE_EVENT] (channel is hungup already)
70c48dd9 2018-12-10 12:53:40.771024 [DEBUG] switch_core_state_machine.c:650
(sofia/external/DOOR01 at sip.mytestdomain.com:5080) State EXECUTE going to
sleep
70c48dd9 2018-12-10 12:53:40.771024 [DEBUG] switch_core_state_machine.c:584
(sofia/external/DOOR01 at sip.mytestdomain.com:5080) Running State Change
CS_HANGUP (Cur 1 Tot 652)
70c48dd9 2018-12-10 12:53:40.771024 [DEBUG] switch_core_state_machine.c:847
(sofia/external/DOOR01 at sip.mytestdomain.com:5080) Callstate Change ACTIVE
-> HANGUP
127203df 2018-12-10 12:53:40.771024 [DEBUG] switch_core_state_machine.c:738
(sofia/external/MOBILE01 at 88.22.1.17:42697) Running State Change CS_DESTROY
(Cur 1 Tot 652)
70c48dd9 2018-12-10 12:53:40.771024 [DEBUG] switch_core_state_machine.c:849
(sofia/external/DOOR01 at sip.mytestdomain.com:5080) State HANGUP
70c48dd9 2018-12-10 12:53:40.771024 [DEBUG] mod_sofia.c:443 sofia/external/
DOOR01 at sip.mytestdomain.com:5080 Overriding SIP cause 480 with 200 from the
other leg
70c48dd9 2018-12-10 12:53:40.771024 [DEBUG] mod_sofia.c:449 Channel
sofia/external/DOOR01 at sip.mytestdomain.com:5080 hanging up, cause:
NORMAL_CLEARING
70c48dd9 2018-12-10 12:53:40.771024 [DEBUG] mod_sofia.c:502 Sending BYE to
sofia/external/DOOR01 at sip.mytestdomain.com:5080
127203df 2018-12-10 12:53:40.771024 [DEBUG] switch_core_state_machine.c:748
(sofia/external/MOBILE01 at 88.22.1.17:42697) State DESTROY
127203df 2018-12-10 12:53:40.771024 [DEBUG] mod_sofia.c:354 sofia/external/
MOBILE01 at 88.22.1.17:42697 SOFIA DESTROY
70c48dd9 2018-12-10 12:53:40.771024 [DEBUG] switch_core_state_machine.c:60
sofia/external/DOOR01 at sip.mytestdomain.com:5080 Standard HANGUP, cause:
NORMAL_CLEARING
70c48dd9 2018-12-10 12:53:40.771024 [DEBUG] switch_core_state_machine.c:849
(sofia/external/DOOR01 at sip.mytestdomain.com:5080) State HANGUP going to
sleep
70c48dd9 2018-12-10 12:53:40.771024 [DEBUG] switch_core_state_machine.c:619
(sofia/external/DOOR01 at sip.mytestdomain.com:5080) State Change CS_HANGUP ->
CS_REPORTING
127203df 2018-12-10 12:53:40.771024 [DEBUG] switch_core_state_machine.c:181
sofia/external/MOBILE01 at 88.22.1.17:42697 Standard DESTROY
127203df 2018-12-10 12:53:40.771024 [DEBUG] switch_core_state_machine.c:748
(sofia/external/MOBILE01 at 88.22.1.17:42697) State DESTROY going to sleep
70c48dd9 2018-12-10 12:53:40.771024 [DEBUG] switch_core_state_machine.c:584
(sofia/external/DOOR01 at sip.mytestdomain.com:5080) Running State Change
CS_REPORTING (Cur 1 Tot 652)
70c48dd9 2018-12-10 12:53:40.771024 [DEBUG] switch_core_state_machine.c:935
(sofia/external/DOOR01 at sip.mytestdomain.com:5080) State REPORTING
70c48dd9 2018-12-10 12:53:40.771024 [DEBUG] switch_core_state_machine.c:174
sofia/external/DOOR01 at sip.mytestdomain.com:5080 Standard REPORTING, cause:
NORMAL_CLEARING
70c48dd9 2018-12-10 12:53:40.771024 [DEBUG] switch_core_state_machine.c:935
(sofia/external/DOOR01 at sip.mytestdomain.com:5080) State REPORTING going to
sleep
70c48dd9 2018-12-10 12:53:40.771024 [DEBUG] switch_core_state_machine.c:610
(sofia/external/DOOR01 at sip.mytestdomain.com:5080) State Change CS_REPORTING
-> CS_DESTROY
70c48dd9 2018-12-10 12:53:40.771024 [DEBUG] switch_core_session.c:1714
Session 650 (sofia/external/DOOR01 at sip.mytestdomain.com:5080) Locked,
Waiting on external entities
2018-12-10 12:53:40.781009 [DEBUG] switch_core_media.c:7470 sofia/external/
DOOR01 at sip.mytestdomain.com:5080 Video thread ended
70c48dd9 2018-12-10 12:53:40.781009 [NOTICE] switch_core_session.c:1732
Session 650 (sofia/external/DOOR01 at sip.mytestdomain.com:5080) Ended
70c48dd9 2018-12-10 12:53:40.781009 [NOTICE] switch_core_session.c:1736
Close Channel sofia/external/DOOR01 at sip.mytestdomain.com:5080 [CS_DESTROY]
70c48dd9 2018-12-10 12:53:40.781009 [DEBUG] switch_core_state_machine.c:738
(sofia/external/DOOR01 at sip.mytestdomain.com:5080) Running State Change
CS_DESTROY (Cur 0 Tot 652)
70c48dd9 2018-12-10 12:53:40.781009 [DEBUG] switch_core_state_machine.c:748
(sofia/external/DOOR01 at sip.mytestdomain.com:5080) State DESTROY
70c48dd9 2018-12-10 12:53:40.781009 [DEBUG] mod_sofia.c:354 sofia/external/
DOOR01 at sip.mytestdomain.com:5080 SOFIA DESTROY
70c48dd9 2018-12-10 12:53:40.781009 [DEBUG] switch_core_state_machine.c:181
sofia/external/DOOR01 at sip.mytestdomain.com:5080 Standard DESTROY
70c48dd9 2018-12-10 12:53:40.781009 [DEBUG] switch_core_state_machine.c:748
(sofia/external/DOOR01 at sip.mytestdomain.com:5080) State DESTROY going to
sleep
2018-12-10 12:53:41.251007 [DEBUG] switch_scheduler.c:144 Deleting task 70
switch_ivr_schedule_hangup (70c48dd9-8e87-46af-be8d-1aa0b61b2da1)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I have several video intercoms in the same network and under the same
switch, I do not know if that can influence.
In addition, I have seen this trace that is a bit strange: *Overriding SIP
cause 480 with 200 from the other leg.*
Regards,
José David Jurado Alonso
El mar., 4 dic. 2018 a las 18:07, Faisal Hanif (<imfanee at gmail.com>)
escribió:
> You need to check SIP traces to make sure if BYE received from mobile and
> sent to door phone
>
> On Tue, Dec 4, 2018, 6:40 PM Jose David Jurado Alonso <
> josedavid at zennio.com wrote:
>
>> Hi!
>>
>> I call from a intercom (video door) to a mobile but when the mobile
>> hangup the call, the intercom continues with the open call (it does not
>> hang) and you have to press the button to hangup.
>>
>> That is, the video door phone does not hang when the call is hung from
>> the mobile.
>>
>> I am using the external profile, intercom and mobile devices are in the
>> same network but the server is in the cloud.
>>
>> The dialplan extension:
>> ----------------------------------------------------------------------
>> <extension name="Local_Extension">
>> <condition field="destination_number" expression="^(.*)$">
>> <action application="export" data="dialed_extension=$1"/>
>>
>> <action application="set" data="hangup_after_bridge=true"/>
>> <action application="set" data="continue_on_fail=true"/>
>> <action application="set" data="ignore_early_media=true"/>
>> <action application="set" data="execute_on_answer=sched_hangup
>> +120" />
>>
>> <action application="bridge" data="user/${dialed_extension}@
>> ${domain_name}"/>
>> </condition>
>> </extension>
>> ----------------------------------------------------------------------
>>
>> Thanks!
>>
>> Regards,
>>
>> José David Jurado Alonso
>> _________________________________________________________________________
>> Professional FreeSWITCH Services
>> sales at freeswitch.com
>> https://freeswitch.com
>>
>> Official FreeSWITCH Sites
>> https://freeswitch.com/oss
>> https://freeswitch.org/confluence
>> https://cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> https://freeswitch.com
>
> _________________________________________________________________________
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20181210/77a6cc41/attachment-0001.html>
More information about the FreeSWITCH-users
mailing list