[OpenSIPS-Users] avp_db_load - ERROR:core:parse_uri: uri too short
Gareth Blades
list-asterisk at skycomuk.com
Wed Jul 13 17:59:16 CEST 2011
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
More information about the Users
mailing list