[Freeswitch-users] Force hangup cause LOSE_RACE

Ken Rice krice at freeswitch.org
Wed Nov 9 07:56:19 UTC 2022


how specifically are you ringing each group? 

the thing is if no one answers the first group there is not really a lost race as no one won they all timed out. 

i suppose of you really need a flag you could set a chanvar on the b legs from the bridge string to lost race (or what ever) and set an execute on answer to clear that chan var or set it to “won race” or whatever suits you. 

but at the end of the day the normal clearing will be the hangup status recorded in the cdr on the timed out first group. 

Sent from my iPhone

> On Nov 8, 2022, at 19:49, Peter Steinbach <lists at telefaks.de> wrote:
> 
> 
> It does not.
> 
> As I described, I have 2 Callgroups 
> 
> 1st call group rings, nobody picks up, all phones get normal hangup (call is shown as missed call on the phone)
> 2nd subsequent call group rings, one phone picks up, all remaining phones get  "call completed elsewhere"
> I would need  a way to force a "call completed elsewhere" on hangup in the 1st callgroup, as I know that the subsequent 2nd callgroup will most probably be answered.
> 
> /Peter
> 
> 
> 
> Am 08.11.22 um 13:21 schrieb Brian West:
>> Turn on the sip trace, it should behave that way by default.
>> 
>> On Tue, Nov 8, 2022 at 6:01 AM Peter Steinbach <lists at telefaks.de> wrote:
>>> Thanks for your comment
>>> 
>>> is there a way to achieve that?
>>> 
>>> /Peter
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Am 07.11.22 um 17:43 schrieb Brian West:
>>>> lose_race should have a Reason header of call-completed-elsewhere.  So that phones in the group don't show missed calls when one of them did answer it, Normal clearing would have the endpoint registering a missed call if nobody answered it.
>>>> 
>>>> /b
>>>> 
>>>> 
>>>> On Mon, Nov 7, 2022 at 10:37 AM Peter Steinbach <lists at telefaks.de> wrote:
>>>>> Dear community,
>>>>> 
>>>>> 
>>>>> 
>>>>> we have a call scenario where we have several call groups running one after another. Normally, when a phone picks up the call, all other calls receive a LOSE_RACE. If nobody picks up, all phones get a NORMAL_CLEARING.
>>>>> 
>>>>> In my cause, when one call group is following another call group I want to have the following behaviour
>>>>> 
>>>>> CallGroup 1, nobody answers, all phones shall get a LOSE_RACE
>>>>> CallGroup 2, nobody answers, all phones get a NORMAL_CLEARING (normal behaviour)
>>>>> Is there chance to do this without interfering via ESL? How can I force freeswitch in CallGroup 1 e.g. via dialplan to send LOSE_RACE to all phones, when nobody picks up?
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> -- 
>>>>> With kind regards
>>>>> Peter Steinbach 
>>>>> 
>>>>> Telefaks Services GmbH
>>>>> mailto:lists (att) telefaks.de
>>>>> Internet: www.telefaks.de
>>>>> 
>>>>> _________________________________________________________________________
>>>>> 
>>>>> 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
>>>> 
>>>> 
>>>> -- 
>>>> 
>>>> Brian West | Co-founder and Developer
>>>> Need Commercial support? email sales at freeswitch.com 
>>>> FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
>>>> Email: brian at freeswitch.com
>>>> Mobile: 918-424-9378
>>>> Website: https://www.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
>>> -- 
>>> With kind regards
>>> Peter Steinbach 
>>> 
>>> Telefaks Services GmbH
>>> mailto:lists (att) telefaks.de
>>> Internet: www.telefaks.de
>>> 
>>> _________________________________________________________________________
>>> 
>>> 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
>> 
>> 
>> -- 
>> 
>> Brian West | Co-founder and Developer
>> Need Commercial support? email sales at freeswitch.com 
>> FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
>> Email: brian at freeswitch.com
>> Mobile: 918-424-9378
>> Website: https://www.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
> -- 
> With kind regards
> Peter Steinbach 
> 
> Telefaks Services GmbH
> mailto:lists (att) telefaks.de
> Internet: www.telefaks.de
> 
> _________________________________________________________________________
> 
> 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/20221109/de2063ba/attachment-0001.html>


More information about the FreeSWITCH-users mailing list