<!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">
Hi Alex,<br>
<br>
On 1/15/10 3:56 PM, alex pappas wrote:
<blockquote
 cite="mid:88b5e74c1001150656g59bdd149u1dae3d6c32e5d19b@mail.gmail.com"
 type="cite">Hi Daniel,<br>
  <br>
I was testing the $rU like:<br>
  <br>
$(rU{s.unescape.user}); with $rU=1000<b>%23</b>210XXXXXXX and i was
trying to get back the&nbsp; 1000<b>#</b>210XXXXXXX.<br>
</blockquote>
<br>
that is what I get and is correct, debug:<br>
<br>
&nbsp;1(3166) ERROR: &lt;script&gt;: SCRIPT:[1]: ----
<a class="moz-txt-link-freetext" href="sip:1000%23210XXXXXXXX@192.168.178.20">sip:1000%23210XXXXXXXX@192.168.178.20</a><br>
&nbsp;1(3166) DEBUG: &lt;core&gt; [strcommon.c:224]: unescaped string is
&lt;1000#210XXXXXXXX&gt;<br>
&nbsp;1(3166) ERROR: &lt;script&gt;: SCRIPT:[1]: ----
<a class="moz-txt-link-freetext" href="sip:1000#210XXXXXXXX@192.168.178.20">sip:1000#210XXXXXXXX@192.168.178.20</a><br>
<br>
for this piece of config:<br>
<br>
&nbsp;&nbsp;&nbsp; $rU = "1000%23210XXXXXXXX";<br>
&nbsp;&nbsp;&nbsp; xlog("SCRIPT:[1]: ---- $ru\n");<br>
&nbsp;&nbsp;&nbsp; $rU = $(rU{s.unescape.user});<br>
&nbsp;&nbsp;&nbsp; xlog("SCRIPT:[1]: ---- $ru\n"); <br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote
 cite="mid:88b5e74c1001150656g59bdd149u1dae3d6c32e5d19b@mail.gmail.com"
 type="cite"><br>
Thanks<br>
Alex<br>
  <br>
  <br>
  <br>
  <br>
  <br>
  <div class="gmail_quote">On Fri, Jan 15, 2010 at 3:31 PM,
Daniel-Constantin Mierla <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:miconda@gmail.com">miconda@gmail.com</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;">
    <div bgcolor="#ffffff" text="#000000">Hello,
    <div class="im"><br>
    <br>
On 1/12/10 3:49 PM, alex pappas wrote:
    <blockquote type="cite">Hi,<br>
      <br>
I already tried that and i was expecting to see back a # but that did
not happen. Anyway i will read more carefully the docs and see if I
find something there.<br>
    </blockquote>
    <br>
    </div>
i tested $(rU{s.unescape.user}) just now and works fine. Can you send
here your cfg lines along with the value of r-uri username?<br>
    <br>
Cheers,<br>
Daniel
    <div>
    <div class="h5"><br>
    <br>
    <blockquote type="cite"><br>
      <br>
Cheers<br>
Alex<br>
      <br>
      <br>
      <br>
      <div class="gmail_quote">On Tue, Jan 12, 2010 at 4:41 PM, Alex
Balashov <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</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;">Section
19.1.2
("Character Escaping Requirements") of RFC 3261 says quite
clearly that special characters must be escaped when appearing in SIP
URIs.<br>
        <br>
It's up to the SIP stack to decode them and translate them into
something usable by the caller, if needed. &nbsp;Kamailio doesn't do this
for '#' by default.<br>
        <br>
If you want to decode escaped characters, try use the transformations
that are designed for that, i.e. {s.unescape.user}. &nbsp;Example:<br>
        <br>
&nbsp; $(rU{s.unescape.user})
        <div>
        <div><br>
        <br>
On 01/12/2010 09:29 AM, alex pappas wrote:<br>
        <br>
        </div>
        </div>
        <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
          <div>
          <div>Dear Friends,<br>
          <br>
Do you have any idea on how to remove from $rU the %23 when is send in<br>
to my network?<br>
The scenario is: The customer will send (prefix # number). This is<br>
translated in sip in (prefix %23 number). I need to remove this in order<br>
to check against PDT module.<br>
          <br>
Thanks<br>
Alex<br>
          <br>
          <br>
          <br>
          <br>
          <br>
          </div>
          </div>
_______________________________________________<br>
Kamailio (OpenSER) - Users mailing list<br>
          <a moz-do-not-send="true"
 href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a><br>
          <a moz-do-not-send="true"
 href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users"
 target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
          <a moz-do-not-send="true"
 href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users"
 target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a><br>
        </blockquote>
        <br>
        <br>
-- <br>
Alex Balashov - Principal<br>
Evariste Systems<br>
Web &nbsp; &nbsp; : <a moz-do-not-send="true" href="http://www.evaristesys.com/"
 target="_blank">http://www.evaristesys.com/</a><br>
Tel &nbsp; &nbsp; : (+1) (678) 954-0670<br>
Direct &nbsp;: (+1) (678) 954-0671<br>
        <br>
_______________________________________________<br>
Kamailio (OpenSER) - Users mailing list<br>
        <a moz-do-not-send="true" href="mailto:Users@lists.kamailio.org"
 target="_blank">Users@lists.kamailio.org</a><br>
        <a moz-do-not-send="true"
 href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users"
 target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
        <a moz-do-not-send="true"
 href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users"
 target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a><br>
      </blockquote>
      </div>
      <br>
      <pre><fieldset></fieldset>
_______________________________________________
Kamailio (OpenSER) - Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.kamailio.org"
 target="_blank">Users@lists.kamailio.org</a>
<a moz-do-not-send="true"
 href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users"
 target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a>
<a moz-do-not-send="true"
 href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users"
 target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a></pre>
    </blockquote>
    <br>
    </div>
    </div>
    <pre cols="72">-- 
Daniel-Constantin Mierla
* <a moz-do-not-send="true" href="http://www.asipto.com/"
 target="_blank">http://www.asipto.com/</a>
    </pre>
    </div>
  </blockquote>
  </div>
  <br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
* <a class="moz-txt-link-freetext" href="http://www.asipto.com/">http://www.asipto.com/</a>
</pre>
</body>
</html>