[OpenSER-Users] obtain content of header dynamically
Yazid Hadj Said
yazid.hadjsaid at gmail.com
Tue May 27 11:32:28 CEST 2008
Hi,
I try to obtain content of header dynamically, but with $hdr(...) i can't do
this because it accept only static parameters. For example I try to use:
$avp(s:body)=$mb;
$avp(s:HdName)="To";
avp_subst("$avp(s:corps)/$avp(s:HdContent)","/^$avp(s:HdName):(.*)\r\n(.*)/\1/");
With this manner, i can change header name ($avp(s:HdName) )dynamically from
data source (e.g database) and use his content in my script.
But until now i don't obtain what i want.
Regards,
Yazid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20080527/e5391b4e/attachment.htm>
More information about the sr-users
mailing list