Hi,
I have a problem.
I have a working openser server, but I want and a media server, so I decide to use sems.
I put everything in this way:
Openser <-------> Ser<--------->sems
All things are working on the same server.Openser works on 5060 port, and ser on 6060
port.
In openser.cfg I redirect to ser in this way:
if (uri=~"sip:100@.*") {
t_relay("localhost:6060");
exit;
};
and in ser.cfg:
if (uri=~"sip:100.*@") {
if(!t_write_unix("/tmp/am_sock","conference")) {
t_reply("500","error contacting sems");
};
break;
};
When I dial 100 the logs of the ser contain:
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: SIP Request:
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: method: <INVITE>
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: uri: <sip:100@domain.com>
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: version: <SIP/2.0>
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: parse_headers: flags=1
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: Found param type 232, <branch> =
<z9hG4bK2cec.f018b0b5.0>; state=16
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: end of header reached, state=5
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: parse_headers: Via found, flags=1
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: parse_headers: this is the first via
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: After parse_msg...
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: preparing to run routing scripts...
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: parse_headers: flags=128
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: Found param type 232, <branch> =
<z9hG4bKOUUByO4Kp1q4sDNU>; state=16
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: end of header reached, state=5
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: parse_headers: Via found, flags=128
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: parse_headers: this is the second via
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: DEBUG:maxfwd:is_maxfwd_present: value =
69
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: DBG:maxfwd:process_maxfwd_header: value
69 decreased to 16
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: parse_headers: flags=8
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: DEBUG: add_param: tag=6mVbY0KQFDRYupVP
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: end of header reached, state=29
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: parse_headers: flags=256
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: end of header reached, state=9
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: DEBUG: get_hdr_field: <To> [29];
uri=[sip:100@domain.com]
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: DEBUG: to body ["100"
<sip:100@voip.cts.md> ]
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: get_hdr_field: cseq <CSeq>:
<1> <INVITE>
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: DEBUG: get_hdr_body : content_length=232
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: found end of header
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: find_first_route: No Route headers found
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: loose_route: There is no Route HF
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: grep_sock_info - checking if host==us:
11==9 && [
domain.com] == [127.0.0.1]
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: grep_sock_info - checking if port 6060
matches port 5060
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: grep_sock_info - checking if host==us:
11==11 && [
domain.com] == [X.X.X.X]
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: grep_sock_info - checking if port 6060
matches port 5060
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: grep_sock_info - checking if host==us:
11==10 && [
domain.com] == [172.17.6.2]
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: grep_sock_info - checking if port 6060
matches port 5060
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: grep_sock_info - checking if host==us:
11==9 && [
domain.com] == [127.0.0.1]
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: grep_sock_info - checking if port 6060
matches port 5060
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: grep_sock_info - checking if host==us:
11==11 && [
domain.com] == [X.X.X.X]
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: grep_sock_info - checking if port 6060
matches port 5060
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: grep_sock_info - checking if host==us:
11==10 && [
domain.com] == [172.17.6.2]
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: grep_sock_info - checking if port 6060
matches port 5060
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: check_self: host != me
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: DEBUG: t_newtran: msg id=3 , global msg
id=2 , T onfiltered=0xffffffffffffffff
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: parse_headers: flags=-1
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: parse_headers: flags=60
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: t_lookup_request: start searching:
hash=52930, isACK=0
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: DEBUG: RFC3261 transaction matching
failed
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: DEBUG: t_lookup_request: no transaction
found
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: SER: new INVITE
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: parse_headers: flags=-1
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: check_via_address(172.17.6.2, 172.17.6.2,
0)
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: WARNING:vqm_resize: resize(0) called
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: DEBUG: reply sent out. buf=0x5d8838:
SIP/2.0 1..., shmem=0x2b9b012ee768: SIP/2.0 1
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: DEBUG: _reply_light: finished
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: DEBUG: mk_proxy: doing DNS lookup...
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: get_record:
lookup(_sip._udp.domain.com,
33) failed
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: sip_resolvehost: no SRV record found for
voip.cts.md, trying 'normal' lookup...
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: check_via_address(172.17.6.2, 172.17.6.2,
0)
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: DEBUG: add_to_tail_of_timer[4]:
0x2b9b012ec368
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: DEBUG: add_to_tail_of_timer[0]:
0x2b9b012ec388
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: SER: new transaction fwd'ed
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: DEBUG:destroy_avp_list: destroying list
(nil)
Oct 4 12:26:59 voip /usr/local/sbin/ser[31088]: receive_msg: cleaning up
Please show me where is the problem, in openser or ser or sems?
Thanks.
Ion M.
__________________________________________________
Do You Yahoo!?
Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito
per i tuoi file e i messaggi
http://mail.yahoo.it