Outbound/inbound route domain problem for call limit
GoogleCodeExporter opened this issue · comments
What steps will reproduce the problem?
1. Create an outbound/inbound route
2. Set a limit
3. try a call
What is the expected output? What do you see instead?
Error (the domain is not set):
EXECUTE sofia/internal/203@test.com:5060 limit(db outbound 1 !USER_BUSY)
2012-08-31 12:42:14.781410 [INFO] switch_limit.c:126 incr called: outbound_1
max:0, interval:0
2012-08-31 12:42:14.781410 [INFO] mod_db.c:197 Usage for outbound_1 is now 1/0
What version of the product are you using? On what operating system?
latest svn, Centos 6.3
Please provide any additional information below.
The following files should be modified:
var/www/html/app/dialplan_inbound/dialplan_inbound_add.php
$sql .= "'db ".$_SESSION['domains'][$_SESSION['domain_uuid']]['domain_name']."
inbound ".$limit." !USER_BUSY', ";
// $sql .= "'db \${domain} inbound ".$limit." !USER_BUSY', ";
/var/www/html/app/dialplan_inbound/dialplan_outbound_add.php
$dialplan_detail_data = "db ".$_SESSION['domains'][$_SESSION['domain_uuid']]['domain_name']." outbound ".$limit." !USER_BUSY";
// $dialplan_detail_data = "db \${domain} outbound ".$limit." !USER_BUSY";
Original issue reported on code.google.com by carlo.di...@gmail.com
on 31 Aug 2012 at 10:44
The proposed changes fix the problem with non-working limits.
Original comment by vovan...@gmail.com
on 30 Sep 2012 at 11:10
Fixed with r5752 - 'limit_execute' used instead on the lines preceding those
posted.
Original comment by sevenate
on 27 Apr 2014 at 4:37
- Changed state: Fixed