Hi, I'm doing a few tests to try SER. I use a simple configuration: -two Cisco ip phones -one Cisco 1760 Voice gateway with ISDN interfaces.
Calling between the ip phones works, but going through the Voice Gateway is something else... I don't really understand how to edit the config file, and I suppose their's a simple way. Here's how I tried.
I added these lines to the default config: if (uri=~"^sip:452564@10.1.1.22") { t_relay_to("10.1.1.240","5060"); break; }; And I call always teh same number 452564. 10.1.1.240 being my gateway, and 10.1.1.22 the SIP proxy server. An extract of the debbuging info: ... 6(13970) SIP Request: 6(13970) method: <ACK> 6(13970) uri: sip:452564@10.1.1.22 6(13970) version: <SIP/2.0> 6(13970) parse_headers: flags=1 ... 6(13970) DEBUG: add_param: tag=d907c037823644515dfe0ede38ca9976.1dfc 6(13970) end of header reached, state=29 6(13970) DEBUG: get_hdr_field: <To> [66]; uri=[sip:452564@10.1.1.22] 6(13970) DEBUG: to body [sip:452564@10.1.1.22] 6(13970) DEBUG: sl_filter_ACK : local ACK found -> dropping it! 6(13970) error:... ..
If you see something big, please let me know. THanks.
Sebastien Peterson Luxembourg.
route{ # initial sanity checks -- messages with # max_forwars==0, or excessively long requests if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); break; }; if (len_gt( max_len )) { sl_send_reply("513", "Message too big"); break; };
# Do strict routing if pre-loaded route headers present rewriteFromRoute();
# if the request is for other domain use UsrLoc # (in case, it does not work, use the following command # with proper names and addresses in it) if (uri==myself) {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication # if (!www_authorize("iptel.org", "subscriber")) { # www_challenge("iptel.org", "0"); # break; # };
save("location"); break; };
# native SIP destinations are handled using our USRLOC DB if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; }; };
if (uri=~"^sip:452564@10.1.1.22") { t_relay_to("10.1.1.240","5060"); break; };
# forward to current uri now if (!t_relay()) { sl_reply_error(); };
}