<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello,<br>
    <br>
    <div class="moz-cite-prefix">On 5/10/13 4:16 PM, Bruno Bresciani
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAKv6MraV7+VASAKxAHdi5C1bCns-qbnSg_PVAQtsG_HJekY_Vg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello Daniel,
        <div><br>
        </div>
        <div style="">
          <div>thank's for your help... I was thinking to use $fs
            (forced socket) variable in branch_route to know what
            interface packet will be sending and set the correct
            rtpproxy parameters (I don't know if is a better solution).
            I will test your solution too.</div>
        </div>
      </div>
    </blockquote>
    should be a good solution as well. Flags are faster at runtime to
    work with, if that was ever a concern for you.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <blockquote
cite="mid:CAKv6MraV7+VASAKxAHdi5C1bCns-qbnSg_PVAQtsG_HJekY_Vg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div style="">
          <div><br>
          </div>
          <div>Best Regards</div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">2013/5/10 Daniel-Constantin Mierla <span
            dir="ltr"><<a moz-do-not-send="true"
              href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span><br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,
            <div>
              <div class="h5"><br>
                <br>
                On 5/8/13 8:24 PM, Bruno Bresciani wrote:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  Hi all,<br>
                  <br>
                  currently I have been used kamailio and rtpproxy to
                  listen on two different network (bridge mode), and the
                  register of sip users are saved on different locations
                  ("aliases" and "location") according the interface
                  where register is received. When there is a call to a
                  user registered, I use the registered() function of
                  module registrar on my route[ ] block, to discover the
                  network where sip user is connected and use the
                  correct parameters in rtpproxy functions.<br>
                  From now, I need that my plataform has forking call
                  support and when the same sip user is registered on
                  both networks, I have to use the branch_route[ ]
                   block to process every branch separately because is
                  necessary different rtpproxy parameters.<br>
                  I am with difficult in branch_route to set the correct
                  rtpproxy parameters because I can't find a way to know
                  the network that the branch will be send. Could
                  anybody tell me if exist a form to solve my problem?<br>
                </blockquote>
              </div>
            </div>
            one solution is to use a branch flag that you set at
            registration time based on the network is coming on. Then in
            branch route you can test for this flag.<br>
            <br>
            Cheers,<br>
            Daniel<span class="HOEnZb"><font color="#888888"><br>
                <br>
                -- <br>
                Daniel-Constantin Mierla - <a moz-do-not-send="true"
                  href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
                <a moz-do-not-send="true"
                  href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a>
                - <a moz-do-not-send="true"
                  href="http://www.linkedin.com/in/miconda"
                  target="_blank">http://www.linkedin.com/in/miconda</a><br>
                Kamailio Advanced Training, San Francisco, USA - June
                24-27, 2013<br>
                  * <a moz-do-not-send="true"
                  href="http://asipto.com/u/katu" target="_blank">http://asipto.com/u/katu</a>
                *<br>
                <br>
                <br>
                _______________________________________________<br>
                SIP Express Router (SER) and Kamailio (OpenSER) -
                sr-users mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:sr-users@lists.sip-router.org"
                  target="_blank">sr-users@lists.sip-router.org</a><br>
                <a moz-do-not-send="true"
                  href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                  target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
              </font></span></blockquote>
        </div>
        <br>
      </div>
    </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>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
  * <a class="moz-txt-link-freetext" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a> *</pre>
  </body>
</html>