<div dir="ltr">Hello,<div>Thank you for your answer. </div><div><br></div><div>My server is a centos with public ip. I'm using chrome with jssip framework for sip client - tried sipml5 also. I have attached to this e-mail my kamailio configuration.<br>
</div><div><br></div><div>Regarding the kamailio + mediaproxy-ng I took the latest versions from git - also tried with kamailio 4.1.1. The mediaproxy-ng I'm running using the command: /tmp/mediaproxy-ng/daemon/mediaproxy-ng --ip=PUBLIC_IP --listen-ng=<a href="http://127.0.0.1:2222">127.0.0.1:2222</a><br>
</div><div><br></div><div><br></div><div><br></div><div>I also tried the following configuration and I have the same error:</div><div>route {</div><div>        ......................</div><div><div>        ##################################################################################################################</div>
<div><span class="" style="white-space:pre">    </span># Use RTP-Proxy</div><div><span class="" style="white-space:pre">    </span>###############################################################################################################</div>
<div><span class="" style="white-space:pre">    </span>#if (!rtpproxy_offer("arf")) {</div><div><span class="" style="white-space:pre">   </span>#<span class="" style="white-space:pre"> </span>sl_send_reply("503", "No RTP-Relay available");</div>
<div><span class="" style="white-space:pre">    </span>#<span class="" style="white-space:pre"> </span>exit;</div><div><span class="" style="white-space:pre">      </span>#}</div><div><span class="" style="white-space:pre"> </span>if (is_method("INVITE")) { </div>
<div><span class="" style="white-space:pre">            </span>if (sdp_content()) { </div><div><span class="" style="white-space:pre">                      </span>if (rtpproxy_offer()) </div><div><span class="" style="white-space:pre">                             </span>rtpproxy_manage("cowf","PUBLIC_IP"); </div>
<div><span class="" style="white-space:pre">                    </span>t_on_reply("1"); </div><div><span class="" style="white-space:pre">                </span>}</div><div><span class="" style="white-space:pre">  </span>} else { </div><div>              if (sdp_content()) { </div>
<div><span class="" style="white-space:pre">                    </span>if (rtpproxy_offer()) </div><div><span class="" style="white-space:pre">                             </span>rtpproxy_manage("cowf","PUBLIC_IP"); </div><div><span class="" style="white-space:pre">                          </span>}</div>
<div><span class="" style="white-space:pre">    </span>}</div><div><span class="" style="white-space:pre">  </span></div><div><span class="" style="white-space:pre">   </span>if (is_method("ACK") && sdp_content()) {</div>
<div>         rtpproxy_answer(); </div><div><span class="" style="white-space:pre">         </span> rtpproxy_manage("cowf","PUBLIC_IP");</div><div><span class="" style="white-space:pre">  </span>}</div><div><br>
</div><div><br></div><div><span class="" style="white-space:pre">       </span></div><div><span class="" style="white-space:pre">   </span>#t_on_reply("1");</div><div><br></div><div><span class="" style="white-space:pre">       </span># Relay this statefully</div>
<div><span class="" style="white-space:pre">    </span>t_relay();</div><div>        ...............................................................</div><div class="gmail_extra">*******************************************************************</div>
<div class="gmail_extra"><div class="gmail_extra">onreply_route[1] {<span class="" style="white-space:pre">   </span></div><div class="gmail_extra"><span class="" style="white-space:pre">     </span>if ((($Rp == MY_WS_PORT || $Rp == MY_WSS_PORT)</div>
<div class="gmail_extra"><span class="" style="white-space:pre">              </span>&& !(proto == WS || proto == WSS)) || $Rp == MY_MSRP_PORT) {</div><div class="gmail_extra"><span class="" style="white-space:pre">         </span>xlog("L_WARN", "SIP response received on $Rp\n");</div>
<div class="gmail_extra"><span class="" style="white-space:pre">              </span>drop;</div><div class="gmail_extra"><span class="" style="white-space:pre">                </span>exit;</div><div class="gmail_extra"><span class="" style="white-space:pre">        </span>}</div>
<div class="gmail_extra"><span class="" style="white-space:pre">      </span>if (nat_uac_test(64)) {</div><div class="gmail_extra"><span class="" style="white-space:pre">              </span># Do NAT traversal stuff for replies to a WebSocket connection</div>
<div class="gmail_extra"><span class="" style="white-space:pre">              </span># - even if it is not behind a NAT!</div><div class="gmail_extra"><span class="" style="white-space:pre">          </span># This won't be needed in the future if Kamailio and the</div>
<div class="gmail_extra"><span class="" style="white-space:pre">              </span># WebSocket client support Outbound and Path.</div><div class="gmail_extra"><span class="" style="white-space:pre">                </span>add_contact_alias();</div>
<div class="gmail_extra"><span class="" style="white-space:pre">      </span>}</div><div class="gmail_extra"><span class="" style="white-space:pre">    </span></div><div class="gmail_extra"><span class="" style="white-space:pre">     </span># A Transaction from a NATed Client to a NATed Client? Use the RTP-Proxy!</div>
<div class="gmail_extra"><span class="" style="white-space:pre">      </span>if (status=~"(180)|(183)|(2[0-9][0-9])") {</div><div class="gmail_extra"><span class="" style="white-space:pre">         </span>fix_nated_contact();</div>
<div class="gmail_extra"><span class="" style="white-space:pre">              </span>if (sdp_content()) {<br></div><div class="gmail_extra"><span class="" style="white-space:pre">                       </span>rtpproxy_answer();</div><div class="gmail_extra">
                }</div><div class="gmail_extra">        }</div><div class="gmail_extra">}</div><div class="gmail_extra"><br></div><div class="gmail_extra">If my problem could be caused by a kamalio miss-configuration could you please send me an example of configuration that should work with websockets, rtpproxy-ng->mediaproxy-ng in order to remove one possible cause?</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Thank you.<br></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">Best regards,</div><div class="gmail_extra">Mihai M<br><br><div class="gmail_quote">
