VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
lists at telefaks.de Guest
|
Posted: Thu Oct 21, 2021 10:50 am Post subject: [Freeswitch-users] Issue with Enterprise originate and 487 & |
|
|
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?
Quote: | --
With kind regards
Peter Steinbach
Telefaks Services GmbH
mailto:lists ([email]lists[/email]) (att) telefaks.de
Internet: www.telefaks.de
| Am 22.05.19 um 21:14 schrieb Jai Rangi:
Quote: | 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@192.168.5.50:_:[ignore_early_media=true,leg_timeout=20 ]user/102@192.168.5.50 (102@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@192.168.5.50 (101@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
|
|
|
Back to top |
|
|
lists at telefaks.de Guest
|
Posted: Fri Oct 22, 2021 9:14 am Post subject: [Freeswitch-users] Issue with Enterprise originate and 487 & |
|
|
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:
Quote: |
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?
Quote: | --
With kind regards
Peter Steinbach
Telefaks Services GmbH
mailto:lists ([email]lists[/email]) (att) telefaks.de
Internet: www.telefaks.de
| Am 22.05.19 um 21:14 schrieb Jai Rangi:
Quote: | 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@192.168.5.50:_:[ignore_early_media=true,leg_timeout=20 ]user/102@192.168.5.50 (102@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@192.168.5.50 (101@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
| |
|
|
Back to top |
|
|
gregor at infomedia.si Guest
|
Posted: Fri Oct 22, 2021 11:50 am Post subject: [Freeswitch-users] Issue with Enterprise originate and 487 & |
|
|
Is this an issue that we do not see missed call on the phone although call wasn't taken? And yes, we are using enterprise originate?
Br, Gregor
On Thu, 21 Oct 2021, 17:21 Peter Steinbach, <lists@telefaks.de (lists@telefaks.de)> wrote:
Quote: |
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?
Quote: | --
With kind regards
Peter Steinbach
Telefaks Services GmbH
mailto:lists ([email]lists[/email]) (att) telefaks.de
Internet: www.telefaks.de
| Am 22.05.19 um 21:14 schrieb Jai Rangi:
Quote: | 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@192.168.5.50:_:[ignore_early_media=true,leg_timeout=20 ]user/102@192.168.5.50 (102@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@192.168.5.50 (101@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 Services
sales@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com |
|
|
Back to top |
|
|
Prometheus001 at gmx.net Guest
|
Posted: Fri Oct 22, 2021 4:51 pm Post subject: [Freeswitch-users] Issue with Enterprise originate and 487 & |
|
|
Yes, that's the point
Am 22.10.21 um 18:31 schrieb Gregor Nanger:
Quote: | Is this an issue that we do not see missed call on the phone although call wasn't taken? And yes, we are using enterprise originate?
Br, Gregor
On Thu, 21 Oct 2021, 17:21 Peter Steinbach, <lists@telefaks.de (lists@telefaks.de)> wrote:
Quote: |
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?
Quote: | --
With kind regards
Peter Steinbach
Telefaks Services GmbH
mailto:lists ([email]lists[/email]) (att) telefaks.de
Internet: www.telefaks.de
| Am 22.05.19 um 21:14 schrieb Jai Rangi:
Quote: | 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@192.168.5.50:_:[ignore_early_media=true,leg_timeout=20 ]user/102@192.168.5.50 (102@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@192.168.5.50 (101@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 Services
sales@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com |
|
|
|
Back to top |
|
|
lists at telefaks.de Guest
|
Posted: Fri Oct 22, 2021 5:00 pm Post subject: [Freeswitch-users] Issue with Enterprise originate and 487 & |
|
|
Yes, that's the point
Am 22.10.21 um 18:31 schrieb Gregor Nanger:
Quote: | Is this an issue that we do not see missed call on the phone although call wasn't taken? And yes, we are using enterprise originate?
Br, Gregor
On Thu, 21 Oct 2021, 17:21 Peter Steinbach, <lists@telefaks.de (lists@telefaks.de)> wrote:
Quote: |
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?
Quote: | --
With kind regards
Peter Steinbach
Telefaks Services GmbH
mailto:lists ([email]lists[/email]) (att) telefaks.de
Internet: www.telefaks.de
| Am 22.05.19 um 21:14 schrieb Jai Rangi:
Quote: | 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@192.168.5.50:_:[ignore_early_media=true,leg_timeout=20 ]user/102@192.168.5.50 (102@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@192.168.5.50 (101@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 Services
sales@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com |
|
|
|
Back to top |
|
|
jprangi at gmail.com Guest
|
Posted: Wed Oct 27, 2021 1:29 pm Post subject: [Freeswitch-users] Issue with Enterprise originate and 487 & |
|
|
Thank you Peter and Christian.
On Fri, Oct 22, 2021 at 7:19 AM Peter Steinbach <lists@telefaks.de (lists@telefaks.de)> wrote:
Quote: | 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:
Quote: |
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?
Quote: | --
With kind regards
Peter Steinbach
Telefaks Services GmbH
mailto:lists ([email]lists[/email]) (att) telefaks.de
Internet: www.telefaks.de
| Am 22.05.19 um 21:14 schrieb Jai Rangi:
Quote: | 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@192.168.5.50:_:[ignore_early_media=true,leg_timeout=20 ]user/102@192.168.5.50 (102@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@192.168.5.50 (101@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 Services
sales@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com |
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|