Bogdan,
Right, that would be possible. I think I'll go with something like this
though:
$avp(s:ext) = $hdr(From);
avp_subst("$avp(s:ext)", "/^(.+;ref=([0-9]+))?.*?$/\2/");
if($(avp(s:ext){s.len}) > 0)
{
# handle extension
}
Andreas
Bogdan-Andrei Iancu wrote:
Hi Andreas,
not really :(..there is no other way. Maybe trying to make use of the
list transformations:
http://www.openser.org/dokuwiki/doku.php/transformations:1.2.x#parameters_l…
regards,
bogdan
Andreas Granig wrote:
Hi,
I've found that Linksys SPA9000 (some sort of IP PBX) signals extensions
in a "ref" parameter of From-Header, like:
From: <sip:line1@matrix.sipura.com>;tag=1234;ref=105
Is there a way to easily access this parameter? Seems like...
$var(ext) = $(fu{uri.param,ref});
... doesn't catch it because it's not part of $fu. Any other ways except
trying to assign $hdr(From) to an AVP and extract it using
avp_subst(...)?
Andreas
_______________________________________________
Users mailing list
Users(a)lists.openser.org
http://lists.openser.org/cgi-bin/mailman/listinfo/users