On Wed, Jan 29, 2014 at 1:31 PM, Klaus Darilion <span dir="ltr"><<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hi!<br>
<br>
The problem is different SDP formats between normal SIP clients/gateways, and WebRTC clients.<br>
<br>
You have to instruct mediaproxy-ng to rewrite the SDP and do the conversion (encryption, ...).<br>
<br>
So either the rtpproxy_ng calls lack the commands for the "gatewaying", or the webrtc clients uses eg. an encryption which is not supported by mediaproxy-ng.<br>
<br>
Please also post the kamailio.cfg snippets when calling rtpproxy_ng and give details about your environment (browser, SIP client ...)<br>
<br>
regards<br>
Klaus<div><div class="h5"><br>
<br>
On 27.01.2014 22:38, Mihai Marin wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5">
Hello Sirs,<br>
I have a problem configuring kamailio with mediaproxy-ng and I'm asking<br>
for help.<br>
<br>
I managed to build everything, kamailio find support for mediaproxy-ng<br>
using rtpproxy-ng. When I'm trying to make a call from Web using my<br>
phone's internet provider to my computer's web I get 488 Not Acceptable<br>
Here. Swithing the caller I get no video.<br>
<br>
I have used the kamailio-advanced.cfg generated and added websocket<br>
support. The call in my network is working perfect.<br>
<br>
Can you help me with this?<br>
<br>
mediaproxy-ng log:<br>
mediaproxy-ng[14896]: Returning to SIP proxy:<br>
d7:createdi1390864117e7:<u></u>streamslld3:tag10:trhh9viigs6:<u></u>status34:known but<br>
unconfirmed peer<br>
address5:statsd3:rtpd8:<u></u>countersd7:packetsi0e5:<u></u>bytesi0e6:errorsi0ee12:peer addressd6:family4:IPv47:<u></u>address13:213.233.85.554:<u></u>porti48279ee23:advertised<br>
peer<br>
addressd6:family4:IPv47:<u></u>address13:213.233.85.554:<u></u>porti48279ee10:local<br>
porti30008ee4:rtcpd8:<u></u>countersd7:packetsi0e5:<u></u>bytesi0e6:errorsi0ee12:peer<br>
addressd6:family4:IPv47:<u></u>address13:213.233.85.554:<u></u>porti48280ee23:advertised<br>
peer<br>
addressd6:family4:IPv47:<u></u>address13:213.233.85.554:<u></u>porti48280ee10:local<br>
porti30009eeeed3:tag0:6:<u></u>status20:unknown peer<br>
address5:statsd3:rtpd8:<u></u>countersd7:packetsi0e5:<u></u>bytesi0e6:errorsi0ee12:peer addressd6:family4:IPv67:<u></u>address2:::4:porti0ee23:<u></u>advertised<br>
peer addressd6:family4:IPv67:<u></u>address2:::4:porti0ee10:local<br>
porti30010ee4:rtcpd8:<u></u>countersd7:packetsi0e5:<u></u>bytesi0e6:errorsi0ee12:peer<br>
addressd6:family4:IPv67:<u></u>address2:::4:porti0ee23:<u></u>advertised peer<br>
addressd6:family4:IPv67:<u></u>address2:::4:porti0ee10:local<br>
porti30011eeeeee6:totalsd5:<u></u>inputd3:rtpd7:packetsi0e5:<u></u>bytesi0e6:errorsi0ee4:rtcpd7:<u></u>packetsi0e5:bytesi0e6:<u></u>errorsi0eee6:outputd3:rtpd7:<u></u>packetsi0e5:bytesi0e6:<u></u>errorsi0ee4:rtcpd7:<u></u>packetsi0e5:bytesi0e6:<u></u>errorsi0eeee6:result2:oke<br>

