Can Someone help me?
-------------------------------------------------------------
NGREP LOG
sps0:/# ngrep rafael@sps0.matrix.net.br -q
interface: eth0 (200.196.28.0/255.255.255.0)
match: rafael@sps0.matrix.net.br
U 200.196.28.25:63042 ->
200.196.28.124:5060
REGISTER sip:sps0.matrix.net.br
SIP/2.0..Via: SIP/2.0/UDP
192.168.5.38:63042;branch=z9hG4bK-d8754z-73147a384a27ac3c-1---d8754z-;rport..Max-Forwards:
70..Contact: <sip:rafael
@192.168.5.38:63042;rinstance=bcdb08a4009ee386>..To:
"SPS0"<sip:rafael@sps0.matrix.net.br>..From:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=43659358..Call-ID:
ZWVkMTRiNjQ1ZT
VkZTNlNmMyOGE5M2MzOTM2NTM4YmY...CSeq: 1 REGISTER..Expires: 3600..Allow: INVITE,
ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO..User-Agent:
X-Lite releas
e 1103d stamp 53117..Content-Length:
0....
U 200.196.28.124:5060 ->
200.196.28.25:63042
SIP/2.0 401 Unauthorized..Via:
SIP/2.0/UDP 192.168.5.38:63042;branch=z9hG4bK-d8754z-73147a384a27ac3c-1---d8754z-;rport=63042;received=200.196.28.25..To:
"SPS0"<sip:rafael@sp
s0.matrix.net.br>;tag=f8f2ab2c1295e90ed7dbb499b30f44b2.07e7..From:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=43659358..Call-ID:
ZWVkMTRiNjQ1ZTVkZTNlNmMyOGE5M2MzOTM2NTM4YmY..
.CSeq: 1 REGISTER..WWW-Authenticate:
Digest realm="sps0.matrix.net.br",
nonce="4a68f31e000000008e5e591d36c39beb4f5939faad6d9d29"..Server:
Kamailio (1.5.1-notls (i386/linux))
..Content-Length: 0....
U 200.196.28.25:63042 ->
200.196.28.124:5060
REGISTER sip:sps0.matrix.net.br
SIP/2.0..Via: SIP/2.0/UDP
192.168.5.38:63042;branch=z9hG4bK-d8754z-2209c854c438c347-1---d8754z-;rport..Max-Forwards:
70..Contact: <sip:rafael
@192.168.5.38:63042;rinstance=bcdb08a4009ee386>..To:
"SPS0"<sip:rafael@sps0.matrix.net.br>..From:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=43659358..Call-ID:
ZWVkMTRiNjQ1ZT
VkZTNlNmMyOGE5M2MzOTM2NTM4YmY...CSeq: 2 REGISTER..Expires: 3600..Allow: INVITE,
ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO..User-Agent:
X-Lite releas
e 1103d stamp 53117..Authorization:
Digest
username="rafael",realm="sps0.matrix.net.br",nonce="4a68f31e000000008e5e591d36c39beb4f5939faad6d9d29",uri="sip:sps0.matrix.net.br"
,response="386a15e662550d45f24bccb6cbb25494",algorithm=MD5..Content-Length:
0....
U 200.196.28.124:5060 ->
200.196.28.25:63042
SIP/2.0 200 OK..Via: SIP/2.0/UDP
192.168.5.38:63042;branch=z9hG4bK-d8754z-2209c854c438c347-1---d8754z-;rport=63042;received=200.196.28.25..To:
"SPS0"<sip:rafael@sps0.matrix.
net.br>;tag=f8f2ab2c1295e90ed7dbb499b30f44b2.d55b..From:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=43659358..Call-ID:
ZWVkMTRiNjQ1ZTVkZTNlNmMyOGE5M2MzOTM2NTM4YmY...CSeq: 2 R
EGISTER..Contact:
<sip:rafael@192.168.5.38:63042;rinstance=bcdb08a4009ee386>;expires=3600..Server:
Kamailio (1.5.1-notls (i386/linux))..Content-Length: 0....
U 200.196.28.25:63042 ->
200.196.28.124:5060
REGISTER sip:sps0.matrix.net.br
SIP/2.0..Via: SIP/2.0/UDP 192.168.5.38:63042;branch=z9hG4bK-d8754z-e552bf20e46b0448-1---d8754z-;rport..Max-Forwards:
70..Contact: <sip:rafael
@192.168.5.38:63042;rinstance=bcdb08a4009ee386>;expires=0..To:
"SPS0"<sip:rafael@sps0.matrix.net.br>..From:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=43659358..Call-ID:
ZWVk
MTRiNjQ1ZTVkZTNlNmMyOGE5M2MzOTM2NTM4YmY...CSeq:
3 REGISTER..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO..User-Agent: X-Lite release 110
3d stamp 53117..Authorization:
Digest username="rafael",realm="sps0.matrix.net.br",nonce="4a68f31e000000008e5e591d36c39beb4f5939faad6d9d29",uri="sip:sps0.matrix.net.br",resp
onse="386a15e662550d45f24bccb6cbb25494",algorithm=MD5..Content-Length:
0....
U 200.196.28.124:5060 ->
200.196.28.25:63042
SIP/2.0 200 OK..Via: SIP/2.0/UDP
192.168.5.38:63042;branch=z9hG4bK-d8754z-e552bf20e46b0448-1---d8754z-;rport=63042;received=200.196.28.25..To:
"SPS0"<sip:rafael@sps0.matrix.
net.br>;tag=f8f2ab2c1295e90ed7dbb499b30f44b2.8472..From:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=43659358..Call-ID: ZWVkMTRiNjQ1ZTVkZTNlNmMyOGE5M2MzOTM2NTM4YmY...CSeq:
3 R
EGISTER..Server: Kamailio
(1.5.1-notls (i386/linux))..Content-Length: 0....
U 200.196.28.25:63042 ->
200.196.28.124:5060
REGISTER sip:sps0.matrix.net.br
SIP/2.0..Via: SIP/2.0/UDP 192.168.5.38:63042;branch=z9hG4bK-d8754z-a95082141970153a-1---d8754z-;rport..Max-Forwards:
70..Contact: <sip:rafael
@200.196.28.25:63042;rinstance=381876ea15534dcf>..To:
"SPS0"<sip:rafael@sps0.matrix.net.br>..From:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=43659358..Call-ID:
ZWVkMTRiNjQ1Z
TVkZTNlNmMyOGE5M2MzOTM2NTM4YmY...CSeq:
4 REGISTER..Expires: 3600..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER,
NOTIFY, MESSAGE, SUBSCRIBE, INFO..User-Agent: X-Lite relea
se 1103d stamp 53117..Authorization:
Digest
username="rafael",realm="sps0.matrix.net.br",nonce="4a68f31e000000008e5e591d36c39beb4f5939faad6d9d29",uri="sip:sps0.matrix.net.br
",response="386a15e662550d45f24bccb6cbb25494",algorithm=MD5..Content-Length:
0....
U 200.196.28.124:5060 -> 200.196.28.25:63042
SIP/2.0 200 OK..Via: SIP/2.0/UDP
192.168.5.38:63042;branch=z9hG4bK-d8754z-a95082141970153a-1---d8754z-;rport=63042;received=200.196.28.25..To:
"SPS0"<sip:rafael@sps0.matrix.
net.br>;tag=f8f2ab2c1295e90ed7dbb499b30f44b2.26f5..From:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=43659358..Call-ID:
ZWVkMTRiNjQ1ZTVkZTNlNmMyOGE5M2MzOTM2NTM4YmY...CSeq: 4 R
EGISTER..Contact:
<sip:rafael@200.196.28.25:63042;rinstance=381876ea15534dcf>;expires=3600..Server:
Kamailio (1.5.1-notls (i386/linux))..Content-Length: 0....
U 200.196.28.25:63042 ->
200.196.28.124:5060
SUBSCRIBE
sip:rafael@sps0.matrix.net.br SIP/2.0..Via: SIP/2.0/UDP
192.168.5.38:63042;branch=z9hG4bK-d8754z-7c5a2623fb530542-1---d8754z-;rport..Max-Forwards:
70..Contact: <si
p:rafael@200.196.28.25:63042>..To:
"SPS0"<sip:rafael@sps0.matrix.net.br>..From:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=d1708236..Call-ID:
ZjdlZWUwNjkzM2ZmYzk1MDBkMGJmYzVk
YWIyZmMwM2Q...CSeq: 1
SUBSCRIBE..Expires: 300..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER,
NOTIFY, MESSAGE, SUBSCRIBE, INFO..User-Agent: X-Lite release 1103d stamp 5311
7..Event:
message-summary..Content-Length: 0....
U 200.196.28.124:5060 ->
200.196.28.25:63042
SIP/2.0 407 Proxy Authentication
Required..Via: SIP/2.0/UDP 192.168.5.38:63042;branch=z9hG4bK-d8754z-7c5a2623fb530542-1---d8754z-;rport=63042;received=200.196.28.25..To:
"SP
S0"<sip:rafael@sps0.matrix.net.br>;tag=f8f2ab2c1295e90ed7dbb499b30f44b2.39a7..From:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=d1708236..Call-ID:
ZjdlZWUwNjkzM2ZmYzk1MDBkMGJm
YzVkYWIyZmMwM2Q...CSeq: 1
SUBSCRIBE..Proxy-Authenticate: Digest realm="sps0.matrix.net.br",
nonce="4a68f321000000012f11dfcfba5649b1bb6b23b82b0749a9"..Server:
Kamailio (1.5.1
-notls
(i386/linux))..Content-Length: 0....
U 200.196.28.25:63042 -> 200.196.28.124:5060
SUBSCRIBE
sip:rafael@sps0.matrix.net.br SIP/2.0..Via: SIP/2.0/UDP
192.168.5.38:63042;branch=z9hG4bK-d8754z-59288923603d7744-1---d8754z-;rport..Max-Forwards:
70..Contact: <si
p:rafael@200.196.28.25:63042>..To: "SPS0"<sip:rafael@sps0.matrix.net.br>..From:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=d1708236..Call-ID:
ZjdlZWUwNjkzM2ZmYzk1MDBkMGJmYzVk
YWIyZmMwM2Q...CSeq: 2
SUBSCRIBE..Expires: 300..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER,
NOTIFY, MESSAGE, SUBSCRIBE, INFO..Proxy-Authorization: Digest
username="rafae
l",realm="sps0.matrix.net.br",nonce="4a68f321000000012f11dfcfba5649b1bb6b23b82b0749a9",uri="sip:rafael@sps0.matrix.net.br",response="ea373d573d66ba1386711d34d96d75c1",algori
thm=MD5..User-Agent: X-Lite release
1103d stamp 53117..Event: message-summary..Content-Length: 0....
U 200.196.28.124:5060 ->
200.196.28.25:63042
SUBSCRIBE
sip:rafael@200.196.28.25:63042;rinstance=381876ea15534dcf
SIP/2.0..Record-Route: <sip:200.196.28.124;lr=on>..Via: SIP/2.0/UDP
200.196.28.124;branch=z9hG4bK3224.45a
47c61.0..Via: SIP/2.0/UDP
192.168.5.38:63042;received=200.196.28.25;branch=z9hG4bK-d8754z-59288923603d7744-1---d8754z-;rport=63042..Max-Forwards:
69..Contact: <sip:rafael@20
0.196.28.25:63042>..To:
"SPS0"<sip:rafael@sps0.matrix.net.br>..From:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=d1708236..Call-ID:
ZjdlZWUwNjkzM2ZmYzk1MDBkMGJmYzVkYWIyZmMwM2Q
...CSeq: 2 SUBSCRIBE..Expires:
300..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO..User-Agent: X-Lite release 1103d stamp 53117..Event: m
essage-summary..Content-Length:
0....
U 200.196.28.25:63042 ->
200.196.28.124:5060
SIP/2.0 489 Event Package Not
Supported..Via: SIP/2.0/UDP 200.196.28.124;branch=z9hG4bK3224.45a47c61.0..Via:
SIP/2.0/UDP 192.168.5.38:63042;received=200.196.28.25;branch=z9h
G4bK-d8754z-59288923603d7744-1---d8754z-;rport=63042..To:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=be58b818..From:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=d1708236..Call-
ID: ZjdlZWUwNjkzM2ZmYzk1MDBkMGJmYzVkYWIyZmMwM2Q...CSeq:
2 SUBSCRIBE..User-Agent: X-Lite release 1103d stamp 53117..Content-Length:
0....
U 200.196.28.124:5060 ->
200.196.28.25:63042
SIP/2.0 489 Event Package Not
Supported..Via: SIP/2.0/UDP 192.168.5.38:63042;received=200.196.28.25;branch=z9hG4bK-d8754z-59288923603d7744-1---d8754z-;rport=63042..To:
"SPS0
"<sip:rafael@sps0.matrix.net.br>;tag=be58b818..From:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=d1708236..Call-ID:
ZjdlZWUwNjkzM2ZmYzk1MDBkMGJmYzVkYWIyZmMwM2Q...CSeq: 2 SUBSC
RIBE..User-Agent: X-Lite release
1103d stamp 53117..Content-Length: 0....
U 200.196.28.25:63042 ->
200.196.28.124:5060
INVITE
sip:551133239212@sps0.matrix.net.br SIP/2.0..Via: SIP/2.0/UDP
192.168.5.38:63042;branch=z9hG4bK-d8754z-a957a2771c264219-1---d8754z-;rport..Max-Forwards:
70..Contact:
<sip:rafael@200.196.28.25:63042>..To:
"551133239212"<sip:551133239212@sps0.matrix.net.br>..From:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=b45cd830..Call-ID:
NzNiNzc0YzhkNTJ
mYWE1ZWNmYzcwZGNlMzQ3NDc5ZDU...CSeq:
1 INVITE..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO..Content-Type: application/sdp..User-Agent:
X-Lite release 1103d stamp
53117..Content-Length: 361....v=0..o=- 7 2 IN IP4 192.168.5.38..s=CounterPath
X-Lite 3.0..c=IN IP4 192.168.5.38..t=0 0..m=audio 8934 RTP/AVP 107 0
8 101..a=alt:1 3 :
b2cv/jrI CAiY+XUC 192.168.5.38 8934..a=alt:2 2 : oUZIn8S0 Uq5tdU9E 192.168.52.1
8934..a=alt:3 1 : Z8/DE0ry qIvXPCKF 192.168.228.1 8934..a=fmtp:101 0-15..
a=rtpmap:107 BV32/16000..a=rtpmap:101
telephone-event/8000..a=sendrecv..
U 200.196.28.124:5060 ->
200.196.28.25:63042
SIP/2.0 407 Proxy Authentication
Required..Via: SIP/2.0/UDP 192.168.5.38:63042;branch=z9hG4bK-d8754z-a957a2771c264219-1---d8754z-;rport=63042;received=200.196.28.25..To:
"55
1133239212"<sip:551133239212@sps0.matrix.net.br>;tag=f8f2ab2c1295e90ed7dbb499b30f44b2.e355..From:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=b45cd830..Call-ID:
NzNiNzc0YzhkNT
JmYWE1ZWNmYzcwZGNlMzQ3NDc5ZDU...CSeq: 1 INVITE..Proxy-Authenticate: Digest
realm="sps0.matrix.net.br",
nonce="4a68f32800000002a304ed8610abc47da56bdc29957a394d"..Server:
Kama
ilio (1.5.1-notls
(i386/linux))..Content-Length: 0....
U 200.196.28.25:63042 ->
200.196.28.124:5060
ACK
sip:551133239212@sps0.matrix.net.br SIP/2.0..Via: SIP/2.0/UDP
192.168.5.38:63042;branch=z9hG4bK-d8754z-a957a2771c264219-1---d8754z-;rport..To:
"551133239212"<sip:5511332
39212@sps0.matrix.net.br>;tag=f8f2ab2c1295e90ed7dbb499b30f44b2.e355..From:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=b45cd830..Call-ID:
NzNiNzc0YzhkNTJmYWE1ZWNmYzcwZGNlMzQ3N
Dc5ZDU...CSeq: 1
ACK..Content-Length: 0....
U 200.196.28.25:63042 -> 200.196.28.124:5060
INVITE sip:551133239212@sps0.matrix.net.br
SIP/2.0..Via: SIP/2.0/UDP
192.168.5.38:63042;branch=z9hG4bK-d8754z-267c082e8463a77a-1---d8754z-;rport..Max-Forwards:
70..Contact:
<sip:rafael@200.196.28.25:63042>..To:
"551133239212"<sip:551133239212@sps0.matrix.net.br>..From:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=b45cd830..Call-ID:
NzNiNzc0YzhkNTJ
mYWE1ZWNmYzcwZGNlMzQ3NDc5ZDU...CSeq:
2 INVITE..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO..Content-Type: application/sdp..Proxy-Author
ization: Digest
username="rafael",realm="sps0.matrix.net.br",nonce="4a68f32800000002a304ed8610abc47da56bdc29957a394d",uri="sip:551133239212@sps0.matrix.net.br",response="bd0
2426b09957f78a347036f020e4c48",algorithm=MD5..User-Agent: X-Lite release 1103d
stamp 53117..Content-Length: 361....v=0..o=- 7 2 IN IP4
192.168.5.38..s=CounterPath X-Lite 3.0
..c=IN IP4 192.168.5.38..t=0
0..m=audio 8934 RTP/AVP 107 0 8 101..a=alt:1 3 : b2cv/jrI CAiY+XUC 192.168.5.38
8934..a=alt:2 2 : oUZIn8S0 Uq5tdU9E 192.168.52.1 8934..a=alt:3 1
: Z8/DE0ry qIvXPCKF
192.168.228.1 8934..a=fmtp:101 0-15..a=rtpmap:107 BV32/16000..a=rtpmap:101
telephone-event/8000..a=sendrecv..
U 200.196.28.124:5060 ->
200.196.28.25:63042
SIP/2.0 404 Not Found..Via:
SIP/2.0/UDP 192.168.5.38:63042;branch=z9hG4bK-d8754z-267c082e8463a77a-1---d8754z-;rport=63042;received=200.196.28.25..To:
"551133239212"<sip:5511
33239212@sps0.matrix.net.br>;tag=bbd8f31c58bc6a3266ec5509a254d55b-2513..From:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=b45cd830..Call-ID:
NzNiNzc0YzhkNTJmYWE1ZWNmYzcwZGNlMz
Q3NDc5ZDU...CSeq: 2 INVITE..Server:
Kamailio (1.5.1-notls (i386/linux))..Content-Length: 0....
U 200.196.28.25:63042 -> 200.196.28.124:5060
ACK sip:551133239212@sps0.matrix.net.br SIP/2.0..Via:
SIP/2.0/UDP 192.168.5.38:63042;branch=z9hG4bK-d8754z-267c082e8463a77a-1---d8754z-;rport..To:
"551133239212"<sip:5511332
39212@sps0.matrix.net.br>;tag=bbd8f31c58bc6a3266ec5509a254d55b-2513..From:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=b45cd830..Call-ID:
NzNiNzc0YzhkNTJmYWE1ZWNmYzcwZGNlMzQ3N
Dc5ZDU...CSeq: 2
ACK..Content-Length: 0....
-------------------------------------------------------------
SIP LOG
SIP/2.0 489 Event Package Not Supported
Via: SIP/2.0/UDP 192.168.5.38:63042;received=200.196.28.25;branch=z9hG4bK-d8754z-59288923603d7744-1---d8754z-;rport=63042
To:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=be58b818
From:
"SPS0"<sip:rafael@sps0.matrix.net.br>;tag=d1708236
Call-ID: ZjdlZWUwNjkzM2ZmYzk1MDBkMGJmYzVkYWIyZmMwM2Q.
CSeq: 2 SUBSCRIBE
User-Agent: X-Lite release 1103d stamp
53117
Content-Length: 0
Jul 23 20:32:19 [2948]
DBG:core:_shm_resize: resize(0) called
Jul 23 20:32:19 [2948]
DBG:tm:insert_timer_unsafe: [2]: 0xafc1d4f8 (15)
Jul 23 20:32:19 [2948] DBG:tm:relay_reply:
sent buf=0x8149d48: SIP/2.0 4..., shmem=0xafc1f430: SIP/2.0 4
Jul 23 20:32:19 [2948]
DBG:tm:run_trans_callbacks: trans=0xafc1d4b0, callback type 256, id 0 entered
Jul 23 20:32:19 [2948]
DBG:tm:cleanup_uac_timers: RETR/FR timers reset
Jul 23 20:32:19 [2948] DBG:tm:t_unref:
UNREF_UNSAFE: after is 0
Jul 23 20:32:19 [2948]
DBG:core:destroy_avp_list: destroying list (nil)
Jul 23 20:32:19 [2948]
DBG:core:receive_msg: cleaning up
Jul 23 20:32:20 [2950]
DBG:tm:utimer_routine: timer routine:4,tl=0xafc1d5fc next=(nil),
timeout=10400000
Jul 23 20:32:24 [2950]
DBG:tm:timer_routine: timer routine:2,tl=0xafc1d4f8 next=(nil), timeout=15
Jul 23 20:32:24 [2950] DBG:tm:wait_handler:
removing 0xafc1d4b0 from table
Jul 23 20:32:24 [2950] DBG:tm:delete_cell:
delete transaction 0xafc1d4b0
Jul 23 20:32:24 [2950] DBG:tm:wait_handler:
done
Jul 23 20:32:25 [2946]
DBG:core:udp_rcv_loop: probing packet received from 200.202.22.5 55325
Jul 23 20:32:26 [2949] DBG:core:parse_msg:
SIP Request:
Jul 23 20:32:26 [2949]
DBG:core:parse_msg: method: <INVITE>
Jul 23 20:32:26 [2949]
DBG:core:parse_msg: uri:
<sip:551133239212@sps0.matrix.net.br>
Jul 23 20:32:26 [2949]
DBG:core:parse_msg: version: <SIP/2.0>
Jul 23 20:32:26 [2949] DBG:core:parse_headers:
flags=2
Jul 23 20:32:26 [2949]
DBG:core:parse_via_param: found param type 232, <branch> =
<z9hG4bK-d8754z-a957a2771c264219-1---d8754z->; state=6
Jul 23 20:32:26 [2949]
DBG:core:parse_via_param: found param type 235, <rport> = <n/a>;
state=17
Jul 23 20:32:26 [2949] DBG:core:parse_via:
end of header reached, state=5
Jul 23 20:32:26 [2949]
DBG:core:parse_headers: via found, flags=2
Jul 23 20:32:26 [2949]
DBG:core:parse_headers: this is the first via
Jul 23 20:32:26 [2949]
DBG:core:receive_msg: After parse_msg...
Jul 23 20:32:26 [2949]
DBG:core:receive_msg: preparing to run routing scripts...
Jul 23 20:32:26 [2949]
DBG:core:parse_headers: flags=100
Jul 23 20:32:26 [2949]
DBG:maxfwd:is_maxfwd_present: value = 70
Jul 23 20:32:26 [2949]
DBG:core:parse_headers: flags=8
Jul 23 20:32:26 [2949] DBG:core:parse_to:
end of header reached, state=10
Jul 23 20:32:26 [2949] DBG:core:parse_to:
display={"551133239212"}, ruri={sip:551133239212@sps0.matrix.net.br}
Jul 23 20:32:26 [2949]
DBG:core:get_hdr_field: <To> [53]; uri=[sip:551133239212@sps0.matrix.net.br]
Jul 23 20:32:26 [2949]
DBG:core:get_hdr_field: to body
["551133239212"<sip:551133239212@sps0.matrix.net.br>
]
Jul 23 20:32:26 [2949]
DBG:siputils:has_totag: no totag
Jul 23 20:32:26 [2949]
DBG:core:parse_headers: flags=78
Jul 23 20:32:26 [2949]
DBG:core:get_hdr_field: cseq <CSeq>: <1> <INVITE>
Jul 23 20:32:26 [2949]
DBG:tm:t_lookup_request: start searching: hash=24133, isACK=0
Jul 23 20:32:26 [2949]
DBG:tm:matching_3261: RFC3261 transaction matching failed
Jul 23 20:32:26 [2949]
DBG:tm:t_lookup_request: no transaction found
Jul 23 20:32:26 [2949]
DBG:core:parse_to_param: tag=b45cd830
Jul 23 20:32:26 [2949] DBG:core:parse_to:
end of header reached, state=29
Jul 23 20:32:26 [2949] DBG:core:parse_to:
display={"SPS0"}, ruri={sip:rafael@sps0.matrix.net.br}
Jul 23 20:32:26 [2949]
DBG:core:grep_sock_info: checking if host==us: 18==9 &&
[sps0.matrix.net.br] == [127.0.0.1]
Jul 23 20:32:26 [2949]
DBG:core:grep_sock_info: checking if port 5060 matches port 5060
Jul 23 20:32:26 [2949]
DBG:core:grep_sock_info: checking if host==us: 18==14 &&
[sps0.matrix.net.br] == [200.196.28.124]
Jul 23 20:32:26 [2949]
DBG:core:grep_sock_info: checking if port 5060 matches port 5060
Jul 23 20:32:26 [2949]
DBG:core:grep_sock_info: checking if host==us: 18==9 &&
[sps0.matrix.net.br] == [127.0.0.1]
Jul 23 20:32:26 [2949]
DBG:core:grep_sock_info: checking if port 5060 matches port 5060
Jul 23 20:32:26 [2949]
DBG:core:grep_sock_info: checking if host==us: 18==14 &&
[sps0.matrix.net.br] == [200.196.28.124]
Jul 23 20:32:26 [2949]
DBG:core:grep_sock_info: checking if port 5060 matches port 5060
Jul 23 20:32:26 [2949]
DBG:core:grep_sock_info: no match for: [sps0.matrix.net.br:5060]
Jul 23 20:32:26 [2949]
DBG:core:grep_aliases: comparing host [0:sps0.matrix.net.br:5060] with us
[2:sps0.matrix.net.br:5060]
Jul 23 20:32:26 [2949]
DBG:core:grep_aliases: match found for: [0:sps0.matrix.net.br:5060]
Jul 23 20:32:26 [2949] DBG:core:check_self:
host == me
Jul 23 20:32:26 [2949] DBG:core:parse_headers:
flags=10000
Jul 23 20:32:26 [2949]
DBG:core:get_hdr_field: content_length=361
Jul 23 20:32:26 [2949]
DBG:core:get_hdr_field: found end of header
Jul 23 20:32:26 [2949] DBG:auth:pre_auth:
credentials with given realm not found
Jul 23 20:32:26 [2949] DBG:auth:reserve_nonce_index:
second= 16, sec_monit= -1, index= 2
Jul 23 20:32:26 [2949]
DBG:auth:build_auth_hf: nonce index= 2
Jul 23 20:32:26 [2949]
DBG:auth:build_auth_hf: 'Proxy-Authenticate: Digest
realm="sps0.matrix.net.br", nonce="4a68f32800000002a304ed8610abc47da56bdc29957a394d"
'
Jul 23 20:32:26 [2949] DBG:sl:send_reply:
reply in stateless mode (sl)
Jul 23 20:32:26 [2949]
DBG:core:parse_headers: flags=ffffffffffffffff
Jul 23 20:32:26 [2949]
DBG:core:check_via_address: params 200.196.28.25, 192.168.5.38, 0
Jul 23 20:32:26 [2949]
DBG:core:destroy_avp_list: destroying list (nil)
Jul 23 20:32:26 [2949]
DBG:core:receive_msg: cleaning up
Jul 23 20:32:26 [2947] DBG:core:parse_msg:
SIP Request:
Jul 23 20:32:26 [2947]
DBG:core:parse_msg: method: <ACK>
Jul 23 20:32:26 [2947]
DBG:core:parse_msg: uri:
<sip:551133239212@sps0.matrix.net.br>
Jul 23 20:32:26 [2947]
DBG:core:parse_msg: version: <SIP/2.0>
Jul 23 20:32:26 [2947]
DBG:core:parse_headers: flags=2
Jul 23 20:32:26 [2947] DBG:core:parse_via_param:
found param type 232, <branch> =
<z9hG4bK-d8754z-a957a2771c264219-1---d8754z->; state=6
Jul 23 20:32:26 [2947]
DBG:core:parse_via_param: found param type 235, <rport> = <n/a>;
state=17
Jul 23 20:32:26 [2947] DBG:core:parse_via:
end of header reached, state=5
Jul 23 20:32:26 [2947]
DBG:core:parse_headers: via found, flags=2
Jul 23 20:32:26 [2947]
DBG:core:parse_headers: this is the first via
Jul 23 20:32:26 [2947]
DBG:core:receive_msg: After parse_msg...
Jul 23 20:32:26 [2947] DBG:core:receive_msg:
preparing to run routing scripts...
Jul 23 20:32:26 [2947]
DBG:core:parse_headers: flags=8
Jul 23 20:32:26 [2947]
DBG:core:parse_to_param: tag=f8f2ab2c1295e90ed7dbb499b30f44b2.e355
Jul 23 20:32:26 [2947] DBG:core:parse_to:
end of header reached, state=29
Jul 23 20:32:26 [2947] DBG:core:parse_to:
display={"551133239212"}, ruri={sip:551133239212@sps0.matrix.net.br}
Jul 23 20:32:26 [2947]
DBG:core:get_hdr_field: <To> [95];
uri=[sip:551133239212@sps0.matrix.net.br]
Jul 23 20:32:26 [2947] DBG:core:get_hdr_field:
to body ["551133239212"<sip:551133239212@sps0.matrix.net.br>]
Jul 23 20:32:26 [2947]
DBG:sl:sl_filter_ACK: local ACK found -> dropping it!
Jul 23 20:32:26 [2947]
DBG:core:destroy_avp_list: destroying list (nil)
Jul 23 20:32:26 [2947] DBG:core:receive_msg:
cleaning up
Jul 23 20:32:27 [2946] DBG:core:parse_msg:
SIP Request:
Jul 23 20:32:27 [2946]
DBG:core:parse_msg: method: <INVITE>
Jul 23 20:32:27 [2946]
DBG:core:parse_msg: uri:
<sip:551133239212@sps0.matrix.net.br>
Jul 23 20:32:27 [2946]
DBG:core:parse_msg: version: <SIP/2.0>
Jul 23 20:32:27 [2946]
DBG:core:parse_headers: flags=2
Jul 23 20:32:27 [2946]
DBG:core:parse_via_param: found param type 232, <branch> =
<z9hG4bK-d8754z-267c082e8463a77a-1---d8754z->; state=6
Jul 23 20:32:27 [2946]
DBG:core:parse_via_param: found param type 235, <rport> = <n/a>;
state=17
Jul 23 20:32:27 [2946] DBG:core:parse_via:
end of header reached, state=5
Jul 23 20:32:27 [2946]
DBG:core:parse_headers: via found, flags=2
Jul 23 20:32:27 [2946] DBG:core:parse_headers:
this is the first via
Jul 23 20:32:27 [2946]
DBG:core:receive_msg: After parse_msg...
Jul 23 20:32:27 [2946]
DBG:core:receive_msg: preparing to run routing scripts...
Jul 23 20:32:27 [2946]
DBG:core:parse_headers: flags=100
Jul 23 20:32:27 [2946]
DBG:maxfwd:is_maxfwd_present: value = 70
Jul 23 20:32:27 [2946]
DBG:core:parse_headers: flags=8
Jul 23 20:32:27 [2946] DBG:core:parse_to:
end of header reached, state=10
Jul 23 20:32:27 [2946] DBG:core:parse_to:
display={"551133239212"}, ruri={sip:551133239212@sps0.matrix.net.br}
Jul 23 20:32:27 [2946]
DBG:core:get_hdr_field: <To> [53];
uri=[sip:551133239212@sps0.matrix.net.br]
Jul 23 20:32:27 [2946]
DBG:core:get_hdr_field: to body
["551133239212"<sip:551133239212@sps0.matrix.net.br>
]
Jul 23 20:32:27 [2946]
DBG:siputils:has_totag: no totag
Jul 23 20:32:27 [2946]
DBG:core:parse_headers: flags=78
Jul 23 20:32:27 [2946]
DBG:core:get_hdr_field: cseq <CSeq>: <2> <INVITE>
Jul 23 20:32:27 [2946]
DBG:tm:t_lookup_request: start searching: hash=24130, isACK=0
Jul 23 20:32:27 [2946]
DBG:tm:matching_3261: RFC3261 transaction matching failed
Jul 23 20:32:27 [2946]
DBG:tm:t_lookup_request: no transaction found
Jul 23 20:32:27 [2946]
DBG:core:parse_to_param: tag=b45cd830
Jul 23 20:32:27 [2946] DBG:core:parse_to:
end of header reached, state=29
Jul 23 20:32:27 [2946] DBG:core:parse_to:
display={"SPS0"}, ruri={sip:rafael@sps0.matrix.net.br}
Jul 23 20:32:27 [2946]
DBG:core:grep_sock_info: checking if host==us: 18==9 &&
[sps0.matrix.net.br] == [127.0.0.1]
Jul 23 20:32:27 [2946]
DBG:core:grep_sock_info: checking if port 5060 matches port 5060
Jul 23 20:32:27 [2946]
DBG:core:grep_sock_info: checking if host==us: 18==14 &&
[sps0.matrix.net.br] == [200.196.28.124]
Jul 23 20:32:27 [2946]
DBG:core:grep_sock_info: checking if port 5060 matches port 5060
Jul 23 20:32:27 [2946]
DBG:core:grep_sock_info: checking if host==us: 18==9 &&
[sps0.matrix.net.br] == [127.0.0.1]
Jul 23 20:32:27 [2946]
DBG:core:grep_sock_info: checking if port 5060 matches port 5060
Jul 23 20:32:27 [2946] DBG:core:grep_sock_info:
checking if host==us: 18==14 && [sps0.matrix.net.br] ==
[200.196.28.124]
Jul 23 20:32:27 [2946]
DBG:core:grep_sock_info: checking if port 5060 matches port 5060
Jul 23 20:32:27 [2946]
DBG:core:grep_sock_info: no match for: [sps0.matrix.net.br:5060]
Jul 23 20:32:27 [2946]
DBG:core:grep_aliases: comparing host [0:sps0.matrix.net.br:5060] with us
[2:sps0.matrix.net.br:5060]
Jul 23 20:32:27 [2946]
DBG:core:grep_aliases: match found for: [0:sps0.matrix.net.br:5060]
Jul 23 20:32:27 [2946] DBG:core:check_self:
host == me
Jul 23 20:32:27 [2946]
DBG:core:parse_headers: flags=10000
Jul 23 20:32:27 [2946]
DBG:auth:check_nonce: comparing
[4a68f32800000002a304ed8610abc47da56bdc29957a394d] and
[4a68f32800000002a304ed8610abc47da56bdc29957a394d]
Jul 23 20:32:27 [2946]
DBG:core:db_new_result: allocate 28 bytes for result set at 0x814db68
Jul 23 20:32:27 [2946]
DBG:db_mysql:db_mysql_get_columns: 1 columns returned from the query
Jul 23 20:32:27 [2946]
DBG:core:db_allocate_columns: allocate 4 bytes for result names at 0x8145e18
Jul 23 20:32:27 [2946]
DBG:core:db_allocate_columns: allocate 4 bytes for result types at 0x8149f50
Jul 23 20:32:27 [2946]
DBG:db_mysql:db_mysql_get_columns: allocate 8 bytes for RES_NAMES[0] at
0x8149798
Jul 23 20:32:27 [2946]
DBG:db_mysql:db_mysql_get_columns: RES_NAMES(0x8149798)[0]=[password]
Jul 23 20:32:27 [2946]
DBG:db_mysql:db_mysql_get_columns: use DB_STRING result type
Jul 23 20:32:27 [2946]
DBG:core:db_allocate_rows: allocate 8 bytes for rows at 0x8149c70
Jul 23 20:32:27 [2946]
DBG:core:db_allocate_row: allocate 20 bytes for row values at 0x813e0c0
Jul 23 20:32:27 [2946] DBG:core:db_str2val:
converting STRING [rmg25788]
Jul 23 20:32:27 [2946] DBG:auth_db:get_ha1:
HA1 string calculated: 25eb28681da92677e1e02a0e83d6f255
Jul 23 20:32:27 [2946]
DBG:auth:check_response: our result = 'bd02426b09957f78a347036f020e4c48'
Jul 23 20:32:27 [2946]
DBG:auth:check_response: authorization is OK
Jul 23 20:32:27 [2946] DBG:auth:post_auth:
nonce index= 2
Jul 23 20:32:27 [2946] DBG:core:db_free_columns:
freeing 1 columns
Jul 23 20:32:27 [2946]
DBG:core:db_free_columns: freeing RES_NAMES[0] at 0x8149798
Jul 23 20:32:27 [2946]
DBG:core:db_free_columns: freeing result names at 0x8145e18
Jul 23 20:32:27 [2946]
DBG:core:db_free_columns: freeing result types at 0x8149f50
Jul 23 20:32:27 [2946]
DBG:core:db_free_rows: freeing 1 rows
Jul 23 20:32:27 [2946]
DBG:core:db_free_row: freeing row values at 0x813e0c0
Jul 23 20:32:27 [2946]
DBG:core:db_free_rows: freeing rows at 0x8149c70
Jul 23 20:32:27 [2946]
DBG:core:db_free_result: freeing result set at 0x814db68
Jul 23 20:32:27 [2946]
DBG:core:parse_headers: flags=14000
Jul 23 20:32:27 [2946]
DBG:core:get_hdr_field: content_length=361
Jul 23 20:32:27 [2946]
DBG:core:get_hdr_field: found end of header
Jul 23 20:32:27 [2946]
DBG:core:comp_scriptvar: str 29 : rafael
Jul 23 20:32:27 [2946]
DBG:core:grep_sock_info: checking if host==us: 18==9 &&
[sps0.matrix.net.br] == [127.0.0.1]
Jul 23 20:32:27 [2946]
DBG:core:grep_sock_info: checking if port 5060 matches port 5060
Jul 23 20:32:27 [2946]
DBG:core:grep_sock_info: checking if host==us: 18==14 &&
[sps0.matrix.net.br] == [200.196.28.124]
Jul 23 20:32:27 [2946]
DBG:core:grep_sock_info: checking if port 5060 matches port 5060
Jul 23 20:32:27 [2946] DBG:core:grep_sock_info:
checking if host==us: 18==9 && [sps0.matrix.net.br] ==
[127.0.0.1]
Jul 23 20:32:27 [2946]
DBG:core:grep_sock_info: checking if port 5060 matches port 5060
Jul 23 20:32:27 [2946]
DBG:core:grep_sock_info: checking if host==us: 18==14 &&
[sps0.matrix.net.br] == [200.196.28.124]
Jul 23 20:32:27 [2946]
DBG:core:grep_sock_info: checking if port 5060 matches port 5060
Jul 23 20:32:27 [2946]
DBG:core:grep_sock_info: no match for: [sps0.matrix.net.br:5060]
Jul 23 20:32:27 [2946] DBG:core:grep_aliases:
comparing host [0:sps0.matrix.net.br:5060] with us [2:sps0.matrix.net.br:5060]
Jul 23 20:32:27 [2946]
DBG:core:grep_aliases: match found for: [0:sps0.matrix.net.br:5060]
Jul 23 20:32:27 [2946] DBG:core:check_self:
host == me
Jul 23 20:32:27 [2946]
DBG:registrar:lookup: '551133239212' Not found in usrloc
Jul 23 20:32:27 [2946] DBG:tm:t_newtran:
transaction on entrance=(nil)
Jul 23 20:32:27 [2946]
DBG:core:parse_headers: flags=ffffffffffffffff
Jul 23 20:32:27 [2946]
DBG:core:parse_headers: flags=78
Jul 23 20:32:27 [2946]
DBG:tm:t_lookup_request: start searching: hash=24130, isACK=0
Jul 23 20:32:27 [2946]
DBG:tm:matching_3261: RFC3261 transaction matching failed
Jul 23 20:32:27 [2946]
DBG:tm:t_lookup_request: no transaction found
Jul 23 20:32:27 [2946]
DBG:tm:run_reqin_callbacks: trans=0xafc1d4b0, callback type 1, id 0 entered
Jul 23 20:32:27 [2946]
DBG:core:parse_headers: flags=78
Jul 23 20:32:27 [2946]
DBG:core:parse_headers: flags=ffffffffffffffff
Jul 23 20:32:27 [2946]
DBG:core:check_via_address: params 200.196.28.25, 192.168.5.38, 0
Jul 23 20:32:27 [2946]
DBG:core:_shm_resize: resize(0) called
Jul 23 20:32:27 [2946]
DBG:tm:cleanup_uac_timers: RETR/FR timers reset
Jul 23 20:32:27 [2946] DBG:tm:set_timer:
relative timeout is 500000
Jul 23 20:32:27 [2946]
DBG:tm:insert_timer_unsafe: [4]: 0xafc1d578 (17700000)
Jul 23 20:32:27 [2946] DBG:tm:set_timer:
relative timeout is 30
Jul 23 20:32:27 [2946]
DBG:tm:insert_timer_unsafe: [0]: 0xafc1d594 (47)
Jul 23 20:32:27 [2946] DBG:tm:_reply_light:
reply sent out. buf=0x814ddf8: SIP/2.0 4..., shmem=0xafc1f148: SIP/2.0 4
Jul 23 20:32:27 [2946]
DBG:tm:run_trans_callbacks: trans=0xafc1d4b0, callback type 256, id 0 entered
Jul 23 20:32:27 [2946] DBG:tm:_reply_light:
finished
Jul 23 20:32:27 [2946] DBG:tm:t_unref: UNREF_UNSAFE:
after is 0
Jul 23 20:32:27 [2946]
DBG:core:destroy_avp_list: destroying list (nil)
Jul 23 20:32:27 [2946]
DBG:core:receive_msg: cleaning up
Jul 23 20:32:27 [2948] DBG:core:parse_msg:
SIP Request:
Jul 23 20:32:27 [2948]
DBG:core:parse_msg: method: <ACK>
Jul 23 20:32:27 [2948]
DBG:core:parse_msg: uri:
<sip:551133239212@sps0.matrix.net.br>
Jul 23 20:32:27 [2948]
DBG:core:parse_msg: version: <SIP/2.0>
Jul 23 20:32:27 [2948]
DBG:core:parse_headers: flags=2
Jul 23 20:32:27 [2948] DBG:core:parse_via_param:
found param type 232, <branch> =
<z9hG4bK-d8754z-267c082e8463a77a-1---d8754z->; state=6
Jul 23 20:32:27 [2948]
DBG:core:parse_via_param: found param type 235, <rport> = <n/a>;
state=17
Jul 23 20:32:27 [2948] DBG:core:parse_via:
end of header reached, state=5
Jul 23 20:32:27 [2948]
DBG:core:parse_headers: via found, flags=2
Jul 23 20:32:27 [2948]
DBG:core:parse_headers: this is the first via
Jul 23 20:32:27 [2948]
DBG:core:receive_msg: After parse_msg...
Jul 23 20:32:27 [2948] DBG:core:receive_msg:
preparing to run routing scripts...
Jul 23 20:32:27 [2948]
DBG:core:parse_headers: flags=8
Jul 23 20:32:27 [2948]
DBG:core:parse_to_param: tag=bbd8f31c58bc6a3266ec5509a254d55b-2513
Jul 23 20:32:27 [2948] DBG:core:parse_to:
end of header reached, state=29
Jul 23 20:32:27 [2948] DBG:core:parse_to:
display={"551133239212"}, ruri={sip:551133239212@sps0.matrix.net.br}
Jul 23 20:32:27 [2948]
DBG:core:get_hdr_field: <To> [95];
uri=[sip:551133239212@sps0.matrix.net.br]
Jul 23 20:32:27 [2948] DBG:core:get_hdr_field:
to body ["551133239212"<sip:551133239212@sps0.matrix.net.br>]
Jul 23 20:32:27 [2948]
DBG:core:parse_headers: flags=100
Jul 23 20:32:27 [2948]
DBG:core:get_hdr_field: cseq <CSeq>: <2> <ACK>
Jul 23 20:32:27 [2948]
DBG:core:get_hdr_field: content_length=0
Jul 23 20:32:27 [2948]
DBG:core:get_hdr_field: found end of header
Jul 23 20:32:27 [2948]
DBG:maxfwd:is_maxfwd_present: max_forwards header not found!
Jul 23 20:32:27 [2948]
DBG:siputils:has_totag: totag found
Jul 23 20:32:27 [2948] DBG:core:parse_headers:
flags=200
Jul 23 20:32:27 [2948]
DBG:rr:find_first_route: No Route headers found
Jul 23 20:32:27 [2948] DBG:rr:loose_route:
There is no Route HF
Jul 23 20:32:27 [2948]
DBG:core:parse_headers: flags=78
Jul 23 20:32:27 [2948] DBG:tm:t_lookup_request:
start searching: hash=24130, isACK=1
Jul 23 20:32:27 [2948]
DBG:tm:matching_3261: RFC3261 transaction matched,
tid=-d8754z-267c082e8463a77a-1---d8754z-
Jul 23 20:32:27 [2948]
DBG:tm:t_lookup_request: REF_UNSAFE: after is 1
Jul 23 20:32:27 [2948]
DBG:tm:t_lookup_request: transaction found (T=0xafc1d4b0)
Jul 23 20:32:27 [2948]
DBG:tm:cleanup_uac_timers: RETR/FR timers reset
Jul 23 20:32:27 [2948]
DBG:tm:insert_timer_unsafe: [2]: 0xafc1d4f8 (22)
Jul 23 20:32:27 [2948] DBG:tm:t_unref: UNREF_UNSAFE:
after is 0
Jul 23 20:32:27 [2948]
DBG:core:destroy_avp_list: destroying list (nil)
Jul 23 20:32:27 [2948]
DBG:core:receive_msg: cleaning up
Jul 23 20:32:27 [2950]
DBG:tm:utimer_routine: timer routine:4,tl=0xafc1d578 next=(nil),
timeout=17700000
Jul 23 20:32:31 [2950]
DBG:tm:timer_routine: timer routine:2,tl=0xafc1d4f8 next=(nil), timeout=22
Jul 23 20:32:31 [2950] DBG:tm:wait_handler:
removing 0xafc1d4b0 from table
Jul 23 20:32:31 [2950] DBG:tm:delete_cell:
delete transaction 0xafc1d4b0
Jul 23 20:32:31 [2950] DBG:tm:wait_handler:
done
Jul 23 20:32:34 [2947]
DBG:core:udp_rcv_loop: probing packet received from 200.202.22.5 55325
-------------------------------------------------------------
My Config File
#
# $Id: kamailio.cfg 5800 2009-04-20 11:01:49Z
miconda $
#
# Kamailio (OpenSER) SIP Server - basic
configuration script
# - web:
http://www.kamailio.org
# - svn:
http://openser.svn.sourceforge.net/viewvc/openser/
#
# Direct your questions about this file to:
<users@lists.kamailio.org>
#
# Refer to the Core CookBook at
http://www.kamailio.org/dokuwiki/doku.php
# for an explanation of possible
statements, functions and parameters.
#
# There are comments showing how to enable
different features in th econfig
# file. Such commented code starts with #X#
where X is a letter to identify
# a feature. Delete entire #X# if you want
to enable that feature. Next are
# sed commands that help you enable such
features.
#
# *** To enamble mysql execute:
# sed -i 's/#m#//g'
kamailio.cfg
#
# *** To enamble authentication execute:
# - enable mysql
# sed -i 's/#a#//g'
kamailio.cfg
# - add users using
'kamctl'
#
# *** To enamble persistent user location
execute:
# - enable mysql
# sed -i 's/#u#//g'
kamailio.cfg
#
# *** To enamble presence server execute:
# - enable mysql
# sed -i 's/#p#//g'
kamailio.cfg
#
# *** To enamble nat traversal execute:
# sed -i 's/#n#//g'
kamailio.cfg
# - install
RTPProxy: http://www.rtpproxy.org
# - start RTPProxy:
#
rtpproxy -l _your_public_ip_ -s udp:localhost:7722
#
# *** To enhance accounting execute:
# - enable mysql
# sed -i 's/#c#//g'
kamailio.cfg
# - add following
columns to database
# ALTER TABLE acc ADD COLUMN src_user
VARCHAR(64) NOT NULL DEFAULT '';
# ALTER TABLE acc ADD COLUMN src_domain
VARCHAR(128) NOT NULL DEFAULT '';
# ALTER TABLE acc ADD COLUMN dst_ouser
VARCHAR(64) NOT NULL DEFAULT '';
# ALTER TABLE acc ADD COLUMN dst_user
VARCHAR(64) NOT NULL DEFAULT '';
# ALTER TABLE acc ADD COLUMN dst_domain
VARCHAR(128) NOT NULL DEFAULT '';
# ALTER TABLE missed_calls ADD COLUMN
src_user VARCHAR(64) NOT NULL DEFAULT '';
# ALTER TABLE missed_calls ADD COLUMN
src_domain VARCHAR(128) NOT NULL DEFAULT '';
# ALTER TABLE missed_calls ADD COLUMN
dst_ouser VARCHAR(64) NOT NULL DEFAULT '';
# ALTER TABLE missed_call ADD COLUMN
dst_user VARCHAR(64) NOT NULL DEFAULT '';
# ALTER TABLE missed_calls ADD COLUMN
dst_domain VARCHAR(128) NOT NULL DEFAULT '';
#
####### Global Parameters #########
debug=7
log_stderror=yes
log_facility=LOG_LOCAL7
fork=yes
children=4
/* uncomment the following lines to enable
debugging */
#debug=6
#fork=no
#log_stderror=yes
/* uncomment the next line to disable TCP
(default on) */
#disable_tcp=yes
/* uncomment the next line to enable the auto
temporary blacklisting of
not available destinations
(default disabled) */
#disable_dns_blacklist=no
/* uncomment the next line to enable IPv6
lookup after IPv4 dns
lookup failures (default
disabled) */
#dns_try_ipv6=yes
/* uncomment the next line to disable the
auto discovery of local aliases
based on revers DNS on IPs
(default on) */
#auto_aliases=no
/* uncomment the following lines to enable
TLS support (default off) */
#disable_tls = no
#listen = tls:your_IP:5061
#tls_verify_server = 1
#tls_verify_client = 1
#tls_require_client_certificate = 0
#tls_method = TLSv1
#tls_certificate =
"/usr/local/etc/kamailio/tls/user/user-cert.pem"
#tls_private_key =
"/usr/local/etc/kamailio/tls/user/user-privkey.pem"
#tls_ca_list = "/usr/local/etc/kamailio/tls/user/user-calist.pem"
port=5060
/* uncomment and configure the following
line if you want Kamailio to
bind on a specific
interface/port/proto (default bind on all available) */
#listen=udp:192.168.1.2:5060
####### Modules Section ########
#set module path
mpath="/usr/lib/kamailio/modules/"
/* uncomment next line for MySQL DB support
*/
loadmodule "db_mysql.so"
loadmodule "mi_fifo.so"
loadmodule "sl.so"
loadmodule "tm.so"
loadmodule "rr.so"
loadmodule "pv.so"
loadmodule "maxfwd.so"
loadmodule "usrloc.so"
loadmodule "registrar.so"
loadmodule "textops.so"
loadmodule "uri_db.so"
loadmodule "siputils.so"
loadmodule "xlog.so"
loadmodule "acc.so"
/* uncomment next lines for MySQL based
authentication support
NOTE: a DB (like db_mysql)
module must be also loaded */
loadmodule "auth.so"
loadmodule "auth_db.so"
/* uncomment next line for aliases support
NOTE: a DB (like db_mysql)
module must be also loaded */
#loadmodule "alias_db.so"
/* uncomment next line for multi-domain
support
NOTE: a DB (like db_mysql)
module must be also loaded
NOTE: be sure and enable
multi-domain support in all used modules
(see "multi-module params" section ) */
#loadmodule "domain.so"
/* uncomment the next two lines for
presence server support
NOTE: a DB (like db_mysql)
module must be also loaded */
#p#loadmodule "presence.so"
#p#loadmodule "presence_xml.so"
#n#loadmodule "nathelper.so"
# ----------------- setting module-specific
parameters ---------------
# ----- mi_fifo params -----
modparam("mi_fifo",
"fifo_name", "/tmp/kamailio_fifo")
# ----- rr params -----
# add value to ;lr param to cope with most
of the UAs
modparam("rr",
"enable_full_lr", 1)
# do not append from tag to the RR (no need
for this script)
modparam("rr",
"append_fromtag", 0)
# ----- rr params -----
modparam("registrar",
"method_filtering", 1)
/* uncomment the next line to disable
parallel forking via location */
# modparam("registrar",
"append_branches", 0)
/* uncomment the next line not to allow
more than 10 contacts per AOR */
#modparam("registrar", "max_contacts",
10)
# ----- uri_db params -----
/* by default we disable the DB support in
the module as we do not need it
in this configuration */
modparam("uri_db",
"use_uri_table", 0)
modparam("uri_db", "db_url",
"")
# ----- acc params -----
/* what sepcial events should be accounted
? */
modparam("acc",
"early_media", 1)
modparam("acc",
"report_ack", 1)
modparam("acc",
"report_cancels", 1)
/* by default ww do not adjust the direct
of the sequential requests.
if you enable this parameter,
be sure the enable "append_fromtag"
in "rr" module */
modparam("acc",
"detect_direction", 0)
/* account triggers (flags) */
modparam("acc",
"failed_transaction_flag", 3)
modparam("acc", "log_flag",
1)
modparam("acc",
"log_missed_flag", 2)
modparam("acc",
"log_extra",
"src_user=$fU;src_domain=$fd;dst_ouser=$tU;dst_user=$rU;dst_domain=$rd")
/* uncomment the following lines to enable
DB accounting also */
#c#modparam("acc", "db_flag", 1)
#c#modparam("acc",
"db_missed_flag", 2)
#c#modparam("domain",
"db_url",
#c#
"mysql://openser:openserrw@localhost/openser")
#c#modparam("acc",
"db_extra",
#c#
"src_user=$fU;src_domain=$fd;dst_ouser=$tU;dst_user=$rU;dst_domain=$rd")
# ----- usrloc params -----
/* uncomment the following lines if you
want to enable DB persistency
for location entries */
modparam("usrloc",
"db_mode", 2)
modparam("usrloc", "db_url",
"mysql://root:mypassword@localhost/openser")
# ----- auth_db params -----
/* uncomment the following lines if you
want to enable the DB based
authentication */
modparam("auth_db",
"calculate_ha1", yes)
modparam("auth_db",
"password_column", "password")
modparam("auth_db",
"db_url",
"mysql://root:mypassword@localhost/openser")
modparam("auth_db",
"load_credentials", "")
# ----- alias_db params -----
/* uncomment the following lines if you
want to enable the DB based
aliases */
#modparam("alias_db", "db_url",
#
"mysql://openser:openserrw@localhost/openser")
# ----- domain params -----
/* uncomment the following lines to enable
multi-domain detection
support */
#modparam("domain",
"db_url",
#
"mysql://openser:openserrw@localhost/openser")
#modparam("domain",
"db_mode", 1) # Use caching
# ----- multi-module params -----
/* uncomment the following line if you want
to enable multi-domain support
in the modules (dafault off)
*/
#modparam("alias_db|auth_db|usrloc|uri_db",
"use_domain", 1)
# ----- presence params -----
/* uncomment the following lines if you
want to enable presence */
#p#modparam("presence|presence_xml",
"db_url",
#p#
"mysql://openser:openserrw@localhost/openser")
#p#modparam("presence_xml",
"force_active", 1)
#p#modparam("presence",
"server_address", "sip:192.168.1.2:5060")
# -- nathelper
#n#modparam("nathelper",
"rtpproxy_sock", "udp:127.0.0.1:7722")
#n#modparam("nathelper",
"natping_interval", 30)
#n#modparam("nathelper",
"ping_nated_only", 1)
#n#modparam("nathelper", "sipping_bflag",
7)
#n#modparam("nathelper",
"sipping_from", "sip:pinger@kamailio.org")
#n#modparam("registrar|nathelper",
"received_avp", "$avp(i:80)")
#n#modparam("usrloc",
"nat_bflag", 6)
####### Routing Logic ########
# main request routing logic
route{
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
exit;
}
# NAT detection
route(4);
if (has_totag()) {
# sequential request withing a dialog should
# take the path determined by record-routing
if (loose_route()) {
if (is_method("BYE")) {
setflag(1); # do accounting ...
setflag(3); # ... even if the transaction fails
}
route(1);
} else {
if (is_method("SUBSCRIBE") && uri == myself) {
# in-dialog subscribe requests
route(2);
exit;
}
if ( is_method("ACK") ) {
if ( t_check_trans() ) {
# non loose-route, but stateful ACK; must be an ACK after a 487 or e.g. 404
from upstream server
t_relay();
exit;
} else {
# ACK without matching transaction ... ignore and discard.\n");
exit;
}
}
sl_send_reply("404","Not here");
}
exit;
}
#initial requests
# CANCEL processing
if (is_method("CANCEL"))
{
if (t_check_trans())
t_relay();
exit;
}
t_check_trans();
# authentication
route(3);
# record routing
if (!is_method("REGISTER|MESSAGE"))
record_route();
# account only INVITEs
if (is_method("INVITE")) {
setflag(1); # do accounting
}
if (!uri==myself)
/* replace with following line if multi-domain support is used */
##if (!is_uri_host_local())
{
append_hf("P-hint: outbound\r\n");
# if you have some interdomain connections via TLS
##if($rd=="tls_domain1.net") {
## t_relay("tls:domain1.net");
## exit;
##} else if($rd=="tls_domain2.net") {
## t_relay("tls:domain2.net");
## exit;
##}
route(1);
}
# requests for my domain
if( is_method("PUBLISH|SUBSCRIBE"))
route(2);
if (is_method("REGISTER"))
{
if (!save("location"))
sl_reply_error();
exit;
}
if ($rU==NULL) {
# request with no Username in RURI
sl_send_reply("484","Address Incomplete");
exit;
}
# apply DB based aliases (uncomment to enable)
##alias_db_lookup("dbaliases");
if (!lookup("location")) {
switch ($retcode) {
case -1:
case -3:
t_newtran();
t_reply("404", "Not Found");
exit;
case -2:
sl_send_reply("405", "Method Not Allowed");
exit;
}
}
# when routing via usrloc, log the missed calls also
setflag(2);
route(1);
}
route[1] {
#n#
if (check_route_param("nat=yes")) {
#n#
setbflag(6);
#n#
}
#n#
if (isflagset(5) || isbflagset(6)) {
#n#
route(5);
#n#
}
/* example how to enable some additional event routes */
if (is_method("INVITE")) {
#t_on_branch("1");
t_on_reply("1");
t_on_failure("1");
}
if (!t_relay()) {
sl_reply_error();
}
exit;
}
# Presence route
/* uncomment the whole following route for
enabling presence server */
route[2]
{
#p#
if (!t_newtran())
#p#
{
#p#
sl_reply_error();
#p#
exit;
#p#
};
#p#
#p#
if(is_method("PUBLISH"))
#p#
{
#p#
handle_publish();
#p#
t_release();
#p#
}
#p#
else
#p#
if( is_method("SUBSCRIBE"))
#p#
{
#p#
handle_subscribe();
#p#
t_release();
#p#
}
#p#
exit;
# if presence enabled, this part will not be executed
if (is_method("PUBLISH") || $rU==null)
{
sl_send_reply("404", "Not here");
exit;
}
return;
}
# Authentication route
/* uncomment the whole following route for
enabling authentication */
route[3] {
if (is_method("REGISTER"))
{
# authenticate the REGISTER requests (uncomment to enable auth)
if (!www_authorize("", "subscriber"))
{
www_challenge("", "0");
exit;
}
if ($au!=$tU)
{
sl_send_reply("403","Forbidden auth ID");
exit;
}
} else {
# authenticate if from local subscriber (uncomment to enable auth)
if (from_uri==myself)
{
if (!proxy_authorize("", "subscriber")) {
proxy_challenge("", "0");
exit;
}
if (is_method("PUBLISH"))
{
if ($au!=$tU) {
sl_send_reply("403","Forbidden auth ID");
exit;
}
} else {
if ($au!=$fU) {
sl_send_reply("403","Forbidden auth ID");
exit;
}
}
consume_credentials();
# caller authenticated
}
}
return;
}
# Caller NAT detection route
/* uncomment the whole following route for
enabling Caller NAT Detection */
route[4]{
#n#
force_rport();
#n#
if (nat_uac_test("19")) {
#n#
if (method=="REGISTER") {
#n#
fix_nated_register();
#n#
} else {
#n#
fix_nated_contact();
#n#
}
#n#
setflag(5);
#n# }
return;
}
# RTPProxy control
/* uncomment the whole following route for
enabling RTPProxy Control */
route[5] {
#n#
if (is_method("BYE")) {
#n#
unforce_rtp_proxy();
#n#
} else if (is_method("INVITE")){
#n#
force_rtp_proxy();
#n#
}
#n#
if (!has_totag()) add_rr_param(";nat=yes");
return;
}
branch_route[1] {
xdbg("new branch at $ru\n");
}
onreply_route[1] {
xdbg("incoming reply\n");
#n#
if ((isflagset(5) || isbflagset(6)) &&
status=~"(183)|(2[0-9][0-9])") {
#n#
force_rtp_proxy();
#n#
}
#n#
if (isbflagset(6)) {
#n#
fix_nated_contact();
#n#
}
}
failure_route[1] {
#n#
if (is_method("INVITE)
#n#
&& (isbflagset(6) || isflagset(5))) {
#n#
unforce_rtp_proxy();
#n#
}
if (t_was_cancelled()) {
exit;
}
# uncomment the following lines if you want to block client
# redirect based on 3xx replies.
##if (t_check_status("3[0-9][0-9]")) {
##t_reply("404","Not found");
## exit;
##}
# uncomment the following lines if you want to redirect the failed
# calls to a different new destination
##if (t_check_status("486|408")) {
##
sethostport("192.168.2.100:5060");
## append_branch();
## # do not set the
missed call flag again
## t_relay();
##}
}
-------------------------------------------------------------
kamctl lcr show
lcr routes
+----+--------+----------+--------+----------+
| id | prefix | from_uri | grp_id |
priority |
+----+--------+----------+--------+----------+
| 3 | +1
|
| 1 | 1
|
| 4 | +55
|
| 1 | 1
|
+----+--------+----------+--------+----------+
lcr gateways
+---------+----------------+----------+------+------------+-----------+--------+-------+------+-------+--------+------+
| gw_name |
ip_addr | hostname | port |
uri_scheme | transport | grp_id | strip | tag | flags | weight | ping |
+---------+----------------+----------+------+------------+-----------+--------+-------+------+-------+--------+------+
| MERAI | 66.165.166.236
| | 5061
| 1
| 2
| 1 | 0
| | 0
| 1 | 0 |
| MERAII | 66.165.166.237
| | 5061
| 1
| 2
| 1 | 0 |
| 0 | 1
| 0 |
+---------+----------------+----------+------+------------+-----------+--------+-------+------+-------+--------+------+
-------------------------------------------------------------
kamctl dispatcher show
dispatcher gateways
+----+-------+-------------------------+-------+----------+-------------+
| id | setid |
destination
| flags | priority | description |
+----+-------+-------------------------+-------+----------+-------------+
| 2 | 1 |
sip:66.165.166.236:5061 | 1
| 1 |
MERA |
| 3 | 2 |
sip:66.165.166.237:5061 | 3
| 0 |
MERAII |
+----+-------+-------------------------+-------+----------+-------------+
Rafael Moreno
Matrix Telecom
www.matrixtelecom.net.br / Phone: 55.11.3323-9207