Debugging with debug level 9 i found this message:
1(15026) SIP Request: 1(15026) method: <REGISTER> 1(15026) uri: sip:sip1.mydomain.com 1(15026) version: <SIP/2.0> 1(15026) parse_headers: flags=1 1(15026) Found param type 232, <branch> = <z9hG4bK-22fceceb>; state=16 1(15026) end of header reached, state=5 1(15026) parse_headers: Via found, flags=1 1(15026) parse_headers: this is the first via 1(15026) After parse_msg... 1(15026) preparing to run routing scripts... 1(15026) DEBUG : is_maxfwd_present: searching for max_forwards header 1(15026) parse_headers: flags=128 1(15026) end of header reached, state=9 1(15026) DEBUG: get_hdr_field: <To> [68]; uri=[sip:5555848114@sip1.mydomain.com] 1(15026) DEBUG: to body [Ricardo Martinez sip:5555848114@sip1.mydomain.com ] 1(15026) get_hdr_field: cseq <CSeq>: <1> <REGISTER> 1(15026) DEBUG: is_maxfwd_present: value = 70 1(15026) DEBUG: add_param: tag=85389cb2cb0c16do0 1(15026) end of header reached, state=29 1(15026) parse_headers: flags=256 1(15026) DEBUG: get_hdr_body : content_length=0 1(15026) found end of header 1(15026) find_first_route(): No Route headers found 1(15026) loose_route(): There is no Route HF 1(15026) parse_headers: flags=64 1(15026) check_via_address(10.0.0.3, 10.0.0.3, 0) 1(15026) parse_headers: flags=-1 1(15026) DEBUG: t_addifnew: msg id=1 , global msg id=0 , T on entrance=0xffffffff 1(15026) parse_headers: flags=-1 1(15026) parse_headers: flags=60 1(15026) t_lookup_request: start searching: hash=31141, isACK=0 1(15026) DEBUG: RFC3261 transaction matching failed 1(15026) DEBUG: t_lookup_request: no transaction found 1(15026) DBG: callback type 2, id 3 entered 1(15026) parse_headers: flags=44 1(15026) DEBUG: mk_proxy: doing DNS lookup... 1(15026) get_record: lookup(_sip._udp.sip1.mydomain.com, 33) failed 1(15026) sip_resolvehost: no SRV record found for sip1.mydomain.com, trying 'normal' lookup... 1(15026) check_via_address(10.0.0.3, 10.0.0.3, 0) 1(15026) DEBUG: add_to_tail_of_timer[4]: 0x402e5b38 1(15026) DEBUG: add_to_tail_of_timer[0]: 0x402e5b4c 1(15026) SER: new transaction fwd'ed 1(15026) DEBUG:destroy_avp_list: destroing list (nil)
Is a problem with my DNS? Hope that someone can help me.
Thanks Ricardo
-----Mensaje original----- De: Ricardo Martinez [mailto:rmartinez@redvoiss.net] Enviado el: Lunes, 22 de Noviembre de 2004 11:39 Para: SER Users (E-mail) Asunto: [Serusers] Question About Different Domain in One SER Machine
Hello List. I'm trying to set up an enviroment where i have one SER instance (in one machine), managing two domains. For this i defined two domains pointing to the same machin. Let's say : sip1.mydomain.com sip2.mydomain.com
both of them pointing to the 10.0.0.5 (SER).
My configuration file (ser.cfg) is something like this.
route { if ... { max_forward routine }; if ... { message_too_big routine }; if (uri=="sip1.mydomain.com") {
if (method=="REGISTER") { REGISTER_1 routine }; exec 1 routine routing 1 routine
} else if (uri=="sip2.mydomain.com")
if (method=="REGISTER") { REGISTER_2 routine }; exec 2 routine routing 2 routine
};
if (!t_relay()) { sl_reply_error(); break; };
}
route[1] ....
route[2] ....
I also have in my ser.cfg
#module domain modparam("domain", "db_url", "/usr/local/etc/ser/domaintables") modparam("domain", "domain_table", "domain") modparam("domain", "domain_col", "domain")
Where my domain file is like this: domain(str) sip1.mydomain.com sip2.mydomain.com
For this setup i run SER and there is no errors in the initialization. But when a UA is trying to register, for any domain, is getting the "Too many Hops" message. I think is maybe a problem with my host name or something like this. I don't know what i'm dogin wrong. Do i have to set up something else?, maybe in my hosts file?. I really hope that someone could help me.
Best regards, Ricardo Martinez
_______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
the third line in debug messages shows the value for uri and in your config is different (you missed 'sip:' in front). You can use the '=~' operator instead of '==' and you will get a regular expression matching. If you use 'myself' it is safer to add the domain names as alias in ser config file.
Daniel
On 11/22/04 17:03, Ricardo Martinez wrote:
Debugging with debug level 9 i found this message:
1(15026) SIP Request: 1(15026) method: <REGISTER> 1(15026) uri: sip:sip1.mydomain.com 1(15026) version: <SIP/2.0> 1(15026) parse_headers: flags=1 1(15026) Found param type 232, <branch> = <z9hG4bK-22fceceb>; state=16 1(15026) end of header reached, state=5 1(15026) parse_headers: Via found, flags=1 1(15026) parse_headers: this is the first via 1(15026) After parse_msg... 1(15026) preparing to run routing scripts... 1(15026) DEBUG : is_maxfwd_present: searching for max_forwards header 1(15026) parse_headers: flags=128 1(15026) end of header reached, state=9 1(15026) DEBUG: get_hdr_field: <To> [68]; uri=[sip:5555848114@sip1.mydomain.com] 1(15026) DEBUG: to body [Ricardo Martinez sip:5555848114@sip1.mydomain.com ] 1(15026) get_hdr_field: cseq <CSeq>: <1> <REGISTER> 1(15026) DEBUG: is_maxfwd_present: value = 70 1(15026) DEBUG: add_param: tag=85389cb2cb0c16do0 1(15026) end of header reached, state=29 1(15026) parse_headers: flags=256 1(15026) DEBUG: get_hdr_body : content_length=0 1(15026) found end of header 1(15026) find_first_route(): No Route headers found 1(15026) loose_route(): There is no Route HF 1(15026) parse_headers: flags=64 1(15026) check_via_address(10.0.0.3, 10.0.0.3, 0) 1(15026) parse_headers: flags=-1 1(15026) DEBUG: t_addifnew: msg id=1 , global msg id=0 , T on entrance=0xffffffff 1(15026) parse_headers: flags=-1 1(15026) parse_headers: flags=60 1(15026) t_lookup_request: start searching: hash=31141, isACK=0 1(15026) DEBUG: RFC3261 transaction matching failed 1(15026) DEBUG: t_lookup_request: no transaction found 1(15026) DBG: callback type 2, id 3 entered 1(15026) parse_headers: flags=44 1(15026) DEBUG: mk_proxy: doing DNS lookup... 1(15026) get_record: lookup(_sip._udp.sip1.mydomain.com, 33) failed 1(15026) sip_resolvehost: no SRV record found for sip1.mydomain.com, trying 'normal' lookup... 1(15026) check_via_address(10.0.0.3, 10.0.0.3, 0) 1(15026) DEBUG: add_to_tail_of_timer[4]: 0x402e5b38 1(15026) DEBUG: add_to_tail_of_timer[0]: 0x402e5b4c 1(15026) SER: new transaction fwd'ed 1(15026) DEBUG:destroy_avp_list: destroing list (nil)
Is a problem with my DNS? Hope that someone can help me.
Thanks Ricardo
-----Mensaje original----- De: Ricardo Martinez [mailto:rmartinez@redvoiss.net] Enviado el: Lunes, 22 de Noviembre de 2004 11:39 Para: SER Users (E-mail) Asunto: [Serusers] Question About Different Domain in One SER Machine
Hello List. I'm trying to set up an enviroment where i have one SER instance (in one machine), managing two domains. For this i defined two domains pointing to the same machin. Let's say : sip1.mydomain.com sip2.mydomain.com
both of them pointing to the 10.0.0.5 (SER).
My configuration file (ser.cfg) is something like this.
route { if ... { max_forward routine };
if ... { message_too_big routine };
if (uri=="sip1.mydomain.com") {
if (method=="REGISTER") { REGISTER_1 routine };
exec 1 routine routing 1 routine
} else if (uri=="sip2.mydomain.com")
if (method=="REGISTER") { REGISTER_2 routine };
exec 2 routine routing 2 routine
};
if (!t_relay()) { sl_reply_error(); break; };
}
route[1] ....
route[2] ....
I also have in my ser.cfg
#module domain modparam("domain", "db_url", "/usr/local/etc/ser/domaintables") modparam("domain", "domain_table", "domain") modparam("domain", "domain_col", "domain")
Where my domain file is like this: domain(str) sip1.mydomain.com sip2.mydomain.com
For this setup i run SER and there is no errors in the initialization. But when a UA is trying to register, for any domain, is getting the "Too many Hops" message. I think is maybe a problem with my host name or something like this. I don't know what i'm dogin wrong. Do i have to set up something else?, maybe in my hosts file?. I really hope that someone could help me.
Best regards, Ricardo Martinez
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers