[OpenSIPS-Users] enum_pv_query response

Razvan Crainea razvan at opensips.org
Mon Apr 9 10:17:19 CEST 2012


Hello, Andrew!

You cannot access the raw NAPTR response from the script, you can only 
see the R-URI modified according to the ENUM regexp response. Therefore, 
you can search for the rn param in the R-URI ($ru pseudovariable).

Regards,

--
Ra(zvan Crainea
OpenSIPS Developer
http://www.opensips-solutions.com


On 04/06/2012 11:58 PM, Andrew Melton wrote:
> I am attempting to use the NAPTR response from an enum_pv_query, but I 
> can't find the variable being used to store it.  Debug shows a 
> response value:
>
> DBG:enum:enum_pv_query_3: ENUM query on 
> 5.2.1.5.7.2.8.2.1.5.1.enum.local: order 100, pref 50, flen 1, flags 
> 'u', slen 12, services 'E2U+pstn:tel', rlen 44, regexp 
> '!^(.*)$!tel:\1;npdi;rn=5125599976;spid=1086!'
>
> Based on that, I was expecting to redirect the call by parsing the 
> rn=5125599976 from the enum response, and using it to either rewrite 
> the uri or construct a simple 302 from scratch.  Can I store the 
> response or use it in a script?
>
> Thanks.
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120409/f965a421/attachment.htm>


More information about the Users mailing list