Hello,<br><br>    One observation I&#39;ve made with {param.value} transformation is that in an example such as:<br><br>Contact: &lt;<a href="mailto:sip%3Afu@bar.com">sip:fu@bar.com</a>;nat=yes&gt;<br><br>$(ct{param.value,nat}) yeilds:        &quot;yes&gt;&quot;   versus &quot;yes&quot;<br>
<br>Is this correct behavior? (Just tested with 1.5.1-notls)<br><br>I&#39;ve also noticed that sometimes the param.value transformation does not seem to always work, in other scenarios such as:<br><br>Remote-Party-ID: &lt;<a href="mailto:sip%3Afu@bar.com">sip:fu@bar.com</a>&gt;;privacy=yes<br>
<br>$(hdr(Remote-Party-ID){param.value,privacy}) sometime yields &quot;yes&quot;, at other times null?<br><br>I&#39;ve not put any specific attention into this, and have just worked around it but not sure if this is an actual issue for this transformation currently, any further input on this guys?<br>
<br>Thanks for all and every input ahead of time!<br><br>Cheers,<br>Brandon.<br><br><div class="gmail_quote">On Tue, Apr 28, 2009 at 3:46 AM, Alex Hermann <span dir="ltr">&lt;<a href="mailto:alex@speakup.nl">alex@speakup.nl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br>
<br>
I&#39;m trying to extract the expires parameter from the contact.<br>
<br>
The following script fragment:<br>
<br>
1) TRACE(&quot;Contact: $ct&quot;);<br>
2) TRACE(&quot;Contact expires: $(ct{param.value,expires})&quot;);<br>
3) TRACE(&quot;Contact tobody uri: $(ct{tobody.uri})&quot;);<br>
4) TRACE(&quot;Contact tobody params: $(ct{tobody.params})&quot;);<br>
5) TRACE(&quot;Contact tobody param expires: $(ct{tobody.params}{param.value,expires})&quot;);<br>
6) TRACE(&quot;Contact nameaddr uri: $(ct{nameaddr.uri})&quot;);<br>
<br>
generated the following log lines:<br>
<br>
1) Contact: &quot;phone_3_0&quot; &lt;sip:phone_3_0@172.28.4.105:5060;transport=udp&gt;;expires=3600<br>
2) ERROR:core:parse_params: invalid character [&lt;] - expected ;<br>
2) Contact expires:<br>
3) Contact tobody uri: sip:phone_3_0@172.28.4.105:5060;transport=udp<br>
4) Contact tobody params:<br>
5) Contact tobody param expires:<br>
6) Contact nameaddr uri: sip:phone_3_0@172.28.4.105:5060;transport=udp<br>
<br>
<br>
My questions:<br>
<br>
Why does {param.value,expires} trip over a &#39;&lt;&#39; symbol (line 2)?<br>
<br>
What is a tobody? I can&#39;t find any documentation on its structure. How is it different from nameaddr?<br>
<br>
Shouldn&#39;t line 4 have returned &quot;expires=3600&quot;<br>
<br>
Why is there no &quot;{nameaddr.params}&quot;?<br>
<br>
<br>
How _do_ I extract the expires parameter (without parse errors)?<br>
<br>
--<br>
Greetings,<br>
<br>
Alex Hermann<br>
<br>
<br>
_______________________________________________<br>
Kamailio (OpenSER) - Devel mailing list<br>
<a href="mailto:Devel@lists.kamailio.org">Devel@lists.kamailio.org</a><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel</a><br>
<a href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/devel" target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/devel</a><br>
</blockquote></div><br>