[Spce-user] Concurrent call values return wrong values
Matthew Ogden
matthew at tenacit.net
Tue Oct 14 09:48:03 EDT 2014
Hi
On templates 2.8.18
I have added this code below bold sections in bold sections
I have 1 account with 5 subscribers, set to 20 Account_concurent_Max on all
subscribers.
I know they are not reaching 20 used channels or 18, yet 2 of the
subsrcribers are logging this warning all the time. (checking in use via
ngcp-kamctl proxy fifo dlg_list | grep "caller_contact" ).
# dialog count for callee subscriber/dom
concurrent max
if($avp(s:callee_concurrent_max) != $null
&& $avp(s:callee_concurrent_max) != 0)
{
if(get_profile_size("user","$avp(s:callee_uuid)","$avp(s:size)"))
{
if ($avp(s:size) >
$avp(s:callee_concurrent_max))
{
xlog("L_INFO", "Concurrent max calls exceeded for callee
'$avp(s:callee_uuid)' - [% logreq -%]\n");
route(ROUTE_ACC_FAILURE);
$var(announce_handle) = "max_calls_in";
$var(announce_set) = $avp(s:callee_sound_set);
$(avp(s:announce_code)[*]) = 486;
$(avp(s:announce_reason)[*]) = "Busy";
route(ROUTE_EARLY_REJECT);
}
*if ($avp(s:size) >
$avp(s:callee_concurrent_max)-2)*
* { *
*
xlog("L_INFO", "Concurrent max calls near limit for callee
'$avp(s:callee_uuid)' - [% logreq -%]\n");*
*
}*
* }*
}
# dialog count for callee subscriber/dom
concurrent max per account
if($avp(s:callee_concurrent_max_per_account) != $null &&
$avp(s:callee_concurrent_max_per_account) != 0)
{
if(get_profile_size("account","$avp(s:callee_account_id)","$avp(s:size)"))
{
if ($avp(s:size) >
$avp(s:callee_concurrent_max_per_account))
{
xlog("L_INFO", "Concurrent max calls per account exceeded for callee
'$avp(s:callee_uuid)' in account '$avp(s:callee_account_id)' - [% logreq
-%]\n");
route(ROUTE_ACC_FAILURE);
$var(announce_handle) = "max_calls_in";
$var(announce_set) = $avp(s:callee_sound_set);
$(avp(s:announce_code)[*]) = 486;
$(avp(s:announce_reason)[*]) = "Busy";
route(ROUTE_EARLY_REJECT);
}
*if ($avp(s:size) >
$avp(s:callee_concurrent_max)-2)*
* { *
*
xlog("L_INFO", "Concurrent max calls per account near limit for callee
'$avp(s:callee_uuid)' - [% logreq -%]\n");*
*
}*
}
}
*Matthew Ogden*
Management
TenacIT
*Strategic IT Consulting *•* Advanced Networking *• *Virtualisation*
*Custom Development *• *Hosting *• *Syspro Support *• *MS Licensing*
National Tel: 041 10 10 100 | Cell: 084 205 4445 | Email:
matthew at tenacit.net
CT Tel: 021 201 0333 | Skype Name: matthew.ogden | Web:
http://www.tenacit.net
[image: RuckusSmall]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20141014/0b1effa4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image009.png
Type: image/png
Size: 3930 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20141014/0b1effa4/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image010.png
Type: image/png
Size: 4536 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20141014/0b1effa4/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image013.jpg
Type: image/jpeg
Size: 4802 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20141014/0b1effa4/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image014.jpg
Type: image/jpeg
Size: 1031 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20141014/0b1effa4/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image015.jpg
Type: image/jpeg
Size: 1424 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20141014/0b1effa4/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image016.jpg
Type: image/jpeg
Size: 1287 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20141014/0b1effa4/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image017.jpg
Type: image/jpeg
Size: 1591 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20141014/0b1effa4/attachment-0004.jpg>
More information about the Spce-user
mailing list