<div dir="ltr">Hi Serhat,<div><br></div><div>If you take a look of SDP body of your INVITES you will note that you are offering SRTP. </div><div><br></div><div>What you should do from my point of view is detect when an INVITE from the sipml5 softphone goes to the ims-softphone or other end-point which you are aware doesn't support SRTP and use the RTPEngine module (combination of rtpengine_offer and rtpengine_answer functions).</div><div><br></div><div><b>When INVITE (sipml5 -> Kamailio -> endPoint with out SRTP) you should perform something like this:</b></div><div><br></div><div>rtpengine_offer("trust-address replace-origin replace-session-connection ICE=remove RTP/AVP");<br></div><div>t_on_reply("3")<wbr>;<br></div><div><br></div><div><b>Then for replies you will need something like the route:</b></div><div><br></div><div><div>onreply_route[3] {</div><div><br></div><div>        if (t_check_status("183")) {</div><div>                change_reply_status("180", "Ringing");</div><div>                remove_body();</div><div>                exit;</div><div>        }</div><div><br></div><div>        if(!(status=~"[12][0-9][0-9]") || !(sdp_content()))</div><div>                return;</div><div>        rtpengine_answer("trust-<wbr>address replace-origin replace-session-connection ICE=force");</div><div><br></div><div>        route(NATMANAGE);</div><div>}</div></div><div><br></div><div>Or other approcah if offer SRTP and when the other ends answer with a 488 Not Supported Here do the same. </div><div><br></div><div>It is one way of bridging SRTP->RTP with the RTPEngine module.</div><div><br></div><div>Regards,</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 1, 2016 at 2:48 PM, Serhat Guler <span dir="ltr"><<a href="mailto:srtguler@gmail.com" target="_blank">srtguler@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)">Hi Alberto,<br><br>Thanks for looking into this. In the expert settings of sipml5 it says that disabling RTCWeb Breaker should make it compatible with softphones which are not implementing SRTP, that's how I have been testing it though. May I ask what attribute you looked at to get to the conclusion you have ? Thanks.<span class="HOEnZb"><font color="#888888"><br><br>Serhat</font></span></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 1 November 2016 at 13:39, Alberto Llamas <span dir="ltr"><<a href="mailto:albertollamaso@gmail.com" target="_blank">albertollamaso@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Serhat,<div><br></div><div>When you are using the webphone (sipml5) by WebRTC the media is secured with SRTP. So if the other end-point supports SRTP usually you don't have major issues. It is like when you communicate between two sipml5 web phones A and B.</div><div><br></div><div>But when you are trying to communicate to the IMS softphone, be sure that the softphone supports SRTP otherwise you will need to configure a RTP Proxy like RTPEngine in kamailio module in order to "translate" between plain RTP and SRTP.</div><div><br></div><div>This is what I see is your issue based on the pcap files.</div><div><br></div><div>PS: You can have a setup in your kamailio config file to offer first SRTP and if the other end-point doesn't support it (when you receive a 4XX reply) then send a Re-INVITE with plain RTP.</div><div><br></div><div>Regards,</div></div><div class="gmail_extra"><div><div class="m_-9139389088557937706h5"><br><div class="gmail_quote">On Tue, Nov 1, 2016 at 12:45 PM, Serhat Guler <span dir="ltr"><<a href="mailto:srtguler@gmail.com" target="_blank">srtguler@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)">Hi Daniel, hi Alberto,<br><br>Thanks for your prompt replies. I have put 2 pcap files in dropbox ( <a href="https://www.dropbox.com/sh/fzclmbpniebrvx1/AAAOOv4h2ci7bJuuJvSbs3poa?dl=0" target="_blank">https://www.dropbox.com/sh/f<wbr>zclmbpniebrvx1/AAAOOv4h2ci7bJu<wbr>uJvSbs3poa?dl=0</a> ) . trace.mercuro.pcap is the one where the session is set up, but there is no audio flow and trace.boghe.pcap is the one with 488 error.<br><br>Cheers,<br>Serhat<br></div></div><div class="m_-9139389088557937706m_621262518766630199HOEnZb"><div class="m_-9139389088557937706m_621262518766630199h5"><div class="gmail_extra"><br><div class="gmail_quote">On 1 November 2016 at 12:39, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>can you get the SIP INVITE content that was received by the
      endpoint returning 488? Maybe we can spot if there is something
      wrong in the sip message content or an issue in the endpoint
      software. Maybe it doesn't like headers with random string instead
      of ip addresses (e.g., in via, contact ...).<br>
    </p>
    <p>I am not aware of any ims softphone with webrtc capabilities.<br>
    </p>
    Cheers,<br>
    Daniel<div><div class="m_-9139389088557937706m_621262518766630199m_3228629708487486807h5"><br>
    <br>
    <div class="m_-9139389088557937706m_621262518766630199m_3228629708487486807m_-2709563465886441155moz-cite-prefix">On 01/11/16 12:15, Serhat Guler wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="m_-9139389088557937706m_621262518766630199m_3228629708487486807h5">
      <div dir="ltr">
        <div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#0b5394">Hi,<br>
        </div>
        <div class="gmail_quote">
          <div dir="ltr">
            <div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)"><br>
              I have a setup as follows:</div>
            <div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)"><br>
            </div>
            <div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)">IMS
              enabled on Kamailio and whereas websockets are enabled for
              PCSCF for webrtc calls. </div>
            <div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)"><br>
            </div>
            <div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)">Calls(both
              audio and video) between to sipml5 clients using firefox
              web browser is possible. The session is setup for the
              calls from sipml5 to Mercuro, but then there isn't audio
              flow as the codecs are not compatible.</div>
            <div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)"><br>
            </div>
            <div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)">Now
              I want to test it with Boghe which supports G.722, PCMA,
              PCMU, and OPUS codecs as firefox but this time the session
              isn't being setup. Boghe replies with "Reason: SIP;
              cause=488; text="Bad content"</div>
            <div>
              <div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148);display:inline">​"
                I have seen a similar issue has been mentioned here: <a href="https://github.com/c00lz3r0/boghe/issues/157" target="_blank">https://github.com/c00lz3r0/bo<wbr>ghe/issues/157</a>
                 but the initial invite request from sipml5 does have
                the SDP with media attributes.<br>
                ​</div>
              <br>
            </div>
          </div>
        </div>
        <div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)">​Any
          advice or are there any other IMS softphones that I can use to
          test for this scenario. Thanks a lot.<br>
          <br>
          P.S. The previous email went out directly unintentionally.<br>
          Serhat</div>
        <br>
      </div>
      <br>
      <fieldset class="m_-9139389088557937706m_621262518766630199m_3228629708487486807m_-2709563465886441155mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><span><pre>______________________________<wbr>_________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="m_-9139389088557937706m_621262518766630199m_3228629708487486807m_-2709563465886441155moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a class="m_-9139389088557937706m_621262518766630199m_3228629708487486807m_-2709563465886441155moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cg<wbr>i-bin/mailman/listinfo/sr-user<wbr>s</a>
