<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div><div></div><div>Hi all,</div><div><br></div><div>I have solved &nbsp;403 not registered problem by changing P_is registered and P_assert_identity function in registration.c file of openims pcscf code . &nbsp;There is cscf_get_ue_via function . It is is necessary to replace it with cscf_get_last_via.</div><div><br></div><div>Thanks for your support</div><div>Kaan</div><div><br></div><div><br></div><div><div style="font-size:8px;color:#575757">Samsung Mobile tarafından gönderildi</div></div></div><br><br><div>-------- Orjinal mesaj --------</div><div>Kimden: ag@ag-projects.com </div><div>Tarih:30 05 2014  01:11  (GMT+02:00) </div><div>Alıcı: Kaan Dandin <kaandandin@yahoo.com> </div><div>Cc: OpenSIPS users mailling list <users@lists.opensips.org> </div><div>Konu: Re: [OpenSIPS-Users] OpenSIPS Load Balancer and OpenIMS integration </div><div><br></div>Your questions make no sense, this is nobody is answering them.<div><br></div><div>Adrian</div><div><br><div><div><div>On 29 May 2014, at 17:20, Kaan Dandin &lt;<a href="mailto:kaandandin@yahoo.com">kaandandin@yahoo.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"><div><span></span>&nbsp;</div><div>Hi Bogdan,</div><div>&nbsp;</div><div>Previously, I have asked some questions to you about OpenSIPS and OpenIMS integration.</div><div>&nbsp;</div><div>&nbsp;</div><div>My last situation is as following. I have shared it also with OpenIMS workgroup. </div><div>Could you please help me about this problem?</div><div>&nbsp;</div><div>BR,</div><div>Kaan</div><div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"><div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"><div class="y_msg_container"><div id="yiv2054820065"><div style="font-family: Calibri, &quot;Segoe UI&quot;, Meiryo, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft JhengHei UI&quot;, &quot;Malgun Gothic&quot;,
 &quot;Khmer UI&quot;, &quot;Nirmala UI&quot;, Tunga, &quot;Lao UI&quot;, Ebrima, sans-serif; font-size: 12pt;" dir="ltr"><div>&nbsp;</div><div style="padding-top: 5px; border-top-color: rgb(229, 229, 229); border-top-width: 1px; border-top-style: solid;"><font style="line-height: 15pt; letter-spacing: 0.02em; font-family: Calibri, &quot;Segoe UI&quot;, Meiryo, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft JhengHei UI&quot;, &quot;Malgun Gothic&quot;, &quot;Khmer UI&quot;, &quot;Nirmala UI&quot;, Tunga, &quot;Lao UI&quot;, Ebrima, sans-serif; font-size: 11pt;"><br><b>Kime:</b>&nbsp;<a href="mailto:openimscore-users@lists.berlios.de">openimscore-users@lists.berlios.de</a></font></div><div>&nbsp;</div><div>Hi all,</div><div><div>&nbsp;</div><div>I am building a test                                      environment using OpenSIPS and                                      OpenIMS.</div><div>&nbsp;</div><div>As first step, I have successfuly installed                                      OpenIMS and able to make                                      registrations and start calls from       
                               Monster client.</div><div>&nbsp;</div><div>As second step, I am &nbsp;puttting                                      OpenSIPS as load balancer between the IMS client and                                      OpenIMS P-CSCF’s&nbsp; .</div><div>&nbsp;</div><div>I have installed OpenSIPS                                      and&nbsp;“OpenSIPS Control Panel”                                       successfully.</div><div>&nbsp;</div><div>I have&nbsp;inserted the                                      configuration to dispatcher&nbsp;module&nbsp;&nbsp;from&nbsp;OpenSIPS Control Panel .</div></div><div>&nbsp;</div><div>&nbsp;</div><div>I<span>&nbsp;can successfuly register to OpenIMS through            OpenSIPS dispatcher module.</span></div><div><div class="yiv2054820065ms__id28018" id="yiv2054820065yui_3_16_0_8_1401307675856_7" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;
 font-size: 12pt;"><div class="yiv2054820065ms__id28020" id="yiv2054820065yui_3_16_0_1_1401307675856_10940" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"><div class="yiv2054820065y_msg_container" id="yiv2054820065yui_3_16_0_1_1401307675856_10958"><div class="qtdSeparateBR"><br><br></div><div class="yiv2054820065yqt9494029338"><span>But when I try to make a call with Invite message            after registration through OpenSIPS,</span></div><div class="yiv2054820065yqt9494029338"><span>I get “403 Forbidden Not            registered” error.</span></div><div class="yiv2054820065yqt9494029338"><span></span>&nbsp;</div><div class="yiv2054820065yqt9494029338"><span></span>&nbsp;</div><div class="yiv2054820065yqt9494029338"><span>I have found a&nbsp; thread in OpenIMS mailing group with a similar problem .</span></div><div class="yiv2054820065yqt9494029338"><span>Could you please help me if
 there are any solution addressed for this issue until now.</span></div><div class="yiv2054820065yqt9494029338"><span></span>&nbsp;</div><div class="yiv2054820065yqt9494029338"><span><a title="http://lists.berlios.de/pipermail/openimscore-cscf/2010-January/001972.html" href="http://lists.berlios.de/pipermail/openimscore-cscf/2010-January/001972.html" target="_blank" rel="nofollow">http://lists.berlios.de/pipermail/openimscore-cscf/2010-January/001972.html</a></span></div><div class="yiv2054820065yqt9494029338"><span></span>&nbsp;</div><div class="yiv2054820065yqt9494029338"><span></span>&nbsp;</div><div class="yiv2054820065yqt9494029338"><span></span>&nbsp;</div><div class="yiv2054820065yqt9494029338"><span>Error message coming from P-CSCF is following although the user is already successfully registered.</span></div><div class="yiv2054820065yqt9494029338"><span></span>&nbsp;</div><div class="yiv2054820065yqt9494029338"><span>No.&nbsp;&nbsp;&nbsp;&nbsp;
 Time&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Destination&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Protocol Info<br>&nbsp;&nbsp;&nbsp; 415 220.825115&nbsp; 192.168.2.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.2.141&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Status: 403 Forbidden - Not Registered! You must register first with a S-CSCF</span></div><div>&nbsp;</div><div class="yiv2054820065yqt9494029338">&nbsp;</div><span><div class="yiv2054820065yqt9494029338">Frame 415 (735 bytes on wire, 735 bytes captured)<br>Ethernet II, Src: Vmware_27:3f:bb (00:0c:29:27:3f:bb), Dst: Vmware_22:e0:4c (00:0c:29:22:e0:4c)<br>&nbsp;&nbsp;&nbsp; Destination: Vmware_22:e0:4c (00:0c:29:22:e0:4c)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Address: Vmware_22:e0:4c
 (00:0c:29:22:e0:4c)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .... ...0 .... .... .... .... = IG bit: Individual address (unicast)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)<br>&nbsp;&nbsp;&nbsp; Source: Vmware_27:3f:bb (00:0c:29:27:3f:bb)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Address: Vmware_27:3f:bb (00:0c:29:27:3f:bb)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .... ...0 .... .... .... .... = IG bit: Individual address (unicast)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)<br>&nbsp;&nbsp;&nbsp; Type: IP (0x0800)<br>Internet Protocol, Src: 192.168.2.1 (192.168.2.1), Dst: 192.168.2.141 (192.168.2.141)<br>&nbsp;&nbsp;&nbsp; Version: 4<br>&nbsp;&nbsp;&nbsp; Header length: 20 bytes<br>&nbsp;&nbsp;&nbsp; Differentiated Services Field: 0x10 (DSCP 0x04: Unknown DSCP; ECN:
 0x00)<br>&nbsp;&nbsp;&nbsp; Total Length: 721<br>&nbsp;&nbsp;&nbsp; Identification: 0x0000 (0)<br>&nbsp;&nbsp;&nbsp; Flags: 0x04 (Don't Fragment)<br>&nbsp;&nbsp;&nbsp; Fragment offset: 0<br>&nbsp;&nbsp;&nbsp; Time to live: 64<br>&nbsp;&nbsp;&nbsp; Protocol: UDP (0x11)<br>&nbsp;&nbsp;&nbsp; Header checksum: 0xb22d [correct]<br>&nbsp;&nbsp;&nbsp; Source: 192.168.2.1 (192.168.2.1)<br>&nbsp;&nbsp;&nbsp; Destination: 192.168.2.141 (192.168.2.141)<br>User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)<br>&nbsp;&nbsp;&nbsp; Source port: sip (5060)<br>&nbsp;&nbsp;&nbsp; Destination port: sip (5060)<br>&nbsp;&nbsp;&nbsp; Length: 701<br>&nbsp;&nbsp;&nbsp; Checksum: 0x3853 [correct]<br>Session Initiation Protocol<br>&nbsp;&nbsp;&nbsp; Status-Line: SIP/2.0 403 Forbidden - Not Registered! You must register first with a S-CSCF<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Status-Code: 403<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [Resent Packet:
 False]<br>&nbsp;&nbsp;&nbsp; Message Header<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Call-ID: <a title="mailto:a6f55ffd6540b7c6f70d03d6eb1ceb5f@192.168.2.10" href="mailto:a6f55ffd6540b7c6f70d03d6eb1ceb5f@192.168.2.10" target="_blank" rel="nofollow" ymailto="mailto:a6f55ffd6540b7c6f70d03d6eb1ceb5f@192.168.2.10">a6f55ffd6540b7c6f70d03d6eb1ceb5f@192.168.2.10</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CSeq: 182 INVITE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; From: &lt;<a href="sip:alice@open-ims.test">sip:alice@open-ims.test</a>&gt;;tag=1219<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIP from address: <a href="sip:alice@open-ims.test">sip:alice@open-ims.test</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIP tag: 1219<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To: &lt;<a href="sip:bob@open-ims.test">sip:bob@open-ims.test</a>&gt;;tag=9ad9f37f74332c1e2a4045522a5bab87.f34e<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIP to address:
 <a href="sip:bob@open-ims.test">sip:bob@open-ims.test</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIP tag: 9ad9f37f74332c1e2a4045522a5bab87.f34e<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Via: SIP/2.0/UDP 192.168.2.141:5060;branch=z9hG4bKe935.85ea0cd2.0;rport=5060<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Via: SIP/2.0/UDP 192.168.2.10:5062;branch=z9hG4bK1240af306e6063ca2275658fb7f8b4f9<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Server: Sip EXpress router (2.1.0-dev1 OpenIMSCore (i386/linux))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Content-Length: 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Warning: 392 192.168.2.1:5060 "Noisy feedback tells:&nbsp; pid=12954 req_src_ip=192.168.2.141 req_src_port=5060 in_uri=sip:bob@open-ims.test out_uri=sip:bob@open-ims.test via_cnt==2"<br></div><div class="yiv2054820065yqt9494029338">&nbsp;</div><div class="yiv2054820065yqt9494029338">Previous thread is following:</div></span><div class="yiv2054820065yqt9494029338"><span><h1>[OpenIMSCore-CSCF] !P_is_registered()</h1><b>"Martínez García, Rebeca"</b>     <a title="mailto:openimscore-cscf%40lists.berlios.de?Subject=Re%3A%20%5BOpenIMSCore-CSCF%5D%20%21P_is_registered%28%29&amp;In-Reply-To=%3C697FA5D6BAA3BD47961272D9916B6A6E0EDA4C%40MADARRMAIL7.indra.es%3E" href="mailto:openimscore-cscf%40lists.berlios.de?Subject=Re%3A%20%5BOpenIMSCore-CSCF%5D%20%21P_is_registered%28%29&amp;In-Reply-To=%3C697FA5D6BAA3BD47961272D9916B6A6E0EDA4C%40MADARRMAIL7.indra.es%3E" target="_blank" rel="nofollow" ymailto="mailto:openimscore-cscf%40lists.berlios.de?Subject=Re%3A%20%5BOpenIMSCore-CSCF%5D%20%21P_is_registered%28%29&amp;In-Reply-To=%3C697FA5D6BAA3BD47961272D9916B6A6E0EDA4C%40MADARRMAIL7.indra.es%3E"><font color="#0066cc">remartinez at indra.es        </font></a><br><i>Tue Jan 19 13:54:05 CET 2010</i>     <ul style="padding-top: 0px; padding-bottom: 0px; margin-top: 0px; margin-bottom: 0px;
 list-style-type: disc;"><li>Previous message: <a title="http://lists.berlios.de/pipermail/openimscore-cscf/2010-January/001971.html" href="http://lists.berlios.de/pipermail/openimscore-cscf/2010-January/001971.html" target="_blank" rel="nofollow"><font color="#0066cc">[OpenIMSCore-CSCF] !P_is_registered() </font></a></li><li>Next message: <a title="http://lists.berlios.de/pipermail/openimscore-cscf/2010-January/001973.html" href="http://lists.berlios.de/pipermail/openimscore-cscf/2010-January/001973.html" target="_blank" rel="nofollow"><font color="#0066cc">[OpenIMSCore-CSCF] p-cscf crash on: FIFO open for read failed &gt; Too        many open files </font></a></li><li><b>Messages sorted by:</b>               <a title="http://lists.berlios.de/pipermail/openimscore-cscf/2010-January/date.html#1972" href="http://lists.berlios.de/pipermail/openimscore-cscf/2010-January/date.html#1972" target="_blank" rel="nofollow"><font color="#0066cc">[ date ]</font></a>       
        <a title="http://lists.berlios.de/pipermail/openimscore-cscf/2010-January/thread.html#1972" href="http://lists.berlios.de/pipermail/openimscore-cscf/2010-January/thread.html#1972" target="_blank" rel="nofollow"><font color="#0066cc">[ thread ]</font></a>               <a title="http://lists.berlios.de/pipermail/openimscore-cscf/2010-January/subject.html#1972" href="http://lists.berlios.de/pipermail/openimscore-cscf/2010-January/subject.html#1972" target="_blank" rel="nofollow"><font color="#0066cc">[ subject ]</font></a>               <a title="http://lists.berlios.de/pipermail/openimscore-cscf/2010-January/author.html#1972" href="http://lists.berlios.de/pipermail/openimscore-cscf/2010-January/author.html#1972" target="_blank" rel="nofollow"><font color="#0066cc">[ author ]</font></a>          </li></ul><div class="hr" style="margin: 5px 0px; padding: 0px; border: 1px solid rgb(204, 204, 204); height: 0px; line-height: 0; font-size: 0px;"  readonly="true"></div> <pre>Hello Franz,

