<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    As it turns out, we did, in fact set the flags wrong: We didn't set
    them at all!<br>
    <br>
    In route[NATMANAGE] we were missing a crucial 'b' in
    isBflagset(FLBV4V6), leading to the RTPProxy flags never being set
    to FAIE or FAEI.<br>
    <br>
    A diff (shame on us for not trying it first) revealed the mistake,
    and now all is well.<br>
    <div class="moz-cite-prefix">On 12/03/2013 05:17 PM, Mark Zeman
      wrote:<br>
    </div>
    <blockquote cite="mid:529E040C.6040600@students.fhnw.ch" type="cite">
      <pre wrap="">The SIP packets are fine - we are able to establish SIP session with a 
secured control channel as easily as with an unsecured one.
As long as the RTPProxy doesn't get involved (i.e. as long as it's 
IPvX-IPvX and not IPv4-IPv6) everything works!
With the RTPProxy, the connection gets established (SIP still works) 
but RTP only comes from one side, the caller, and even that is not 
relayed.

It appears that Kamailio doesn't even enter the route[IPV4V6] part of 
its config, for example...

I will be able to send logs tomorrow, but I can show you our config, if 
that might help.





On Tue 03 Dec 2013 03:27:55 PM CET, Klaus Darilion wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">On 03.12.2013 14:23, Mark Zeman wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">Hello all,

The subject says most of it, I think.

We set up our Kamailio and RTPProxy according to
<a class="moz-txt-link-freetext" href="http://kb.asipto.com/kamailio:kamailio-mixed-ipv4-ipv6">http://kb.asipto.com/kamailio:kamailio-mixed-ipv4-ipv6</a>
with the addition of an alias (siplab.ch), and the DNS to go with it, as
well as TLS and SRTP.

However, we only get working calls IPv4-IPv4 and IPv6-IPv6! IPv4-IPv6 we
get a proper connection,
secured with SRTP, but no audio. Looking at the network, RTP packets go
from the caller to the server,
but nothing leaves the server and no RTP packets go from callee to
server.

Do you have any idea how to fix this?
</pre>
        </blockquote>
        <pre wrap="">
Before fixing you need to find the problem. Probably the SDP get
rewritten incorrect. To debug this issue, you have to inspect the ip
address and ports in the received and sent SDPs if they are correct
(e.g. IPv4 and IPv6 address of the rtpproxy).

You mentioned TLS - thus it is difficult to inspect the raw SIP
packets. Is such cases you can either:
- adding lots of xlog("$mb, ...") to your config and watch syslog
- use the sipcapture module to write every incoming and outgoing SIP
message to the DB, and analyze the packets in the DB
- Disable TLS. Use TCP. If it fails with TCP it will also fail with
TLS. Once it works over TCP, it will also work over TLS.
- If you really have a problem with TLS only, you could enable the
NULL cipher to have a unencrypted TLS connection, or use Wireshark's
TLS decoding capabilities
- Configure rtpproxy to communicate via UDP socket instead TCP socket.
Then you can also capture the communication between Kamailio and
rtpproxy.

It seems you just call the rtpproxy functions with some wrong flags.
Make sure properly detect the direction (4to6 or 6to4) an set the i
and e flags accordingly.

regards
Klaus
</pre>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>