Re: [OpenSIPS-Users] using avpops module

2012-05-29 Thread Richard Revels
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

Re: [OpenSIPS-Users] using avpops module

2012-05-28 Thread Ali Pey
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

[OpenSIPS-Users] using avpops module

2012-05-27 Thread 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