[Freeswitch-users] Issue with Enterprise originate and 487 "ORIGINATOR_CANCEL".
Dragos Oancea
dragos at freeswitch.org
Fri Jan 14 11:47:59 UTC 2022
Creator of the patch must create a PR in Github against FSs master branch
in order to be reviewed.
On Fri, Jan 14, 2022 at 9:48 AM Gregor Nanger <gregor at infomedia.si> wrote:
> Guys, does anyone know, if this fix will be included in new freeswitch
> version?
>
>
>
> On Wed, 27 Oct 2021 at 19:13, Jai Rangi <jprangi at gmail.com> wrote:
>
>> Thank you Peter and Christian.
>>
>> On Fri, Oct 22, 2021 at 7:19 AM Peter Steinbach <lists at telefaks.de>
>> wrote:
>>
>>> Just to mention: The patch was developed by Christian Berger from our
>>> client Foncloud. Thank you Christian!
>>>
>>> Best regards
>>> Peter
>>>
>>>
>>> Am 21.10.21 um 17:20 schrieb Peter Steinbach:
>>>
>>> Hello,
>>>
>>>
>>> this is a long lasting issue I firstly posted in 2017 and lastly saw in
>>> 2019 in this thread, and I am happy to announce, that we have found a
>>> solution for this.
>>>
>>> Here is the patch, which works pretty well in our environment
>>>
>>>
>>> ===================================================================================================
>>>
>>> --- freeswitch_orig/src/switch_ivr_originate.c 2021-10-20
>>> 12:51:04.863328041 +0200
>>> +++ freeswitch/src/switch_ivr_originate.c 2021-10-20
>>> 12:54:15.764616280 +0200
>>> @@ -1789,7 +1789,13 @@
>>> if (cancel_cause && *cancel_cause > 0) {
>>> handles[i].cancel_cause = *cancel_cause;
>>> } else {
>>> - handles[i].cancel_cause = SWITCH_CAUSE_LOSE_RACE;
>>> + if ((hp!=NULL) && (hp->cause==SWITCH_CAUSE_SUCCESS)) {
>>> //Was this call taken by another destination?
>>> + //Yes, the race was lost
>>> + handles[i].cancel_cause = SWITCH_CAUSE_LOSE_RACE;
>>> + } else {
>>> + //No, something else happened, probably Originator
>>> Cancel
>>> + handles[i].cancel_cause =
>>> SWITCH_CAUSE_ORIGINATOR_CANCEL;
>>> + }
>>> }
>>> }
>>>
>>> ===================================================================================================
>>>
>>>
>>> Can someone retest this and check this in?
>>>
>>> --
>>> With kind regards
>>> Peter Steinbach
>>>
>>> Telefaks Services GmbHmailto:lists <lists> (att) telefaks.de
>>> Internet: www.telefaks.de
>>>
>>> Am 22.05.19 um 21:14 schrieb Jai Rangi:
>>>
>>> All,
>>> Running into a small issue with group calling, when the original caller
>>> hang up, phones dont show that call as missed call, cause of wrong reason
>>> code from freeswitch.
>>> Scenario:
>>>
>>> - Caller -> FS (Groupcall) to 101 and 102
>>> - Phones ring
>>> - Caller hangup
>>> - Phones should see missed calls,
>>> - But free-switch send cancel with Reason: SIP;cause=200;text="Call
>>> completed elsewhere", where is should send Reason:
>>> SIP;cause=487;text="ORIGINATOR_CANCEL".
>>>
>>> Here is what my bridge data.
>>>
>>> bridge(<all_threads=true,absolute_codec_string=PCMU,PCMA,G729,group_confirm_file=playback
>>> /usr/local/freeswitch/sound/ivr/1443458342.wav,group_confirm_key=exec>{sip_cid_type=rpid,ignore_early_media=true,originate_timeout=30}[leg_timeout=20
>>> ]user/101 at 192.168.5.50:_:[ignore_early_media=true,leg_timeout=20 ]user/
>>> 102 at 192.168.5.50)
>>>
>>> If I send
>>> bridge(<all_threads=true,absolute_codec_string=PCMU,PCMA,G729,group_confirm_file=playback
>>> /usr/local/freeswitch/sound/ivr/1443458342.wav,group_confirm_key=exec>{sip_cid_type=rpid,ignore_early_media=true,originate_timeout=30}[leg_timeout=20
>>> ]user/101 at 192.168.5.50
>>>
>>> Everything works fine.
>>> I see some old posts but no resolution.
>>> Freeswitch version on Debian 8.9
>>> FreeSWITCH (Version 1.6.16 git 3da6bd0 2017-04-07 16:49:13Z 64bit)
>>>
>>> Any idea or suggestion for workaround?
>>>
>>> Jai
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> _________________________________________________________________________
>>>
>>> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
>>> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
>>> Build your next product on our scalable cloud platform.
>>>
>>> Join our online community to chat in real time https://signalwire.community
>>>
>>> Professional FreeSWITCH Servicessales at freeswitch.comhttps://freeswitch.com
>>>
>>> Official FreeSWITCH Siteshttps://freeswitch.com/osshttps://freeswitch.org/confluencehttps://cluecon.com
>>>
>>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttps://freeswitch.com
>>>
>>> _________________________________________________________________________
>>>
>>> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
>>> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
>>> services.
>>> Build your next product on our scalable cloud platform.
>>>
>>> Join our online community to chat in real time
>>> https://signalwire.community
>>>
>>> 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
>>
>> _________________________________________________________________________
>>
>> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
>> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
>> services.
>> Build your next product on our scalable cloud platform.
>>
>> Join our online community to chat in real time
>> https://signalwire.community
>>
>> 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
>
>
>
> --
> Gregor Nanger
>
> *CTO*
> t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485
> • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia
> • www.infomedia.si
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time
> https://signalwire.community
>
> 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/20220114/bc1a0bc9/attachment.html>
More information about the FreeSWITCH-users
mailing list