Hi,
how can i check the RPID in the header for the flag "privacy=full"?
i tried it with textops, but it didnt work. any other ideas?
bye, martin
Hi,
load the RPID body into an AVP (use avp_write()) and check the body against an re via avp_check().
regards, bogdan
martin@campus-merseburg.de wrote:
Hi,
how can i check the RPID in the header for the flag "privacy=full"?
i tried it with textops, but it didnt work. any other ideas?
bye, martin
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hello,
On 05/15/06 13:31, Atle Samuelsen wrote:
Hi
Hi,
load the RPID body into an AVP (use avp_write()) and check the body against an re via avp_check().
Or just use a search witha regexp :-) if you dont want to use avp+´s.
with the development version you have direct access to the rpid header, no need to use avps:
avp_check("$hdr(rpid)", "re/[0-1][0-9]+")
Cheers, Daniel
-A
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
load the RPID body into an AVP (use avp_write()) and check the body against an re via avp_check().
Or just use a search witha regexp :-) if you dont want to use avp+´s.
with the development version you have direct access to the rpid header, no need to use avps:
avp_check("$hdr(rpid)", "re/[0-1][0-9]+")
it's on a carrier-grade system. so i dont want use the development version. are there other ways?
Hi
do something like:
if(search("Remote-Party-ID:.*Privary�=full")
You most fix the regexp, but there is the prinsip:-)
-A
* martin@campus-merseburg.de martin@campus-merseburg.de [060515 17:06]:
load the RPID body into an AVP (use avp_write()) and check the body against an re via avp_check().
Or just use a search witha regexp :-) if you dont want to use avp+?s.
with the development version you have direct access to the rpid header, no need to use avps:
avp_check("$hdr(rpid)", "re/[0-1][0-9]+")
it's on a carrier-grade system. so i dont want use the development version. are there other ways?
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Martin,
with current stable version you can do avp_write("$hdr[Remote-Party-ID]","i:11"); if ( avp_check("i:11","re/rex_exp") ) { }
this is more efficient that doing a regexp over the entire message.
also note that none of the approaches will work if the RPID was added locally and not received.
regards, bogdan
martin@campus-merseburg.de wrote:
load the RPID body into an AVP (use avp_write()) and check the body against an re via avp_check().
Or just use a search witha regexp :-) if you dont want to use avp+´s.
with the development version you have direct access to the rpid header, no need to use avps:
avp_check("$hdr(rpid)", "re/[0-1][0-9]+")
it's on a carrier-grade system. so i dont want use the development version. are there other ways?
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users