Freeswitch Limit execute_on_originate Question
Hello, I'm calling execute_on_originate to an app LimitOutbound on my bridge action for LIMIT. var ses = context.Session; ses.Execute("limit", string.Format("hash outbound gw_{0} {1} !NORMAL_TEMPORARY_FAILURE", gwnamne, PortLimit)); ses.Execute("limit", string.Format("hash outbound gw_{0} {1}/1 !NORMAL_TEMPORARY_FAILURE", gwnamne, cps)); When I call it the limit goes back to 0 after the call routes. If I use a new thread :: the numbers don't go back to 0 until after the call however the new thread allows the call to go through and then it hangs up after the limit is checked. Per a post I saw it said to use execute_on_post_originate however that too allows the call to process then hangs up the call if the limit is reached either on single thread or multi-threaded. Since my limit has 3 bridge actions I expect if the first gateway is at limit it would route to the next one until one is available or no gateways are available. The code above (assuming 3 bridges) will call and hang up 3 times. I hope someone can help me.
participants (1)
-
Andre