[ASTPPCOM-97] continue_on_fail=true fake A-leg hangup cause Created: 05/Sep/16  Updated: 01/Apr/21  Resolved: 01/Apr/21

Status: Done
Project: ASTPP Community
Component/s: None
Affects Version/s: None
Fix Version/s: v3.5

Type: New Feature
Reporter: Neurotec Tecnologia S.A.S (Inactive) Assignee: Samir Doshi
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

scenario:

FS/1 <> ASTPP <> FS/2

A call hangup UNALLOCATED_NUMBER from FS/2
ASTPP get UNALLOCATED_NUMBER and FS/1 CDR get NORMAL_CLEARING.

i found 3 solutions
1) disable continue_on_fail putting on gateway variables continue_on_fail=false (this don't allow work fail over system astpp)
2) use continue_on_fail with specific hangup cause for failover
3) add to freeswitch/scrips/astpp/scripts/astpp.xml.lua:freeswitch_xml_outbound at the end

table.insert(xml, [[<action application="hangup" data="${last_bridge_hangup_cause}"/>]])


 Comments   
Comment by Samir Doshi [ 11/Sep/16 ]

Thanks for the suggestion.

I am bit hesitating to apply this patch in open source version by wondering if that will create any negative impact on existing cdr process.

Can you please provide some test results before and after to get clear idea about impact?

Comment by Neurotec Tecnologia S.A.S (Inactive) [ 25/Oct/16 ]

FS1 -> ASTPP -> FS2
the number must return CALL_REJECTED, but without patch always return NORMAL_CLEARING, if i put the patch return correct hangup cause from B - Leg to A -> Leg in middle ASTPP.

this FS1 trace...

before patch:

2016-10-24 17:36:12.634474 [INFO] mod_dialplan_xml.c:637 Processing 1000 <1000>->939350660007508 in context default
2016-10-24 17:36:12.654424 [NOTICE] switch_channel.c:1104 New Channel sofia/external/50660007508 [4456d032-9a3a-11e6-9d6d-c3fbdeed3537]
2016-10-24 17:36:14.334476 [NOTICE] sofia.c:8048 Hangup sofia/external/50660007508 [CS_CONSUME_MEDIA] [NORMAL_CLEARING]
2016-10-24 17:36:14.334476 [NOTICE] switch_core_session.c:1665 Session 2 (sofia/external/50660007508) Ended
2016-10-24 17:36:14.334476 [NOTICE] switch_core_session.c:1669 Close Channel sofia/external/50660007508 [CS_DESTROY]
2016-10-24 17:36:14.334476 [INFO] mod_dptools.c:3401 Originate Failed.  Cause: NORMAL_CLEARING
2016-10-24 17:36:14.334476 [NOTICE] switch_channel.c:4820 Hangup sofia/internal/1000@192.168.1.12 [CS_EXECUTE] [NORMAL_CLEARING]
2016-10-24 17:36:14.414409 [NOTICE] switch_core_session.c:1665 Session 1 (sofia/internal/1000@192.168.1.12) Ended
2016-10-24 17:36:14.414409 [NOTICE] switch_core_session.c:1669 Close Channel sofia/internal/1000@192.168.1.12 [CS_DESTROY]

after patch

2016-10-24 17:42:38.094455 [INFO] mod_dialplan_xml.c:637 Processing 1000 <1000>->939350660007508 in context default
2016-10-24 17:42:38.094455 [NOTICE] switch_channel.c:1104 New Channel sofia/external/50660007508 [2a14b4d6-9a3b-11e6-9d8a-c3fbdeed3537]
2016-10-24 17:42:39.754437 [NOTICE] sofia.c:8048 Hangup sofia/external/50660007508 [CS_CONSUME_MEDIA] [CALL_REJECTED]
2016-10-24 17:42:39.754437 [NOTICE] switch_core_session.c:1665 Session 4 (sofia/external/50660007508) Ended
2016-10-24 17:42:39.754437 [NOTICE] switch_core_session.c:1669 Close Channel sofia/external/50660007508 [CS_DESTROY]
2016-10-24 17:42:39.754437 [INFO] mod_dptools.c:3401 Originate Failed.  Cause: CALL_REJECTED
2016-10-24 17:42:39.754437 [NOTICE] switch_channel.c:4820 Hangup sofia/internal/1000@192.168.1.12 [CS_EXECUTE] [CALL_REJECTED]
2016-10-24 17:42:39.754437 [NOTICE] switch_core_session.c:1665 Session 3 (sofia/internal/1000@192.168.1.12) Ended
2016-10-24 17:42:39.754437 [NOTICE] switch_core_session.c:1669 Close Channel sofia/internal/1000@192.168.1.12 [CS_DESTROY]
Comment by Samir Doshi [ 25/Oct/16 ]

