Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Using last_bridge_hangup_cause


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
olle at zaark.com
Guest





PostPosted: Mon Jan 18, 2021 3:39 am    Post subject: [Freeswitch-users] Using last_bridge_hangup_cause Reply with quote

Hi, I have a need of using last_bridge_hangup cause in a condition statement to activate a second call leg but I can’t get it to work.
The log line prints the correct values of last_bridge_hangup_cause, “NO_ANSWER” , but when I use it in the condition it’s not working and the same if I try to assign it to another variable.
Here is a code snippet I use in the dialplan:

<action application="set" data="hangup_after_bridge=false"/>
<action application="bridge" data="sofia/gateway/mygateway_1/1234567"/>
<action application="log" data="INFO Last bridge hangup ${last_bridge_hangup_cause}"/>
…. Do some stuff …….
<condition field="${last_bridge_hangup_cause}" expression="NO_ANSWER">
<action application="bridge" data="sofia/gateway/ mygateway_2/1234567"/>
</condition>

I would prefer using the dialplan without implementing this in lua if possible.

Any help appreciated /Olle
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services