I am starting to configure a concurrent call limit in opensips 1.6.4 and so far have the following configuration :-

$var(maxchannels) = 1;
if (avp_db_load("$au/username","s")) {
  $var(maxchannels) = $avp(s:maxchannels);
}
xlog("L_NOTICE: User $au max channels = $var(maxchannels)\n");

In the database I have :-

INSERT INTO `usr_preferences` (`id`, `uuid`, `username`, `domain`, `attribute`, `type`, `value`, `last_modified`) VALUES
(1, '', '1000', '', 'maxchannels', 0, '2', '2011-07-13 00:00:01');

The problem I am having is than when the call goes out I get the following error :-

Jul 13 16:24:25 vmopensips1 /sbin/opensips[1828]: ERROR:core:parse_uri: uri too short: <1000> (4) Jul 13 16:24:25 vmopensips1 /sbin/opensips[1828]: ERROR:avpops:ops_dbload_avps: failed to parse uri Jul 13 16:24:25 vmopensips1 /sbin/opensips[1828]: L_NOTICE: User 1000 max channels = 1

I dont understand why it is thinking its a uri and not username.

Thanks
Gareth

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to