<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
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.<br>
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.<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
<br>
On 06/29/2012 04:49 PM, Sebastien CRUAUX wrote:
<blockquote cite="mid:4FEDB27C.8060002@halys.fr" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hi,<br>
<br>
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 ?<br>
<br>
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
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a moz-do-not-send="true"
href="http://opensips.org/pipermail/users/2011-July/018347.html">http://opensips.org/pipermail/users/2011-July/018347.html</a>).
I would like to get "REGISTER" instead of "128". How can I do that
?<br>
Thanks for your help.<br>
<br>
Regards,<br>
<br>
Sebastien<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>