Hi,<div><br></div><div>one way to achieve this, would be to modify the following block:</div><div>Your Block now:</div><div><span class="Apple-style-span" style="font-family: monospace; white-space: pre-wrap; font-size: medium; ">        ##### ----- AUTHENTICATE ----------------------------------------------</span></div>

<div><span class="Apple-style-span" style="font-family: &#39;Times New Roman&#39;; font-size: medium; "><pre style="word-wrap: break-word; white-space: pre-wrap; ">        if(!is_domain_local(“$fd”))
        {
                if(!is_domain_local(“$rd”))
                {
                        xlog(“+++++ bad from fd from IP: $fd\n”);
                        
                        xlog(“+++++ bad from $rd from IP: $rd \n”);

                        sl_send_reply(“403”, “Proxy forbidden”);
                        exit;
                }
        } else {
                $var(u) = $fU;
                $var(d) = $fd;
                $var(p) = 0;
                if(!route(9))
                {
                        sl_send_reply(“404”, “Non-local user”);
                        exit;
                }
                if(!route(8))
                {
                        sl_send_reply(“404”, “No user profile”);
                        exit;
                }
                if($avp(i:323)==1
                        || $avp(i:323)==2)
                {
                        sl_send_reply(“403”, “Not allowed”);
                        exit;
                }
                route(6);
                setflag(4);
        }</pre><pre style="word-wrap: break-word; white-space: pre-wrap; ">Change this to:</pre><pre style="word-wrap: break-word; white-space: pre-wrap; "># Only Authenticate INVITE&#39;s</pre><pre style="word-wrap: break-word; white-space: pre-wrap; ">

if (method == &quot;INVITE&quot;) {</pre><pre style="word-wrap: break-word; white-space: pre-wrap; ">(... insert your original block here ...)</pre><pre style="word-wrap: break-word; white-space: pre-wrap; ">}</pre><pre style="word-wrap: break-word; white-space: pre-wrap; ">

<br></pre><pre style="word-wrap: break-word; white-space: pre-wrap; ">Carsten</pre><pre style="word-wrap: break-word; white-space: pre-wrap; "><br></pre></span></div><div><br><div class="gmail_quote">2011/5/18 hala alramli <span dir="ltr">&lt;<a href="mailto:doreme202002@yahoo.com">doreme202002@yahoo.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit"><br><br><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px">

<div><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit"><div><font face="arial" size="2">thanks for your reply </font><span style="font-size:13px">Klaus</span><span style="font-size:small"> ,attached my config file could you please take a look ,i found the line that send that replay  but i do not know why .? could you help me i am stuck</span></div>

<div><font face="arial" size="2"><br></font></div><div><font size="2"><br></font></div><div><font face="arial" size="2"><br></font></div><div style="font-family:arial;font-size:10pt"><br></div><br><font face="arial" size="2">--- </font><b style="font-family:arial;font-size:10pt">Mer 18/5/11, Klaus Darilion <i>&lt;<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>&gt;</i></b><font face="arial" size="2"> ha scritto:</font><br>

<blockquote style="font-family:arial;font-size:10pt;border-left-width:2px;border-left-style:solid;border-left-color:rgb(16, 16, 255);margin-left:5px;padding-left:5px"><br>Da: Klaus Darilion &lt;<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>&gt;<br>

Oggetto: Re: [SR-Users] 403 Proxy forbidden replay for invite that send sip gateway<br>A: <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>Data: Mercoledě
 18 maggio 2011, 13:04<br><br><div>Check your config and verify where 403 is sent. You have something like<br><br>sl_send_reply(&quot;403&quot;,&quot;Proxy forbidden&quot;) in your config.<br><br>regards<br>Klaus<br><br>

Am 18.05.2011 10:48, schrieb hala alramli:<br>&gt; Hello every body,<br>&gt; could you help me ?<br>&gt; <br>&gt; i bought Geographical DID numbers from gateway provider ,  to  receive<br>&gt; calls from pstn   <br>&gt; <br>

