<div dir="ltr"><div><div><div><div><div>Hi Fred,<br><br></div>I can answer the 1st question only as I am not too clued up with mediaproxy module and server.<br><br></div>The pcscf_is_registered function is used to confirm that the UE you are sending the request from is actually registered to the IMS. If this is true, then the P-CSCF will assert the identity and forward the request to I-CSCF or S-CSCF, depending on state and request type. Normally the interface between UE and P-CSCF is via ipsec so it's almost a given that any traffic coming in on the ipsec pipe can be asserted. In the case without IPSEC however, there are various methods used to make sure the UE that is sending the request is actually registered to the IMS. There are a few algorithms that can be configured to check - ie you can check the contact host and port (this is only works for invites as MESSAGEs don't have contact headers generally), then you can check the received IP and port to make sure it's coming from a currently registered contact that used the same IP:PORT combination, etc, etc.<br><br></div><div>Alternatively you could remove the check and pass the request onto the S-CSCF without asserting (not per std though) and then challenge all "cost incurring" requests with a 407 on the S-CSCF.... One limitatoin of not getting this working correctly is that you will not be able to use the Rx interface unless you can match a contact on the P-CSCF (ims_qos module).... but perhaps you are not interested in Rx interface at the moment?<br></div><div><br></div>If you send me a trace (pcap) and logfile I'll take a look as soon as I get a chance and let you know what the problem is.<br><br></div>Cheers<br></div>Jason<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 28, 2016 at 9:24 PM, Fred Schulz <span dir="ltr"><<a href="mailto:FSchulz@blackned.de" target="_blank">FSchulz@blackned.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
Hi all,
<div><br>
</div>
<div>we’re just playing around with an IMS setup bases on kamailio. Therefore the kamailio is used as P-,I- and S-CSCF.</div>
<div>We where able to register two clients through all components.</div>
<div>As we wan to start a call session, the P-CSCF answers with „403 - Forbidden. You must register with an S-CSCF“…</div>
<div><br>
</div>
<div>I found this snippet in kamailio.cfg:</div>
<div><br>
</div>
<div></div>
<div><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;white-space:pre-wrap;background-color:rgb(255,255,255)">if (!pcscf_is_registered(</span><span style="font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;white-space:pre-wrap;color:rgb(24,54,145)"><span>"</span>location<span>"</span></span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;white-space:pre-wrap;background-color:rgb(255,255,255)">))
 { </span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;white-space:pre-wrap"></span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;white-space:pre-wrap;background-color:rgb(255,255,255)">send_reply(</span><span style="font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;white-space:pre-wrap;color:rgb(24,54,145)"><span>"</span>403<span>"</span></span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;white-space:pre-wrap;background-color:rgb(255,255,255)">,</span><span style="font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;white-space:pre-wrap;color:rgb(24,54,145)"><span>"</span>Forbidden
 - You must register first with a S-CSCF<span>“</span></span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;white-space:pre-wrap;background-color:rgb(255,255,255)">)</span><span style="font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;white-space:pre-wrap;color:rgb(150,152,150)">;
</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;white-space:pre-wrap"></span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;white-space:pre-wrap;background-color:rgb(255,255,255)">break</span><span style="font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;white-space:pre-wrap;color:rgb(150,152,150)">;
</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;white-space:pre-wrap;background-color:rgb(255,255,255)">}
</span></div>
<div><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;white-space:pre-wrap;background-color:rgb(255,255,255)"><br>
</span></div>
<div>Can one tell me what exactly the kamailio is checking there? As I figured out it is looking in database location table.</div>
<div><br>
</div>
<div>The table contains the registered users registered towards the IMS.</div>
<div><br>
</div>
<div>Another „problem“ we faced with is the rtpproxy. As the <span style="color:rgb(51,51,51);font-family:Consolas,'Andale Mono WT','Andale Mono','Bitstream Vera Sans Mono','Nimbus Mono L',Monaco,'Courier New',monospace;font-size:14px;background-color:rgb(251,250,249)">ngcp-mediaproxy-ng </span>is
 no longer available and replaced with rtpproxy we’re trying to use it. But kamailio said that the proxy isn’t answering the way expected.</div>
<div><br>
</div>
<div>
<div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(195,55,32)">
ERROR: rtpengine [rtpengine.c:1622]: rtpp_test(): proxy responded with invalid response</div>
</div>
<div><br>
</div>
<div>Any advise would be nice.</div>
<div><br>
</div>
<div>Thank you</div><span class="HOEnZb"><font color="#888888">
<div>Fred</div>
<div><br>
</div>
</font></span></div>

<br>_______________________________________________<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/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><table border="0" cellspacing="0" cellpadding="0" width="600" style="width:450pt"><tbody><tr><td valign="top" style="padding:0cm"><p></p></td></tr></tbody></table><table width="320px" border="0" cellpadding="0" cellspacing="0" style="font-family:monospace"><tbody><tr><td style="font-family:Arial,sans-serif;font-size:16px;color:rgb(117,179,67);line-height:18px;padding-left:15px;padding-top:10px"><strong>Jason Penton</strong></td></tr><tr><td style="font-family:Arial,sans-serif;font-size:16px;color:rgb(117,179,67);line-height:18px;padding-left:15px;padding-top:10px"><strong>Senior Manager: Applications and Services</strong></td></tr><tr><td style="font-family:Arial,sans-serif;font-size:16px;color:rgb(134,145,154);line-height:18px;padding-left:15px;padding-top:10px"><strong>Smile Communications Pty (Ltd)</strong></td></tr><tr><td><table cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td width="27%" style="font-family:Arial,sans-serif;font-size:16px;color:rgb(134,145,154);line-height:18px;padding-left:15px;padding-top:10px"><strong>Mobile:</strong></td><td width="73%" style="font-family:Arial,sans-serif;font-size:16px;color:rgb(134,145,154);line-height:18px;padding-left:10px;padding-top:10px">+27 (0) 83 283 7000</td></tr><tr><td style="font-family:Arial,sans-serif;font-size:16px;color:rgb(134,145,154);line-height:18px;padding-left:15px;padding-top:10px"><strong>Skype:</strong></td><td style="font-family:Arial,sans-serif;font-size:16px;color:rgb(134,145,154);line-height:18px;padding-left:10px;padding-top:10px">jason.barry.penton</td></tr></tbody></table></td></tr><tr><td style="font-family:Arial,sans-serif;font-size:16px;color:rgb(117,179,67);line-height:18px;padding-left:15px;padding-top:10px"><a href="mailto:name.surname@smilecoms.com" style="font-family:Arial;color:rgb(117,179,67);text-decoration:none" target="_blank">jason.penton@smilecoms.com</a></td></tr><tr><td style="font-family:Arial,sans-serif;font-size:16px;color:rgb(117,179,67);line-height:18px;padding-left:15px;padding-top:10px"><a href="http://www.smilecoms.com/" style="font-family:Arial;color:rgb(117,179,67)" target="_blank">www.smilecoms.com</a><br><img src="http://196.33.227.129/~smlcoms/sigs/pty/images/smile_signature_07_09.jpg" width="420" height="144"><br></td></tr></tbody></table></div><br></div></div>
</div>

<br>
<span><font color="#888888"><pre>This email is subject to the disclaimer of Smile Communications at <a href="http://www.smilecoms.com/home/email-disclaimer/" target="_blank">http://www.smilecoms.com/home/<WBR>email-disclaimer/</a><a href="http://www.smilecoms.com/disclaimer" target="_blank"></a></pre></font></span>