<br>
<br>
kamailio:<br>
<br>
11(14926) ERROR: *** cfgtrace:<br>
c=[/usr/local/etc/kamailio/<u></u>kamailio-advanced.cfg] l=860 a=24<br>
n=rtpproxy_manage<br>
11(14926) DEBUG: rtpproxy-ng [rtpproxy.c:1333]: rtpp_function_call():<br>
proxy reply:<br>
d7:createdi1390864117e7:<u></u>streamslld3:tag10:trhh9viigs6:<u></u>status34:known but<br>
unconfirmed peer<br>
address5:statsd3:rtpd8:<u></u>countersd7:packetsi0e5:<u></u>bytesi0e6:errorsi0ee12:peer addressd6:family4:IPv47:<u></u>address13:213.233.85.554:<u></u>porti48279ee23:advertised<br>
peer<br>
addressd6:family4:IPv47:<u></u>address13:213.233.85.554:<u></u>porti48279ee10:local<br>
porti30008ee4:rtcpd8:<u></u>countersd7:packetsi0e5:<u></u>bytesi0e6:errorsi0ee12:peer<br>
addressd6:family4:IPv47:<u></u>address13:213.233.85.554:<u></u>porti48280ee23:advertised<br>
peer<br>
addressd6:family4:IPv47:<u></u>address13:213.233.85.554:<u></u>porti48280ee10:local<br>
porti30009eeeed3:tag0:6:<u></u>status20:unknown peer<br>
address5:statsd3:rtpd8:<u></u>countersd7:packetsi0e5:<u></u>bytesi0e6:errorsi0ee12:peer addressd6:family4:IPv67:<u></u>address2:::4:porti0ee23:<u></u>advertised<br>
peer addressd6:family4:IPv67:<u></u>address2:::4:porti0ee10:local<br>
porti30010ee4:rtcpd8:<u></u>countersd7:packetsi0e5:<u></u>bytesi0e6:errorsi0ee12:peer<br>
addressd6:family4:IPv67:<u></u>address2:::4:porti0ee23:<u></u>advertised peer<br>
addressd6:family4:IPv67:<u></u>address2:::4:porti0ee10:local<br>
porti30011eeeeee6:totalsd5:<u></u>inputd3:rtpd7:packetsi0e5:<u></u>bytesi0e6:errorsi0ee4:rtcpd7:<u></u>packetsi0e5:bytesi0e6:<u></u>errorsi0eee6:outputd3:rtpd7:<u></u>packetsi0e5:bytesi0e6:<u></u>errorsi0ee4:rtcpd7:<u></u>packetsi0e5:bytesi0e6:<u></u>errorsi0eeee6:result2:oke<br>

