[Freeswitch-users] Issue with Enterprise originate and 487 "ORIGINATOR_CANCEL".

Christian Berger christian.berger at foncloud.net
Fri Jan 14 12:09:09 UTC 2022


Unfortunately I do not have the privileges to create a branch on this 
project. This seems to be necessary to create a pull request.

Am 14.01.22 um 12:47 schrieb Dragos Oancea:
> 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 
> <mailto: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
>     <mailto: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 <mailto: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 GmbH
>>             mailto:lists  <mailto:lists>  (att)telefaks.de  <http://telefaks.de>
>>             Internet:www.telefaks.de  <http://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 <mailto: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 <mailto: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 SignalWirehttps://signalwire.com  <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 timehttps://signalwire.community  <https://signalwire.community>
>>>
>>>             Professional FreeSWITCH Services
>>>             sales at freeswitch.com  <mailto:sales at freeswitch.com>
>>>             https://freeswitch.com  <https://freeswitch.com>
>>>
>>>             Official FreeSWITCH Sites
>>>             https://freeswitch.com/oss  <https://freeswitch.com/oss>
>>>             https://freeswitch.org/confluence  <https://freeswitch.org/confluence>
>>>             https://cluecon.com  <https://cluecon.com>
>>>
>>>             FreeSWITCH-users mailing list
>>>             FreeSWITCH-users at lists.freeswitch.org  <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>>             http://lists.freeswitch.org/mailman/listinfo/freeswitch-users  <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
>>>             UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users  <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>>>             https://freeswitch.com  <https://freeswitch.com>
>             _________________________________________________________________________
> 
>             The FreeSWITCH project is sponsored by SignalWire
>             https://signalwire.com <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 <https://signalwire.community>
> 
>             Professional FreeSWITCH Services
>             sales at freeswitch.com <mailto:sales at freeswitch.com>
>             https://freeswitch.com <https://freeswitch.com>
> 
>             Official FreeSWITCH Sites
>             https://freeswitch.com/oss <https://freeswitch.com/oss>
>             https://freeswitch.org/confluence
>             <https://freeswitch.org/confluence>
>             https://cluecon.com <https://cluecon.com>
> 
>             FreeSWITCH-users mailing list
>             FreeSWITCH-users at lists.freeswitch.org
>             <mailto:FreeSWITCH-users at lists.freeswitch.org>
>             http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
>             UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>             <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>             https://freeswitch.com <https://freeswitch.com>
> 
>         _________________________________________________________________________
> 
>         The FreeSWITCH project is sponsored by SignalWire
>         https://signalwire.com <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 <https://signalwire.community>
> 
>         Professional FreeSWITCH Services
>         sales at freeswitch.com <mailto:sales at freeswitch.com>
>         https://freeswitch.com <https://freeswitch.com>
> 
>         Official FreeSWITCH Sites
>         https://freeswitch.com/oss <https://freeswitch.com/oss>
>         https://freeswitch.org/confluence
>         <https://freeswitch.org/confluence>
>         https://cluecon.com <https://cluecon.com>
> 
>         FreeSWITCH-users mailing list
>         FreeSWITCH-users at lists.freeswitch.org
>         <mailto:FreeSWITCH-users at lists.freeswitch.org>
>         http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>         <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
>         UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>         <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>         https://freeswitch.com <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 <http://www.infomedia.si>
> 
>     _________________________________________________________________________
> 
>     The FreeSWITCH project is sponsored by SignalWire
>     https://signalwire.com <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 <https://signalwire.community>
> 
>     Professional FreeSWITCH Services
>     sales at freeswitch.com <mailto:sales at freeswitch.com>
>     https://freeswitch.com <https://freeswitch.com>
> 
>     Official FreeSWITCH Sites
>     https://freeswitch.com/oss <https://freeswitch.com/oss>
>     https://freeswitch.org/confluence <https://freeswitch.org/confluence>
>     https://cluecon.com <https://cluecon.com>
> 
>     FreeSWITCH-users mailing list
>     FreeSWITCH-users at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at lists.freeswitch.org>
>     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>     <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
>     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>     <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>     https://freeswitch.com <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
> 


Christian Berger


 

foncloud GmbH & Co KG
Hahlweg 2a
36093 Künzell

Tel: / 
Fax: +49 661 968990-99

 

Email: Christian.Berger at foncloud.net
 Web: www.foncloud.net





P.S.: Wussten Sie schon? 

Unter https://www.foncloud.net/wissen  finden Sie zahlreiche Informationen und hilfreiche Artikel rund um unsere Produkte und Services.

 


Registergericht: Amtsgericht Fulda, Persönlich haftende Gesellschafterin der foncloud GmbH&Co.KG: Global Brain Network GmbHGeschäftsführer der Global Brain Network GmbH: Peter Krug Sitz der Gesellschaft: Künzell.

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20220114/3719a30d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0eb5f48c.e33a6fec.jpg
Type: image/jpeg
Size: 56822 bytes
Desc: not available
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20220114/3719a30d/attachment-0001.jpg>


More information about the FreeSWITCH-users mailing list