I was not aware of these initiatives and, as I have been following TISPAN recommendations all the time, I took a look at TS 182 025. 
Nevertheless, we are not trying to implement a NGCN but to only develop a CNG. I will explain myself:

We had OpenIMSCore installed in 4 servers perfectly running and clients were able to register and call each other without problems 
(we had it configured for clients to send the REGISTER message directly to the P-CSCF).

The next step in our testbed was to create a group of private clients behind a gateway (CNG) which connected to OpenIMSCore. So the scenario 
is public clients (one machine at the moment) connect directly to P-CSCF and private clients do it via the CNG.

The development of the CNG has been fine until we tried to make work "CNG SIP Proxy/B2BUA" function (TS 183 003), which permits 
internal calls. The most simple configuration is to make it work as a Proxy, which implies that when seeing a REGISTER
message it saves locally their location and forwards the message to the P-CSCF (the rest of messages are forwarded in a transparent fashion).

But the problem is not in the register process, because private clients register without problems... the problem is when calling 
a public client. SER receives an INVITE and it forwards directly the message to the P-CSCF but it puts its Via.

Then the "cscf_get_ue_via" function inside the "P_is_registered()" one selects the first via (the one introduced by SER):
{
02197     struct via_body *vb=0;
02198         
02199     if (msg-&gt;first_line.type==SIP_REQUEST) vb = cscf_get_first_via(msg,0);
02200     else vb = cscf_get_last_via(msg);
02201     
02202     if (!vb) return 0;
02203     
02204     if (vb-&gt;port == 0) vb-&gt;port=5060;
02205     return vb;  
02206 }