&gt; my problem that when gateway send invite my proxy send 403 forbidden ,i<br>&gt; dont know why what is wrong ,any help please.<br>&gt; <br>&gt; this is a track for th gateway invite.<br>&gt; <br>&gt; my proxy ip:79.12.254.153<br>

&gt; gateway IP :77.239.128.10<br>&gt; my geographical number :0698962030<br>&gt; <br>&gt; <br>&gt; <br>&gt;  <br>&gt; <br>&gt; INVITE sip:0698962030@79.12.254.153:5060;user=phone SIP/2.0<br>&gt; <br>&gt; Via: SIP/2.0/UDP
 77.239.128.10:5060;branch=z9hG4bKf89p48m8dkuco1tumbnfaemc44<br>&gt; <br>&gt; From:<br>&gt; &lt;sip:0289089500@10.39.1.16:5060;user=phone&gt;;tag=SDml08d01--45026-1f4d3a5-203bbf09-1f4d3a5<br>&gt; <br>&gt; To: &lt;sip:0698962030@10.39.6.207:5060;user=phone&gt;<br>

&gt; <br>&gt; Call-ID: SDml08d01-daae53b1c06b7367e53d68ad67a63d13-ao92061<br>&gt; <br>&gt; CSeq: 1 INVITE<br>&gt; <br>&gt; User-Agent: CS2000_NGSS/8.0<br>&gt; <br>&gt; Remote-Party-ID: &lt;<a href="mailto:sip%3A0289089500@10.39.1.16" target="_blank">sip:0289089500@10.39.1.16</a>;user=phone&gt;; party=calling;<br>

&gt; privacy=off; screen=yes<br>&gt; <br>&gt; Allow: ACK,BYE,CANCEL,INVITE,OPTIONS,INFO,SUBSCRIBE,REFER,NOTIFY,PRACK<br>&gt; <br>&gt; P-Asserted-Identity: &lt;<a href="mailto:sip%3A0289089500@10.39.1.16" target="_blank">sip:0289089500@10.39.1.16</a>;user=phone&gt;<br>

&gt; <br>&gt; Max-Forwards: 69<br>&gt; <br>&gt; Contact: &lt;sip:77.239.128.10:5060;transport=UDP&gt;<br>&gt; <br>&gt; Supported: 100rel<br>&gt; <br>&gt; Content-Type: application/sdp<br>&gt; <br>&gt; Content-Length: 236<br>

&gt; <br>&gt;  <br>&gt;
 <br>&gt; v=0<br>&gt; <br>&gt; o=PVG 1305215180830 1305215180830 IN IP4 77.239.128.10<br>&gt; <br>&gt; s=-<br>&gt; <br>&gt; p=+1 6135555555<br>&gt; <br>&gt; c=IN IP4 77.239.128.10<br>&gt; <br>&gt; t=0 0<br>&gt; <br>&gt; m=audio 49264 RTP/AVP 18 8 0 13 101<br>

&gt; <br>&gt; a=rtpmap:101 telephone-event/8000<br>&gt; <br>&gt; a=fmtp:101 0-15<br>&gt; <br>&gt; a=ptime:20<br>&gt; <br>&gt; a=fmtp:18 annexb=no<br>&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>&gt; <br>&gt; SIP/2.0 403 Proxy forbidden<br>

&gt; <br>&gt; Via: SIP/2.0/UDP<br>&gt; 77.239.128.10:5060;branch=z9hG4bKf89p48m8dkuco1tumbnfaemc44;rport=5060;received=77.239.128.10<br>&gt; <br>&gt; From:<br>&gt; &lt;sip:0289089500@10.39.1.16:5060;user=phone&gt;;tag=SDml08d01--45026-1f4d3a5-203bbf09-1f4d3a5<br>