11(14926) ERROR: *** cfgtrace:<br>
c=[/usr/local/etc/kamailio/<u></u>kamailio-advanced.cfg] l=867 a=16 n=if<br>
11(14926) ERROR: *** cfgtrace:<br>
c=[/usr/local/etc/kamailio/<u></u>kamailio-advanced.cfg] l=862 a=24 n=is_request<br>
11(14926) ERROR: *** cfgtrace:<br>
c=[/usr/local/etc/kamailio/<u></u>kamailio-advanced.cfg] l=866 a=16 n=if<br>
11(14926) ERROR: *** cfgtrace:<br>
c=[/usr/local/etc/kamailio/<u></u>kamailio-advanced.cfg] l=863 a=24 n=has_totag<br>
11(14926) DEBUG: siputils [checks.c:103]: has_totag(): no totag<br>
11(14926) ERROR: *** cfgtrace:<br>
c=[/usr/local/etc/kamailio/<u></u>kamailio-advanced.cfg] l=864 a=25 n=add_rr_param<br>
11(14926) ERROR: *** cfgtrace:<br>
c=[/usr/local/etc/kamailio/<u></u>kamailio-advanced.cfg] l=873 a=16 n=if<br>
11(14926) ERROR: *** cfgtrace:<br>
c=[/usr/local/etc/kamailio/<u></u>kamailio-advanced.cfg] l=867 a=24 n=is_reply<br>
11(14926) ERROR: *** cfgtrace:<br>
c=[/usr/local/etc/kamailio/<u></u>kamailio-advanced.cfg] l=873 a=2 n=return<br>
11(14926) ERROR: *** cfgtrace:<br>
c=[/usr/local/etc/kamailio/<u></u>kamailio-advanced.cfg] l=1009 a=16 n=if<br>
11(14926) ERROR: *** cfgtrace:<br>
c=[/usr/local/etc/kamailio/<u></u>kamailio-advanced.cfg] l=989 a=24 n=t_is_canceled<br>
11(14926) DEBUG: tm [t_lookup.c:1071]: t_check_msg(): DEBUG:<br>
t_check_msg: msg id=2 global id=2 T start=0x7f62174df4e0<br>
11(14926) DEBUG: tm [t_lookup.c:1143]: t_check_msg(): DEBUG:<br>
t_check_msg: T already found!<br>
11(14926) DEBUG: tm [t_reply.c:1827]: relay_reply(): DEBUG: relay_reply:<br>
branch=0, save=0, relay=0 icode=0<br>
11(14926) DEBUG: <core> [msg_translator.c:2007]:<br>
generate_res_buf_from_sip_res(<u></u>):  old size: 397, new size: 305<br>
11(14926) DEBUG: <core> [msg_translator.c:2025]:<br>
generate_res_buf_from_sip_res(<u></u>): copied size: orig:125, new: 33, rest:<br>
272 msg=<br>
SIP/2.0 488 Not Acceptable Here<br>
Via: SIP/2.0/WS<br>
ebhg3v0qb6fm.invalid;rport=<u></u>1034;received=<a href="tel:213.233.85.55" value="+12132338555" target="_blank">213.233.85.55</a>;branch=<u></u>z9hG4bK8048296<br>
To: <<a href="mailto:sip%3Abob@93.187.138.214" target="_blank">sip:bob@93.187.138.214</a><br></div></div>
<mailto:<a href="mailto:sip%253Abob@93.187.138.214" target="_blank">sip%3Abob@93.187.138.<u></u>214</a>>>;tag=r6dc2287g9<div class="im"><br>
From: "Alice Test" <<a href="mailto:sip%3Aalice@93.187.138.214" target="_blank">sip:alice@93.187.138.214</a><br></div>
<mailto:<a href="mailto:sip%253Aalice@93.187.138.214" target="_blank">sip%3Aalice@93.187.<u></u>138.214</a>>>;tag=trhh9viigs<div class="im"><br>
Call-ID: fvgga4ikm8vrvuji0g0n<br>
CSeq: 6228 INVITE<br>
Content-Length: 0<br>
<br>
<br>
11(14926) DEBUG: websocket [ws_frame.c:713]: ws_frame_transmit(): Tx<br>
message:<br>
SIP/2.0 488 Not Acceptable Here<br>
Via: SIP/2.0/WS<br>
ebhg3v0qb6fm.invalid;rport=<u></u>1034;received=<a href="tel:213.233.85.55" value="+12132338555" target="_blank">213.233.85.55</a>;branch=<u></u>z9hG4bK8048296<br>
To: <<a href="mailto:sip%3Abob@93.187.138.214" target="_blank">sip:bob@93.187.138.214</a><br></div>
<mailto:<a href="mailto:sip%253Abob@93.187.138.214" target="_blank">sip%3Abob@93.187.138.<u></u>214</a>>>;tag=r6dc2287g9<div class="im"><br>
From: "Alice Test" <<a href="mailto:sip%3Aalice@93.187.138.214" target="_blank">sip:alice@93.187.138.214</a><br></div>
<mailto:<a href="mailto:sip%253Aalice@93.187.138.214" target="_blank">sip%3Aalice@93.187.<u></u>138.214</a>>>;tag=trhh9viigs<div class="im"><br>
Call-ID: fvgga4ikm8vrvuji0g0n<br>
CSeq: 6228 INVITE<br>
Content-Length: 0<br>
<br>
<br>
Thank you.<br>
<br>
Best regards,<br>
Mihai M<br>
<br>
<br></div>
______________________________<u></u>_________________<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" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<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" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</blockquote></div><br></div></div></div>