hi all, i am trying to load a data(i have stored domain uri's as the value in value column) from the table usr_preferences. my usr_preferences table look like this +------+----------+---------+-----------+------+---------------+---------------------+ | uuid | username | domain | attribute | type | value | modified | +------+----------+---------+-----------+------+---------------+---------------------+ | | 101 | domain | abc | 0 | 1.1.1.1 | 2006-03-20 15:53:15 | | | 103 | domain | abc | 0 | 1.1.1.2 | 2006-03-20 15:53:15 | | | 102 | domain1 | abc | 0 | 1.1.1.3 | 2006-03-20 15:53:15 | +------+----------+---------+-----------+------+---------------+---------------------+
in this table i need to get the values ov servers(i.e, 1.1.1.1,1.1.1.2,1.1.1.3 avp_db_load("$ruri/domain","s:abc/usr_preferences"); append_branch();
but i am not getting any error, when i saw the debug file it was showing avp_db_load =0;
in what way i can get this servers uri(stored in value coloumn) into sip messages so that i can do append_branch()
regrads sonu
__________________________________________________________ Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com
Hello,
I assume that the R-URI is like: 'sip:101@domain'. The do:
avp_db_load("$ruri","s:abc/usr_preferences"); avp_pushto("$ruri/domain", "s:abc");
Cheers, Daniel
On 03/20/06 13:37, openser user wrote:
hi all, i am trying to load a data(i have stored domain uri's as the value in value column) from the table usr_preferences. my usr_preferences table look like this +------+----------+---------+-----------+------+---------------+---------------------+ | uuid | username | domain | attribute | type | value | modified | +------+----------+---------+-----------+------+---------------+---------------------+ | | 101 | domain | abc | 0 | 1.1.1.1 | 2006-03-20 15:53:15 | | | 103 | domain | abc | 0 | 1.1.1.2 | 2006-03-20 15:53:15 | | | 102 | domain1 | abc | 0 | 1.1.1.3 | 2006-03-20 15:53:15 | +------+----------+---------+-----------+------+---------------+---------------------+
in this table i need to get the values ov servers(i.e, 1.1.1.1,1.1.1.2,1.1.1.3 avp_db_load("$ruri/domain","s:abc/usr_preferences"); append_branch();
but i am not getting any error, when i saw the debug file it was showing avp_db_load =0;
in what way i can get this servers uri(stored in value coloumn) into sip messages so that i can do append_branch()
regrads sonu
__________________________________________________________ Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users