&gt; <br>&gt; To:<br>&gt; &lt;sip:0698962030@10.39.6.207:5060;user=phone&gt;;tag=4471d251144740103ef2d5e5631bdc66.799c<br>&gt; <br>&gt; Call-ID:
 SDml08d01-daae53b1c06b7367e53d68ad67a63d13-ao92061<br>&gt; <br>&gt; CSeq: 1 INVITE<br>&gt; <br>&gt; Server: Kamailio (1.4.4-notls (x86_64/linux))<br>&gt; <br>&gt; Content-Length: 0<br>&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>

&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>&gt; <br>&gt; ACK sip:0698962030@79.12.254.153:5060;user=phone SIP/2.0<br>

&gt; <br>&gt; Via: SIP/2.0/UDP<br>&gt; 77.239.128.10:5060;branch=z9hG4bKf89p48m8dkuco1tumbnfaemc44;rport=5060;received=77.239.128.10<br>&gt; <br>&gt; From:<br>&gt; &lt;sip:0289089500@10.39.1.16:5060;user=phone&gt;;tag=SDml08d01--45026-1f4d3a5-203bbf09-1f4d3a5<br>

&gt; <br>&gt; To:<br>&gt; &lt;sip:0698962030@10.39.6.207:5060;user=phone&gt;;tag=4471d251144740103ef2d5e5631bdc66.799c<br>&gt; <br>&gt; Call-ID: SDml08d01-daae53b1c06b7367e53d68ad67a63d13-ao92061<br>&gt;
 <br>&gt; CSeq: 1 ACK<br>&gt; <br>&gt; Max-Forwards: 69<br>&gt; <br>&gt; Content-Length: 0<br>&gt; <br>&gt;  <br>&gt; <br>&gt; <br>&gt;  <br>&gt; <br>&gt; INVITE sip:0698962030@79.12.254.153:5060;user=phone SIP/2.0<br>&gt; <br>

&gt; Via: SIP/2.0/UDP 77.239.128.10:5060;branch=z9hG4bK4t5g11q75ccl8k5vnbgabnlct2<br>&gt; <br>&gt; From:<br>&gt; &lt;sip:026683011@10.39.1.16:5060;user=phone&gt;;tag=SDa7sn401--45026-1f4d3ad-69943699-1f4d3ad<br>&gt; <br>
&gt; To: &lt;sip:0698962030@10.39.6.207:5060;user=phone&gt;<br>
&gt; <br>&gt; Call-ID: SDa7sn401-c505e58e02da5e4449475a8d28dbcb07-ao92061<br>&gt; <br>&gt; CSeq: 1 INVITE<br>&gt; <br>&gt; User-Agent: CS2000_NGSS/8.0<br>&gt; <br>&gt; Remote-Party-ID: &lt;<a href="mailto:sip%3A026683011@10.39.1.16" target="_blank">sip:026683011@10.39.1.16</a>;user=phone&gt;; party=calling;<br>

&gt; privacy=off; screen=yes<br>&gt; <br>&gt; Allow: ACK,BYE,CANCEL,INVITE,OPTIONS,INFO,SUBSCRIBE,REFER,NOTIFY,PRACK<br>&gt; <br>&gt; P-Asserted-Identity:
 &lt;<a href="mailto:sip%3A026683011@10.39.1.16" target="_blank">sip:026683011@10.39.1.16</a>;user=phone&gt;<br>&gt; <br>&gt; Max-Forwards: 69<br>&gt; <br>&gt; Contact: &lt;sip:77.239.128.10:5060;transport=UDP&gt;<br>&gt; <br>

&gt; Supported: 100rel<br>&gt; <br>&gt; Content-Type: application/sdp<br>&gt; <br>&gt; Content-Length: 236<br>&gt; <br>&gt;  <br>&gt; <br>&gt; v=0<br>&gt; <br>&gt; o=PVG 1305215458700 1305215458700 IN IP4 77.239.128.10<br>

