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: 'Times New Roman'; 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's</pre><pre style="word-wrap: break-word; white-space: pre-wrap; ">
if (method == "INVITE") {</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"><<a href="mailto:doreme202002@yahoo.com">doreme202002@yahoo.com</a>></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><<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>></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 <<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>><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("403","Proxy forbidden") in your config.<br><br>regards<br>Klaus<br><br>
Am 18.05.2011 10:48, schrieb hala alramli:<br>> Hello every body,<br>> could you help me ?<br>> <br>> i bought Geographical DID numbers from gateway provider , to receive<br>> calls from pstn <br>> <br>
> my problem that when gateway send invite my proxy send 403 forbidden ,i<br>> dont know why what is wrong ,any help please.<br>> <br>> this is a track for th gateway invite.<br>> <br>> my proxy ip:79.12.254.153<br>
> gateway IP :77.239.128.10<br>> my geographical number :0698962030<br>> <br>> <br>> <br>> <br>> <br>> INVITE sip:0698962030@79.12.254.153:5060;user=phone SIP/2.0<br>> <br>> Via: SIP/2.0/UDP
77.239.128.10:5060;branch=z9hG4bKf89p48m8dkuco1tumbnfaemc44<br>> <br>> From:<br>> <sip:0289089500@10.39.1.16:5060;user=phone>;tag=SDml08d01--45026-1f4d3a5-203bbf09-1f4d3a5<br>> <br>> To: <sip:0698962030@10.39.6.207:5060;user=phone><br>
> <br>> Call-ID: SDml08d01-daae53b1c06b7367e53d68ad67a63d13-ao92061<br>> <br>> CSeq: 1 INVITE<br>> <br>> User-Agent: CS2000_NGSS/8.0<br>> <br>> Remote-Party-ID: <<a href="mailto:sip%3A0289089500@10.39.1.16" target="_blank">sip:0289089500@10.39.1.16</a>;user=phone>; party=calling;<br>
> privacy=off; screen=yes<br>> <br>> Allow: ACK,BYE,CANCEL,INVITE,OPTIONS,INFO,SUBSCRIBE,REFER,NOTIFY,PRACK<br>> <br>> P-Asserted-Identity: <<a href="mailto:sip%3A0289089500@10.39.1.16" target="_blank">sip:0289089500@10.39.1.16</a>;user=phone><br>
> <br>> Max-Forwards: 69<br>> <br>> Contact: <sip:77.239.128.10:5060;transport=UDP><br>> <br>> Supported: 100rel<br>> <br>> Content-Type: application/sdp<br>> <br>> Content-Length: 236<br>
> <br>> <br>>
<br>> v=0<br>> <br>> o=PVG 1305215180830 1305215180830 IN IP4 77.239.128.10<br>> <br>> s=-<br>> <br>> p=+1 6135555555<br>> <br>> c=IN IP4 77.239.128.10<br>> <br>> t=0 0<br>> <br>> m=audio 49264 RTP/AVP 18 8 0 13 101<br>
> <br>> a=rtpmap:101 telephone-event/8000<br>> <br>> a=fmtp:101 0-15<br>> <br>> a=ptime:20<br>> <br>> a=fmtp:18 annexb=no<br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> SIP/2.0 403 Proxy forbidden<br>
> <br>> Via: SIP/2.0/UDP<br>> 77.239.128.10:5060;branch=z9hG4bKf89p48m8dkuco1tumbnfaemc44;rport=5060;received=77.239.128.10<br>> <br>> From:<br>> <sip:0289089500@10.39.1.16:5060;user=phone>;tag=SDml08d01--45026-1f4d3a5-203bbf09-1f4d3a5<br>
> <br>> To:<br>> <sip:0698962030@10.39.6.207:5060;user=phone>;tag=4471d251144740103ef2d5e5631bdc66.799c<br>> <br>> Call-ID:
SDml08d01-daae53b1c06b7367e53d68ad67a63d13-ao92061<br>> <br>> CSeq: 1 INVITE<br>> <br>> Server: Kamailio (1.4.4-notls (x86_64/linux))<br>> <br>> Content-Length: 0<br>> <br>> <br>> <br>> <br>
> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> ACK sip:0698962030@79.12.254.153:5060;user=phone SIP/2.0<br>
> <br>> Via: SIP/2.0/UDP<br>> 77.239.128.10:5060;branch=z9hG4bKf89p48m8dkuco1tumbnfaemc44;rport=5060;received=77.239.128.10<br>> <br>> From:<br>> <sip:0289089500@10.39.1.16:5060;user=phone>;tag=SDml08d01--45026-1f4d3a5-203bbf09-1f4d3a5<br>
> <br>> To:<br>> <sip:0698962030@10.39.6.207:5060;user=phone>;tag=4471d251144740103ef2d5e5631bdc66.799c<br>> <br>> Call-ID: SDml08d01-daae53b1c06b7367e53d68ad67a63d13-ao92061<br>>
<br>> CSeq: 1 ACK<br>> <br>> Max-Forwards: 69<br>> <br>> Content-Length: 0<br>> <br>> <br>> <br>> <br>> <br>> <br>> INVITE sip:0698962030@79.12.254.153:5060;user=phone SIP/2.0<br>> <br>
> Via: SIP/2.0/UDP 77.239.128.10:5060;branch=z9hG4bK4t5g11q75ccl8k5vnbgabnlct2<br>> <br>> From:<br>> <sip:026683011@10.39.1.16:5060;user=phone>;tag=SDa7sn401--45026-1f4d3ad-69943699-1f4d3ad<br>> <br>
> To: <sip:0698962030@10.39.6.207:5060;user=phone><br>
> <br>> Call-ID: SDa7sn401-c505e58e02da5e4449475a8d28dbcb07-ao92061<br>> <br>> CSeq: 1 INVITE<br>> <br>> User-Agent: CS2000_NGSS/8.0<br>> <br>> Remote-Party-ID: <<a href="mailto:sip%3A026683011@10.39.1.16" target="_blank">sip:026683011@10.39.1.16</a>;user=phone>; party=calling;<br>
> privacy=off; screen=yes<br>> <br>> Allow: ACK,BYE,CANCEL,INVITE,OPTIONS,INFO,SUBSCRIBE,REFER,NOTIFY,PRACK<br>> <br>> P-Asserted-Identity:
<<a href="mailto:sip%3A026683011@10.39.1.16" target="_blank">sip:026683011@10.39.1.16</a>;user=phone><br>> <br>> Max-Forwards: 69<br>> <br>> Contact: <sip:77.239.128.10:5060;transport=UDP><br>> <br>
> Supported: 100rel<br>> <br>> Content-Type: application/sdp<br>> <br>> Content-Length: 236<br>> <br>> <br>> <br>> v=0<br>> <br>> o=PVG 1305215458700 1305215458700 IN IP4 77.239.128.10<br>
> <br>> s=-<br>> <br>> p=+1 6135555555<br>> <br>> c=IN IP4 77.239.128.10<br>> <br>> t=0 0<br>> <br>> m=audio 41892 RTP/AVP 18 8 0 13 101<br>> <br>> a=rtpmap:101 telephone-event/8000<br>
> <br>> a=fmtp:101 0-15<br>> <br>> a=ptime:20<br>> <br>> a=fmtp:18 annexb=no<br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> SIP/2.0 403 Proxy forbidden<br>> <br>> Via: SIP/2.0/UDP<br>
> 77.239.128.10:5060;branch=z9hG4bK4t5g11q75ccl8k5vnbgabnlct2;rport=5060;received=77.239.128.10<br>>
<br>> From:<br>> <sip:026683011@10.39.1.16:5060;user=phone>;tag=SDa7sn401--45026-1f4d3ad-69943699-1f4d3ad<br>> <br>> To:<br>> <sip:0698962030@10.39.6.207:5060;user=phone>;tag=4471d251144740103ef2d5e5631bdc66.fe6e<br>
> <br>> Call-ID: SDa7sn401-c505e58e02da5e4449475a8d28dbcb07-ao92061<br>> <br>> CSeq: 1 INVITE<br>> <br>> Server: Kamailio (1.4.4-notls (x86_64/linux))<br>> <br>> Content-Length: 0<br>> <br>> <br>
> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> sip:0698962030@79.12.254.153:5060;user=phone SIP/2.0<br>
> <br>> Via: SIP/2.0/UDP<br>> 77.239.128.10:5060;branch=z9hG4bK4t5g11q75ccl8k5vnbgabnlct2;rport=5060;received=77.239.128.10<br>> <br>> From:<br>>
<sip:026683011@10.39.1.16:5060;user=phone>;tag=SDa7sn401--45026-1f4d3ad-69943699-1f4d3ad<br>> <br>> To:<br>> <sip:0698962030@10.39.6.207:5060;user=phone>;tag=4471d251144740103ef2d5e5631bdc66.fe6e<br>
> <br>> Call-ID: SDa7sn401-c505e58e02da5e4449475a8d28dbcb07-ao92061<br>> <br>> CSeq: 1 ACK<br>> <br>> Max-Forwards: 69<br>> <br>> Content-Length: 0<br>> <br>> <br>> <br>> <br>> <br>
> <br>> <br>> <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><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>