</pre>
    </span></blockquote><span class="m_-9139389088557937706m_621262518766630199m_3228629708487486807HOEnZb"><font color="#888888">
    <br>
    <pre class="m_-9139389088557937706m_621262518766630199m_3228629708487486807m_-2709563465886441155moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="m_-9139389088557937706m_621262518766630199m_3228629708487486807m_-2709563465886441155moz-txt-link-freetext" href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a class="m_-9139389088557937706m_621262518766630199m_3228629708487486807m_-2709563465886441155moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/mic<wbr>onda</a>
Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - <a class="m_-9139389088557937706m_621262518766630199m_3228629708487486807m_-2709563465886441155moz-txt-link-freetext" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></pre>
  </font></span></div>

<br>______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cg<wbr>i-bin/mailman/listinfo/sr-user<wbr>s</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cg<wbr>i-bin/mailman/listinfo/sr-user<wbr>s</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br></div></div><span><div class="m_-9139389088557937706m_621262518766630199gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Alberto Llamas<br></div><div>Phone: <a href="tel:%2B1-786-805-6003" value="+17868056003" target="_blank">+1-786-805-6003</a></div><div><div dir="ltr"><div name="div[0]"><span>Telecommunications</span><span> </span><span>Engineer</span></div></div>Digium Certified Asterisk Professional (dCap)<br></div><div><br></div></div></div></div></div>
</span></div>
<br>______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cg<wbr>i-bin/mailman/listinfo/sr-user<wbr>s</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Alberto Llamas<br></div><div>Phone: +1-786-805-6003</div><div><div dir="ltr"><div name="div[0]"><span>Telecommunications</span><span> </span><span>Engineer</span></div></div>Digium Certified Asterisk Professional (dCap)<br></div><div><br></div></div></div></div></div>
</div>