&gt; <br>&gt; s=-<br>&gt; <br>&gt; p=+1 6135555555<br>&gt; <br>&gt; c=IN IP4 77.239.128.10<br>&gt; <br>&gt; t=0 0<br>&gt; <br>&gt; m=audio 41892 RTP/AVP 18 8 0 13 101<br>&gt; <br>&gt; a=rtpmap:101 telephone-event/8000<br>

&gt; <br>&gt; a=fmtp:101 0-15<br>&gt; <br>&gt; a=ptime:20<br>&gt; <br>&gt; a=fmtp:18 annexb=no<br>&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>&gt; <br>&gt; SIP/2.0 403 Proxy forbidden<br>&gt; <br>&gt; Via: SIP/2.0/UDP<br>

&gt; 77.239.128.10:5060;branch=z9hG4bK4t5g11q75ccl8k5vnbgabnlct2;rport=5060;received=77.239.128.10<br>&gt;
 <br>&gt; From:<br>&gt; &lt;sip:026683011@10.39.1.16:5060;user=phone&gt;;tag=SDa7sn401--45026-1f4d3ad-69943699-1f4d3ad<br>&gt; <br>&gt; To:<br>&gt; &lt;sip:0698962030@10.39.6.207:5060;user=phone&gt;;tag=4471d251144740103ef2d5e5631bdc66.fe6e<br>

&gt; <br>&gt; Call-ID: SDa7sn401-c505e58e02da5e4449475a8d28dbcb07-ao92061<br>&gt; <br>&gt; CSeq: 1 INVITE<br>&gt; <br>&gt; Server: Kamailio (1.4.4-notls (x86_64/linux))<br>&gt; <br>&gt; Content-Length: 0<br>&gt; <br>&gt;  <br>

&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>&gt; <br>&gt; sip:0698962030@79.12.254.153:5060;user=phone SIP/2.0<br>

&gt; <br>&gt; Via: SIP/2.0/UDP<br>&gt; 77.239.128.10:5060;branch=z9hG4bK4t5g11q75ccl8k5vnbgabnlct2;rport=5060;received=77.239.128.10<br>&gt; <br>&gt; From:<br>&gt;
 &lt;sip:026683011@10.39.1.16:5060;user=phone&gt;;tag=SDa7sn401--45026-1f4d3ad-69943699-1f4d3ad<br>&gt; <br>&gt; To:<br>&gt; &lt;sip:0698962030@10.39.6.207:5060;user=phone&gt;;tag=4471d251144740103ef2d5e5631bdc66.fe6e<br>

&gt; <br>&gt; Call-ID: SDa7sn401-c505e58e02da5e4449475a8d28dbcb07-ao92061<br>&gt; <br>&gt; CSeq: 1 ACK<br>&gt; <br>&gt; Max-Forwards: 69<br>&gt; <br>&gt; Content-Length: 0<br>&gt; <br>&gt;  <br>&gt; <br>&gt;  <br>&gt; <br>

&gt;  <br>&gt; <br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>&gt; <a rel="nofollow">sr-users@lists.sip-router.org</a><br>

&gt; <a rel="nofollow" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br><br>_______________________________________________<br>

SIP Express Router (SER) and Kamailio
 (OpenSER) - sr-users mailing list<br><a rel="nofollow">sr-users@lists.sip-router.org</a><br><a rel="nofollow" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>

</div></blockquote></td></tr></tbody></table></div></blockquote></td></tr></tbody></table><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" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Carsten Bock<br><a href="http://www.ng-voice.com" target="_blank">http://www.ng-voice.com</a><br>mailto:<a href="mailto:carsten@ng-voice.com" target="_blank">carsten@ng-voice.com</a><br>

<br>Schomburgstr. 80<br>22767 Hamburg<br>Germany<br><br>Mobile +49 179 2021244<br>Office +49 40 34927219<br>Fax +49 40 34927220<br>
</div>