Patch should not make any difference in hangup cause. Can you please send
me astpp.log for your calls in which you are getting different hangup
cause.

On Tuesday 25 October 2016, Neurotec Tecnologia S.A.S <
notifications@github.com> wrote:

> FS1 -> ASTPP -> FS2
> the number must return CALL_REJECTED, but without patch always return
> NORMAL_CLEARING, if i put the patch return correct hangup cause from B -
> Leg to A -> Leg in middle ASTPP.
> this FS1 trace...
>
> before patch:
>
> 2016-10-24 17:36:12.634474 [INFO] mod_dialplan_xml.c:637 Processing 1000 <1000>->939350660007508 in context default
> 2016-10-24 17:36:12.654424 [NOTICE] switch_channel.c:1104 New Channel sofia/external/50660007508 [4456d032-9a3a-11e6-9d6d-c3fbdeed3537]
> 2016-10-24 17:36:14.334476 [NOTICE] sofia.c:8048 Hangup sofia/external/50660007508 [CS_CONSUME_MEDIA] [NORMAL_CLEARING]
> 2016-10-24 17:36:14.334476 [NOTICE] switch_core_session.c:1665 Session 2 (sofia/external/50660007508) Ended
> 2016-10-24 17:36:14.334476 [NOTICE] switch_core_session.c:1669 Close Channel sofia/external/50660007508 [CS_DESTROY]
> 2016-10-24 17:36:14.334476 [INFO] mod_dptools.c:3401 Originate Failed. Cause: NORMAL_CLEARING
> 2016-10-24 17:36:14.334476 [NOTICE] switch_channel.c:4820 Hangup sofia/internal/1000@192.168.1.12 <javascript:_e(%7B%7D,'cvml','1000@192.168.1.12');> [CS_EXECUTE] [NORMAL_CLEARING]
> 2016-10-24 17:36:14.414409 [NOTICE] switch_core_session.c:1665 Session 1 (sofia/internal/1000@192.168.1.12 <javascript:_e(%7B%7D,'cvml','1000@192.168.1.12');>) Ended
> 2016-10-24 17:36:14.414409 [NOTICE] switch_core_session.c:1669 Close Channel sofia/internal/1000@192.168.1.12 <javascript:_e(%7B%7D,'cvml','1000@192.168.1.12');> [CS_DESTROY]
>
> after patch
>
> 2016-10-24 17:42:38.094455 [INFO] mod_dialplan_xml.c:637 Processing 1000 <1000>->939350660007508 in context default
> 2016-10-24 17:42:38.094455 [NOTICE] switch_channel.c:1104 New Channel sofia/external/50660007508 [2a14b4d6-9a3b-11e6-9d8a-c3fbdeed3537]
> 2016-10-24 17:42:39.754437 [NOTICE] sofia.c:8048 Hangup sofia/external/50660007508 [CS_CONSUME_MEDIA] [CALL_REJECTED]
> 2016-10-24 17:42:39.754437 [NOTICE] switch_core_session.c:1665 Session 4 (sofia/external/50660007508) Ended
> 2016-10-24 17:42:39.754437 [NOTICE] switch_core_session.c:1669 Close Channel sofia/external/50660007508 [CS_DESTROY]
> 2016-10-24 17:42:39.754437 [INFO] mod_dptools.c:3401 Originate Failed. Cause: CALL_REJECTED
> 2016-10-24 17:42:39.754437 [NOTICE] switch_channel.c:4820 Hangup sofia/internal/1000@192.168.1.12 <javascript:_e(%7B%7D,'cvml','1000@192.168.1.12');> [CS_EXECUTE] [CALL_REJECTED]
> 2016-10-24 17:42:39.754437 [NOTICE] switch_core_session.c:1665 Session 3 (sofia/internal/1000@192.168.1.12 <javascript:_e(%7B%7D,'cvml','1000@192.168.1.12');>) Ended
> 2016-10-24 17:42:39.754437 [NOTICE] switch_core_session.c:1669 Close Channel sofia/internal/1000@192.168.1.12 <javascript:_e(%7B%7D,'cvml','1000@192.168.1.12');> [CS_DESTROY]
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> https://github.com/iNextrix/ASTPP/issues/97#issuecomment-255887728, or mute
> the thread
> https://github.com/notifications/unsubscribe-auth/AA6gcYHTFTu6c6UrwemZXzG8VReo6Y-bks5q3TVigaJpZM4J0wfo
> .

Sent from my iPhone

Comment by Samir Doshi [ 05/Sep/17 ]

No feedback. Closing the issue.

Generated at Sat Feb 10 07:14:08 CET 2024 using Jira 8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a.