Here is another example or two.
Set module parameter to grab an extra column (tag) in a dbaliases table:
modparam(avpops, db_scheme,
alias_scheme:table=dbaliases;username_col=username;domain_col=domain;value_col=tag;value_type=string)
In the config use the alias scheme (send in the uri of the
avp_db_query(insert into SIP_REG(TIMESTAMP, SIP_USERNAME, DOMAIN, AGENT,
CONTACT, EXPIRES, SOURCE, NET_TYPE, SERVER) values ('CURRENT_TIMESTAMP',
'$fU', '$fd', '$ua', '$ct', '$hdr(Expires)', '$avp(i:42)', 'NATED',
'Primary OpenSIPS' ));
Regards,
Ali
On Sun, May 27, 2012 at 3:07 AM, prasad kelkar
hello,
I tried using AVPpops module to connect to table in mysql.
I cant acces value
Please give me example code.
Thank You
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users