<!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">
It's a pleasure, I just gave an idea...<br>
Daniel did the translation.<br>
<br>
Just take care, lookup("location") also modify the ruri.<br>
<br>
Olivier<br>
<br>
Antonio Reale a &eacute;crit&nbsp;:
<blockquote cite="mid:49a67023.0305560a.2bd0.3461@mx.google.com"
 type="cite">
  <pre wrap="">Thanks Olivier, thanks Daniel,
in this way it works. My idea was that rewrite RURI after aliases lookup
(that also rewrite the RURI) was not the best solution.
Thank you very much.
Regards,
Antonio.



  </pre>
  <blockquote type="cite">
    <pre wrap="">-----Original Message-----
From: Daniel-Constantin Mierla [<a class="moz-txt-link-freetext" href="mailto:miconda@gmail.com">mailto:miconda@gmail.com</a>]
Sent: Wednesday, February 25, 2009 11:36 AM
To: <a class="moz-txt-link-abbreviated" href="mailto:olivier@sunforyou.be">olivier@sunforyou.be</a>
Cc: Antonio Reale; <a class="moz-txt-link-abbreviated" href="mailto:users@lists.kamailio.org">users@lists.kamailio.org</a>
Subject: Re: [Kamailio-Users] [OpenSER-Users] [OT] How to handle different
DID's in incoming calls for a registered client?

Hello,

in kamailio/openser, the equvalents of the operations are (see inline):

On 02/24/2009 11:17 AM, olivier taylor wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">What I do in SER 0.96

Before any lookup("aliases")

        avp_write("$ruri/username","s:RealRuri");     //to save the Ruri
      </pre>
    </blockquote>
    <pre wrap="">$avp(s:RealRuri) = $rU;

    </pre>
    <blockquote type="cite">
      <pre wrap="">and just before sending the call to the user :

        avp_pushto("$ruri/username", "s:RealRuri");
      </pre>
    </blockquote>
    <pre wrap="">$rU = $avp(s:RealRuri);

    </pre>
    <blockquote type="cite">
      <pre wrap="">You can then modify the Ruri as you want with prefix or strip if needed
      </pre>
    </blockquote>
    <pre wrap="">strip/prefix are still there, however there are other features that can
help:
- string concatenation of variables using + (e.g., $var(x) = "001" + $rU;)
- transformations:
<a class="moz-txt-link-freetext" href="http://www.kamailio.org/dokuwiki/doku.php/transformations:devel">http://www.kamailio.org/dokuwiki/doku.php/transformations:devel</a>

Cheers,
Daniel

    </pre>
    <blockquote type="cite">
      <pre wrap="">Hope it helps

Olivier


Antonio Reale a &eacute;crit :
      </pre>
      <blockquote type="cite">
        <pre wrap="">Hi I&ntilde;aki,
did you find a way to solve this problem. I have the same problem with
devices that can't read the To: value.
For customers with 10/100 assigned number I routed the entire root
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->number
  </pre>
  <blockquote type="cite">
    <pre wrap="">to
    </pre>
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">the customer's IP (loosing auth...), but for users with only one
supplementary number it is not practicable.
Has someone a suggestion for this problem?
Thanks to all.
Regards.

Antonio.


        </pre>
        <blockquote type="cite">
          <pre wrap="">-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:users-bounces@lists.openser.org">users-bounces@lists.openser.org</a>

          </pre>
        </blockquote>
        <pre wrap="">[<a class="moz-txt-link-freetext" href="mailto:users-bounces@lists.openser.org">mailto:users-bounces@lists.openser.org</a>]

        </pre>
        <blockquote type="cite">
          <pre wrap="">On Behalf Of I&ntilde;aki Baz Castillo
Sent: Wednesday, April 02, 2008 6:30 PM
To: <a class="moz-txt-link-abbreviated" href="mailto:users@lists.openser.org">users@lists.openser.org</a>
Subject: Re: [OpenSER-Users] [OT] How to handle different DID's in

          </pre>
        </blockquote>
        <pre wrap="">incoming

        </pre>
        <blockquote type="cite">
          <pre wrap="">calls for a registered client?

El Wednesday 02 April 2008 16:21:59 Jesus Rodriguez escribi&oacute;:

          </pre>
          <blockquote type="cite">
            <pre wrap="">Yes, in theses cases you have to relay on To: header value. The
problem is that not all "multiport" devices are "multi account" as
Asterisk is and you need to use aliases to send all different DIDs to
the same SIP account... some of these "multiport" devices can read
            </pre>
          </blockquote>
        </blockquote>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->the
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <blockquote type="cite">
          <blockquote type="cite">
            <pre wrap="">To: value and send the call to the right place even registering only
one account.

            </pre>
          </blockquote>
          <pre wrap="">Ok, thanks.


--
I&ntilde;aki Baz Castillo
<a class="moz-txt-link-abbreviated" href="mailto:ibc@in.ilimit.es">ibc@in.ilimit.es</a>

_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.openser.org">Users@lists.openser.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openser.org/cgi-bin/mailman/listinfo/users">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a>

          </pre>
        </blockquote>
        <pre wrap="">
_______________________________________________
Kamailio (OpenSER) - Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a>
<a class="moz-txt-link-freetext" href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a>


        </pre>
      </blockquote>
      <pre wrap="">------------------------------------------------------------------------

_______________________________________________
Kamailio (OpenSER) - Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a>
<a class="moz-txt-link-freetext" href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a>
      </pre>
    </blockquote>
    <pre wrap="">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->

_______________________________________________
Kamailio (OpenSER) - Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a>
<a class="moz-txt-link-freetext" href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a>

  </pre>
</blockquote>
</body>
</html>