and the P-CSCF rejects the INVITE because the "user is not registered".

Why does the Proxy-CSCF selects the first Via if it is a SIP REQUEST? (Just asking)

Thanks in advance,
Rebeca Martinez

</pre></span></div><div class="yiv2054820065yqt9494029338"><span>BR,</span></div><div class="yiv2054820065yqt9494029338"><span>Kaan</span></div><blockquote class="yiv2054820065yqt9494029338" style="margin-top: 0px; margin-bottom: 0px;"><div class="yiv2054820065ms__id28027" style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);"><span></span>&nbsp;</div><div class="yiv2054820065ms__id28027" style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);"><span></span>&nbsp;</div><div class="yiv2054820065ms__id28027" style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);"><span></span>&nbsp;</div><span></span><div class="yiv2054820065ms__id28027" style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);">&nbsp;</div><div class="yiv2054820065ms__id28027" style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);">&nbsp;</div><div class="yiv2054820065ms__id28027" style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);">&nbsp;</div><div class="yiv2054820065qtdSeparateBR" style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);"><br clear="none"><br clear="none"><br clear="none">&nbsp;</div><div class="yiv2054820065yahoo_quoted" id="yiv2054820065yui_3_16_0_1_1401307675856_10967" style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt; display: block; background-color: rgb(255, 255, 255);"><div class="yiv2054820065ms__id28029" id="yiv2054820065yui_3_16_0_1_1401307675856_10966" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"><div class="yiv2054820065ms__id28030" id="yiv2054820065yui_3_16_0_1_1401307675856_10965" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"><div id="yiv2054820065yui_3_16_0_1_1401307675856_10964"><div id="yiv2054820065"><div id="yiv2054820065yui_3_16_0_1_1401307675856_10970"><blockquote style="margin-top: 0px; margin-bottom: 0px;">&nbsp;<br clear="none"><div>,</div><div><br clear="none">
<br clear="all"> 



</div></blockquote></div></div></div></div></div></div></blockquote></div></div></div></div></div></div><br><br></div> </div> </div>  </div></div>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br></blockquote></div><br></div></div></body>