thanks for your reply Klaus ,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
--- Mer 18/5/11, Klaus Darilion klaus.mailinglists@pernau.at ha scritto:
Da: Klaus Darilion klaus.mailinglists@pernau.at Oggetto: Re: [SR-Users] 403 Proxy forbidden replay for invite that send sip gateway A: sr-users@lists.sip-router.org Data: Mercoledì 18 maggio 2011, 13:04
Check your config and verify where 403 is sent. You have something like
sl_send_reply("403","Proxy forbidden") in your config.
regards Klaus
Am 18.05.2011 10:48, schrieb hala alramli:
77.239.128.10:5060;branch=z9hG4bKf89p48m8dkuco1tumbnfaemc44
SDml08d01-daae53b1c06b7367e53d68ad67a63d13-ao92061
sip:026683011@10.39.1.16;user=phone
sip:026683011@10.39.1.16:5060;user=phone;tag=SDa7sn401--45026-1f4d3ad-69943699-1f4d3ad
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
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”);
Neither the From domain nor the request URI's domain are local domains. Thus the proxy rejects the request to avoid being abused as open relay.
Either instruct the provider to send requests with proper domain in request URI or add "79.12.254.153" to the local domains. (add "79.12.254.153" to domain table)
regards klaus
Am 18.05.2011 16:54, schrieb hala alramli:
Hi,
one way to achieve this, would be to modify the following block: Your Block now: ##### ----- AUTHENTICATE ----------------------------------------------
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); }
Change this to:
# Only Authenticate INVITE's
if (method == "INVITE") {
(... insert your original block here ...)
}
Carsten
2011/5/18 hala alramli doreme202002@yahoo.com
Thanks Carsten,
i managed to rout the call but i face some thing strange now .when the receiver number registered to my server soft sip client,the receiver ringing and receive call normally ,but when the receiver registerd by adapter the receiver is ringing but when pickup the call terminate. attach grep for the two cases .
i dont know why this happen ,any help to solve this.
________________________________ Da: Carsten Bock carsten@ng-voice.com A: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List sr-users@lists.sip-router.org Inviato: Giovedì 19 Maggio 2011 10:00 Oggetto: Re: [SR-Users] 403 Proxy forbidden replay for invite that send sip gateway
Hi,
one way to achieve this, would be to modify the following block: Your Block now: ##### ----- AUTHENTICATE ---------------------------------------------- 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); } Change this to: # Only Authenticate INVITE's if (method == "INVITE") { (... insert your original block here ...) }
Carsten
2011/5/18 hala alramli doreme202002@yahoo.com
18 maggio 2011, 13:04
77.239.128.10:5060;branch=z9hG4bKf89p48m8dkuco1tumbnfaemc44
SDml08d01-daae53b1c06b7367e53d68ad67a63d13-ao92061
sip:026683011@10.39.1.16;user=phone
sip:026683011@10.39.1.16:5060;user=phone;tag=SDa7sn401--45026-1f4d3ad-69943699-1f4d3ad
(OpenSER) - sr-users mailing list
Thanks
i managed to rout the call but i face some thing strange now .when the receiver number registered to my server by soft sip client,the receiver ringing and receive call normally ,but when the receiver registerd by adapter the receiver is ringing but when pickup the call terminate. attach grep for the two cases .
i dont know why this happen ,dose any one face something like this.
any solution
Regards, hala
________________________________ Da: Carsten Bock carsten@ng-voice.com A: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List sr-users@lists.sip-router.org Inviato: Giovedì 19 Maggio 2011 10:00 Oggetto: Re: [SR-Users] 403 Proxy forbidden replay for invite that send sip gateway
Hi,
one way to achieve this, would be to modify the following block: Your Block now: ##### ----- AUTHENTICATE ---------------------------------------------- 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); } Change this to: # Only Authenticate INVITE's if (method == "INVITE") { (... insert your original block here ...) }
Carsten
2011/5/18 hala alramli doreme202002@yahoo.com
18 maggio 2011, 13:04
77.239.128.10:5060;branch=z9hG4bKf89p48m8dkuco1tumbnfaemc44
SDml08d01-daae53b1c06b7367e53d68ad67a63d13-ao92061
sip:026683011@10.39.1.16;user=phone
sip:026683011@10.39.1.16:5060;user=phone;tag=SDa7sn401--45026-1f4d3ad-69943699-1f4d3ad
(OpenSER) - sr-users mailing list