<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
You are absolutely right, my bad I mixed up my logs and got
confused.<br>
Thank you for your quick answer !<br>
<br>
Le 29/06/2012 16:33, Vlad Paiu a écrit :
<blockquote cite="mid:4FEDBCAD.8010902@opensips.org" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
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 moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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>