[OpenSIPS-Users] Get SIP method's name

Vlad Paiu vladpaiu at opensips.org
Fri Jun 29 16:33:17 CEST 2012


The $rm pvar returns the exact 'REGISTER' or 'INVITE' or whatever SIP 
method you have in the current SIP message, so this is the one to use in 
your case.
The {uri.method} transformation returns the value of the method 
parameter from the URI passed at input, so this is not what you're 
interested in.


Vlad Paiu
OpenSIPS Developer

On 06/29/2012 04:49 PM, Sebastien CRUAUX wrote:
> Hi,
> Is there a way to get the name of a SIP method as a string in 
> opensips.cfg, maybe using transformations on a pseudo-variable ?
> For example, on a REGISTER request, I tried $rm and $(ru{uri.method}) 
> but each time the result was 128 (internal opensips code of the 
> REGISTER method, cf 
> http://opensips.org/pipermail/users/2011-July/018347.html). I would 
> like to get "REGISTER" instead of "128". How can I do that ?
> Thanks for your help.
> Regards,
> Sebastien
> _______________________________________________
> 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/20120629/0a5a9e87/attachment.htm>

More information about the Users mailing list