[Serdev] Users cannot connect
Barry Murphy
barry at unix.co.nz
Wed Mar 16 07:04:29 UTC 2005
FreeBSD 4.10 running ser 0.9.0 (cfg attached)
Ok so I finally got ser to start with the correct permissions & got serweb
working, my issue is that users cannot register now...
I get the following from serctl moni
400: 0 401: 0 403: 0 404: 0 407: 0 408: 0 483: 27 4xx: 0
I get the following in a ser -Eddd
Via: SIP/2.0/UDP
203.167.185.63:5060;rport=5060;branch=z9hG4bKB8DC7272F55340C799774EA5E2789B6
A
From: test <sip:865656522 at voip.fast.co.nz>;tag=720372325
To: test <sip:865656522 at voip.fast.co.nz>
Contact: "test" <sip:865656522 at 203.167.185.63:5060>
Call-ID: 69553DC01B7C4C06A0B5D19777328A8D at voip.fast.co.nz
CSeq: 33263 REGISTER
Expires: 1800
Max-Forwards: 70
User-Agent: X-Lite release 1103m
Content-Length: 0
.
4(49500) orig. len=3294, new_len=3337, proto=1
9(49505) qm_malloc(0x81179c0, 16) called from proxy.c: hostent_cpy(88)
9(49505) qm_malloc(0x81179c0, 16) returns address 0x815113c frag. 0x8151124
(size=28) on 1 -th hit
9(49505) qm_malloc(0x81179c0, 4) called from proxy.c: hostent_cpy(99)
9(49505) qm_malloc(0x81179c0, 4) returns address 0x8150c58 frag. 0x8150c40
(size=4) on 1 -th hit
9(49505) qm_malloc(0x81179c0, 8) called from proxy.c: hostent_cpy(122)
9(49505) qm_malloc(0x81179c0, 8) returns address 0x814d854 frag. 0x814d83c
(size=8) on 1 -th hit
9(49505) qm_malloc(0x81179c0, 4) called from proxy.c: hostent_cpy(133)
9(49505) 5(49501) get_record: lookup(_sip._udp.voip.fast.co.nz, 33) failed
5(49501) sip_resolvehost: no SRV record found for voip.fast.co.nz, trying
'normal' lookup...
3(49499) get_record: lookup(_sip._udp.voip.fast.co.nz, 33) failed
3(49499) sip_resolvehost: no SRV record found for voip.fast.co.nz, trying
'normal' lookup...
8(49504) get_record: lookup(_sip._udp.voip.fast.co.nz, 33) failed
8(49504) sip_resolvehost: no SRV record found for voip.fast.co.nz, trying
'normal' lookup...
9 2(49498) qm_malloc(0x81179c0, 756) called from receive.c: receive_msg(92)
2(49498) qm_malloc(0x81179c0, 756) returns address 0x8150e18 frag.
0x8150e00 (size=756) on 1 -th hit
2(49498) SIP Request:
2(49498) method: <REGISTER>
2(49498) uri: <sip:voip.fast.co.nz>
2(49498) version: <SIP/2.0>
2(49498) parse_headers: flags=1
2(49498) qm_malloc(0x81179c0, 32) called from parser/msg_parser.c:
parse_headers(279)
2(49498) qm_malloc(0x81179c0, 32) returns address 0x81513f8 frag. 0x81513e0
(size=32) on 1 -th hit
2(49498) qm_malloc(0x81179c0, 120) called from parser/msg_parser.c:
get_hdr_field(110)
2(49498) qm_malloc(0x81179c0, 120) returns address 0x8150d38 frag.
0x8150d20 (size=176) on 1 -th hit
2(49498) qm_malloc(0x81179c0, 32) called from parser/parse_via.c:
parse_via(1823)
2(49498) qm_malloc(0x81179c0, 32) returns address 0x8151448 frag. 0x8151430
(size=32) on 1 -th hit
2(49498) Found param type 232, <branch> = <0>; state=16
2(49498) end of header reached, state=5
2(49498) parse_headers: Via found, flags=1
2(49498) parse_headers: this is the first via
2(49498) After parse_msg...
2(49498) preparing to run routing scripts...
2(49498) qm_malloc(0x81179c0, 60) called from proxy.c: mk_proxy(208)
2(49498) qm_malloc(0x81179c0, 60) returns address 0x814d584 frag. 0x814d56c
(size=64) on 1 -th hit
2(49498) DEBUG: mk_proxy: doing DNS lookup...
4(49500) qm_free(0x81179c0, 0x8153b90), called from forward.c:
forward_request(348)
4(49500) qm_free: freeing frag. 0x8153b78 alloc'ed from msg_translator.c:
build_req_buf_from_sip_req(1452)
4(49500) qm_free(0x81179c0, 0x814ee1c), called from forward.c:
forward_request(349)
4(49500) qm_free: freeing frag. 0x814ee04 alloc'ed from forward.c:
forward_request(273)
4(49500) qm_free(0x81179c0, 0x815113c), called from proxy.c:
free_hostent(164)
4(49500) qm_free: freeing frag. 0x8151124 alloc'ed from proxy.c:
hostent_cpy(88)
4(49500) qm_malloc(0x81179c0, 4) returns address 0x814d820 frag. 0x814d808
(size=4) on 1 -th hit
9(49505) qm_malloc(0x81179c0, 28) called from forward.c:
forward_request(273)
9(49505) qm_malloc(0x81179c0, 28) returns address 0x81511ec frag. 0x81511d4
(size=32) on 1 -th hit
9(49505) qm_malloc(0x81179c0, 51) called from msg_translator.c:
via_builder(1942)
9(49505) qm_malloc(0x81179c0, 52) returns address 0x8151188 frag. 0x8151170
(size=52) on 1 -th hit
9(49505) check_via_address(202.150.105.150, 202.150.105.150, 0)
9(49505) qm_malloc(0x81179c0, 32) called from data_lump.c: anchor_lump(340)
9(49505) qm_malloc(0x81179c0, 32) returns address 0x815132c frag. 0x8151314
(size=32) on 1 -th hit
9(49505) qm_malloc(0x81179c0, 32) called from data_lump.c:
insert_new_lump_before(139)
9(49505) qm_malloc(0x81179c0, 32) returns address 0x815137c frag. 0x8151364
(size=32) on 1 -th hit
9(49505) sqm_malloc(0x81179c0, 1704) called from msg_translator.c:
build_req_buf_from_sip_req(1452)
9(49505) qm_malloc(0x81179c0, 1704) returns address 0x81529f8 frag.
0x81529e0 (size=1836) on 1 -th hit
9(49505) Sending:
REGISTER sip:voip.fast.co.nz SIP/2.0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP
203.167.185.63:5060;rport=5060;branch=z9hG4bKB8DC7272F55340C799774EA5E2789B6
A
From: test <sip:865656522 at voip.fast.co.nz>;tag=720372325
To: test <sip:865656522 at voip.fast.co.nz>
Contact: "test" <sip:865656522 at 203.167.185.63:5060>
Call-ID: 69553DC01B7C4C06A0B5D19777328A8D at voip.fast.co.nz
CSeq: 33263 REGISTER
Expires: 1800
Max-Forwards: 70
User-Agent: X-Lite release 1103m
Content-Length: 0
.
8(49504) qm_malloc(0x81179c0, 16) called from proxy.c: hostent_cpy(88)
8(49504) qm_malloc(0x81179c0, 16) returns address 0x815113c frag. 0x8151124
(size=28) on 1 -th hit
8(49504) qm_malloc(0x81179c0, 4) called from proxy.c: hostent_cpy(99)
8(49504) qm_malloc(0x81179c0, 4) returns address 0x814d820 frag. 0x814d808
(size=4) on 1 -th hit
8(49504) qm_malloc(0x81179c0, 8) called from proxy.c: hostent_cpy(122)
8(49504) qm_malloc(0x81179c0, 8) returns address 0x814d584 frag. 0x814d56c
(size=8) on 1 -th hit
8(49504) qm_malloc(0x81179c0, 4) called from proxy.c: hostent_cpy(133)
8(49504) qm_malloc(0x81179c0, 4) returns address 0x8150c58 frag. 0x8150c40
(size=4) on 1 -th hit
8(49504) qm_malloc(0x81179c0, 28) called from forward.c:
forward_request(273)
8(49504) qm_malloc(0x81179c0, 28) returns address 0x815141c frag. 0x8151404
(size=32) on 1 -th hit
8(49504) qm_malloc(0x81179c0, 51) called from msg_translator.c:
via_builder(1942)
8(49504) qm_malloc(0x81179c0, 52) returns address 0x815128c frag. 0x8151274
(size=52) on 1 -th hit
8(49504) check_via_address(202.150.105.150, 202.150.105.150, 0)
8(49504) qm_malloc(0x81179c0, 32) called from data_lump.c: anchor_lump(340)
8(49504) qm_malloc(0x81179c0, 32) returns address 0x815132c frag. 0x8151314
(size=32) on 1 -th hit
8(49504) qm_malloc(0x81179c0, 32) called from data_lump.c:
insert_new_lump_before(139)
8(49504) qm_malloc(0x81179c0, 32) returns address 0x815137c frag. 0x8151364
(size=32) on 1 -th hit
8(49504) qm_malloc(0x81179c0, 2693) called from msg_translator.c:
build_req_buf_from_sip_req(1452)
8(49504) qm_malloc(0x81179c0, 2696) returns address 0x8153534 frag.
0x815351c (size=2780) on 1 -th hit
8(49504) Sending:
REGISTER sip:voip.fast.co.nz SIP/2.0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP
203.167.185.63:5060;rport=5060;branch=z9hG4bKB8DC7272F55340C799774EA5E2789B6
A
From: test <sip:865656522 at voip.fast.co.nz>;tag=720372325
To: test <sip:865656522 at voip.fast.co.nz>
Contact: "test" <sip:865656522 at 203.167.185.63:5060>
Call-ID: 69553DC01B7C4C06A0B5D19777328A8D at voip.fast.co.nz
CSeq: 33263 REGISTER
Expires: 1800
Max-Forwards: 70
User-Agent: X-Lite release 1103m
Content-Length: 0
.
8(49504) orig. len=2649, new_len=2692, proto=1
5(49501) qm_malloc(0x81179c0, 16) called from proxy.c: hostent_cpy(88)
5(49501) qm_malloc(0x81179c0, 16) returns address 0x815113c frag. 0x8151124
(size=28) on 1 -th hit
5(49501) qm_malloc(0x81179c0, 4) called from proxy.c: hostent_cpy(99)
5(49501) qm_malloc(0x81179c0, 4) returns address 0x8150c58 frag. 0x8150c40
(size=4) on 1 -th hit
5(49501) qm_malloc(0x81179c0, 8) called from proxy.c: hostent_cpy(122)
5(49501) qm_malloc(0x81179c0, 8) returns address 0x814d854 frag. 0x814d83c
(size=8) on 1 -th hit
5(49501) qm_malloc(0x81179c0, 4) called from proxy.c: hostent_cpy(133)
5(49501) qm_malloc(0x81179c0, 4) returns address 0x814d820 frag. 0x814d808
(size=4) on 1 -th hit
5(49501) qm_malloc(0x81179c0, 28) called from forward.c:
forward_request(273)
5(49501) qm_malloc(0x81179c0, 28) returns address 0x814ee1c frag. 0x814ee04
(size=44) on 1 -th hit
5(49501) qm_malloc(0x81179c0, 51) called from msg_translator.c:
via_builder(1942)
5(49501) qm_malloc(0x81179c0, 52) returns address 0x8151188 frag. 0x8151170
(size=52) on 1 -th hit
5(49501) check_via_address(202.150.105.150, 202.150.105.150, 0)
5(49501) qm_malloc(0x81179c0, 32) called from data_lump.c: anchor_lump(340)
5(49501) qm_malloc(0x81179c0, 32) returns address 0x814d584 frag. 0x814d56c
(size=64) on 1 -th hit
5(49501) qm_malloc(0x81179c0, 32) called from data_lump.c:
insert_new_lump_before(139)
5(49501) qm_malloc(0x81179c0, 32) returns address 0x814d330 frag. 0x814d318
(size=68) on 1 -th hit
5(49501) qm_malloc(0x81179c0, 3682) called from msg_translator.c:
build_req_buf_from_sip_req(1452)
5(49501) qm_malloc(0x81179c0, 3684) returns address 0x8156590 frag.
0x8156578 (size=3684) on 1 -th hit
5(49501) Sending:
REGISTER sip:voip.fast.co.nz SIP/2.0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP 202.150.105.150;branch=0
Via: SIP/2.0/UDP
203.167.185.63:5060;rport=5060;branch=z9hG4bKB8DC7272F55340C799774EA5E2789B6
A
From: test <sip:865656522 at voip.fast.co.nz>;tag=720372325
To: test <sip:865656522 at voip.fast.co.nz>
Contact: "test" <sip:865656522 at 203.167.185.63:5060>
Call-ID: 69553DC01B7C4C06A0B5D19777328A8D at voip.fast.co.nz
CSeq: 33263 REGISTER
Expires: 1800
Max-Forwards: 70
User-Agent: X-Lite release 1103m
Content-Length: 0
.
5(49501) orig. len=3638, new_len=3681, proto=1
3(49499) qm_malloc(0x81179c0, 16) called from proxy.c: hostent_cpy(88)
3(49499) qm_malloc(0x81179c0, 16) returns address 0x815113c frag. 0x8151124
(size=28) on 1 -th hit
3(49499) qm_malloc(0x81179c0, 4) called from proxy.c: hostent_cpy(99)
3(49499) qm_malloc(0x81179c0, 4) returns address 0x814d820 frag. 0x814d808
(size=4) on 1 -th hit
3(49499) qm_malloc(0x81179c0, 8) called from proxy.c: hostent_cpy(122)
3(49499) qm_malloc(0x81179c0, 8) returns address 0x814d854 frag. 0x814d83c
(size=8) on 1 -th hit
3(49499) qm_malloc(0x81179c0, 4) called from proxy.c: hostent_cpy(133)
3(49499) qm_malloc(0x81179c0, 4) returns address 0x8150c58 frag. 0x8150c40
(size=4) on 1 -th hit
3(49499) qm_malloc(0x81179c0, 28) called from forward.c:
forward_request(273)
3(49499) qm_malloc(0x81179c0, 28) returns address 0x815128c frag. 0x8151274
(size=32) on 1 -th hit
3(49499) qm_malloc(0x81179c0, 51) called from msg_translator.c:
via_builder(1942)
3(49499) qm_malloc(0x81179c0, 52) returns address 0x8151188 frag. 0x8151170
(size=52) on 1 -th hit
3(49499) check_via_address(202.150.105.150, 202.150.105.150, 0)
3(49499) qm_malloc(0x81179c0, 32) called from data_lump.c: anchor_lump(340)
3(49499) qm_malloc(0x81179c0, 32) returns address 0x81512dc frag. 0x81512c4
(size=32) on 1 -th hit
3(49499) qm_malloc(0x81179c0, 32) called from data_lump.c:
insert_new_lump_before(139)
3(49499) qm_malloc(0x81179c0, 32) returns address 0x81511ec frag. 0x81511d4
(size=32) on 1 -th hit
3(49499) qm_malloc(0x81179c0, 560) called from msg_translator.c:
build_req_buf_from_sip_req(1452)
3(49499) qm_malloc(0x81179c0, 560) returns address 0x8151534 frag.
0x815151c (size=956) on 1 -th hit
qm_free(0x81179c0, 0x814d820), called from proxy.c: free_hostent(169)
4(49500) qm_free: freeing frag. 0x814d808 alloc'ed from proxy.c:
hostent_cpy(99)
4(49500) qm_free(0x81179c0, 0x8150c58), called from proxy.c:
free_hostent(173)
4(49500) qm_free: freeing frag. 0x8150c40 alloc'ed from proxy.c:
hostent_cpy(133)
4(49500) qm_free(0x81179c0, 0x814d854), called from proxy.c:
free_hostent(175)
4(49500) qm_free: freeing frag. 0x814d83c alloc'ed from proxy.c:
hostent_cpy(122)
4(49500) qm_free(0x81179c0, 0x814d584), called from action.c:
do_action(199)
4(49500) qm_free: freeing frag. 0x814d56c alloc'ed from proxy.c:
mk_proxy(208)
4(49500) DEBUG:destroy_avp_list: destroying list 0x0
4(49500) receive_msg: cleaning up
-------------- next part --------------
#
# $Id: ser.cfg,v 1.21.4.1 2003/11/10 15:35:15 andrei Exp $ # # simple quick-start config script #
# ----------- global configuration parameters ------------------------
debug=4 # debug level (cmd line: -dddddddddd)
#fork=yes
#log_stderror=yes # (cmd line: -E)
/* Uncomment these lines to enter debugging mode
debug=7
fork=no
log_stderror=yes
*/
check_via=no # (cmd. line: -v)
dns=no # (cmd. line: -r)
rev_dns=no # (cmd. line: -R)
#port=5060
#children=4
fifo="/home/ser/ser_fifo"
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/acc.so"
loadmodule "/usr/local/lib/ser/modules/group.so"
# Uncomment this if you want digest authentication # mysql.so must be loaded !
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
# ----------------- setting module-specific parameters ---------------
# -- usrloc params --
#modparam("usrloc", "db_mode", 0)
# Uncomment this if you want to use SQL database # for persistent storage and comment the previous line modparam("usrloc", "db_mode", 2)
# -- auth params --
# Uncomment if you are using auth module
# #modparam("auth_db", "calculate_ha1", yes) # # If you set "calculate_ha1" parameter to yes (which true in this config), # uncomment also the following parameter) modparam("auth_db", "password_column", "password")
modparam("usrloc|acc|auth_db|group|msilo", "db_url", "mysql://ser:passwd@localhost/ser")
alias="voipweb.fast.co.nz"
alias="voip.fast.co.nz"
# -- rr params --
# add value to ;lr param to make some broken UAs happy modparam("rr", "enable_full_lr", 1)
# ------------------------- request routing logic -------------------
# main routing logic
route{
# initial sanity checks -- messages with
# max_forwards==0, or excessively long requests
# if (!mf_process_maxfwd_header("10")) {
# sl_send_reply("483","Too Many Hops");
# break;
# };
if ( msg:len > max_len ) {
sl_send_reply("513", "Message too big");
break;
};
# now check if it really is a PSTN destination which should be handled
# by our gateway; if not, and the request is an invitation, drop it --
# we cannot terminate it in PSTN; relay non-INVITE requests -- it may
# be for example BYEs sent by gateway to call originator
if (!uri=~"sip:\+?[0-9]+ at .*") {
if (method=="INVITE") {
sl_send_reply("403", "Call cannot be served here");
} else {
forward(uri:host, uri:port);
};
break;
};
# account completed transactions via syslog
setflag(1);
# free call destinations ... no authentication needed
if ( is_user_in("Request-URI", "free-pstn") /* free destinations */
| uri=~"sip:[79][0-9][0-9][0-9]@.*" /* local PBX */
| uri=~"sip:98[0-9][0-9][0-9][0-9]") {
log("free call");
}
# we record-route all messages -- to make sure that
# subsequent messages will go through our proxy; that's
# particularly good if upstream and downstream entities
# use different transport protocol
record_route();
# loose-route processing
if (loose_route()) {
t_relay();
break;
};
lookup("aliases");
# 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("voipweb.fast.co.nz", "subscriber")) {
# www_challenge("voipweb.fast.co.nz", "0");
# break;
#};
save("location");
break;
};
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
# forward to current uri now; use stateful forwarding; that
# works reliably even if we forward from TCP to UDP
if (!t_relay()) {
sl_reply_error();
};
}
More information about the Serdev
mailing list