SearchSearch  Log in to check your private messagesLog in to check your private messages  recent posts Recent Posts
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
nualexanOffline



Joined: Mar 28, 2008
Posts: 7

Status: Offline
Posted: Apr 13, 2008 - 06:22 PM Reply with quote Back to top
I've installed Openser + Mediaproxy and all seemed to work fine. Today i tried to make a call between two UA that were on the same LAN (the caller was 192.168.1.3 and the callee was 192.168.1.6) but the caller received the invite insted of the callee. In other words, the same UA send and received the invite for the call. Can anyone tell what could be going wrong?

Here's the summary of packets by wireshark on the caller side:

No. Time Source Destination Protocol Info
1 0.000000 192.168.1.3 193.136.82.76 SIP/SDP Request: INVITE sip:300@193.136.82.76;transport=UDP, with session description
2 0.097647 193.136.82.76 192.168.1.3 SIP Status: 100 Trying
3 0.098287 193.136.82.76 192.168.1.3 SIP Status: 407 Proxy Authentication Required
4 0.099757 192.168.1.3 193.136.82.76 SIP Request: ACK sip:300@193.136.82.76;transport=UDP
5 0.100465 192.168.1.3 193.136.82.76 SIP/SDP Request: INVITE sip:300@193.136.82.76;transport=UDP, with session description
6 0.137092 193.136.82.76 192.168.1.3 SIP Status: 100 Trying
7 0.140136 193.136.82.76 192.168.1.3 SIP/SDP Request: INVITE sip:300@192.168.1.6;transport=UDP, with session description
8 0.193031 192.168.1.3 193.136.82.76 SIP Status: 180 Ringing
9 0.231913 193.136.82.76 192.168.1.3 SIP Status: 180 Ringing
10 1.612864 193.136.82.76 192.168.1.3 UDP Source port: 5060 Destination port: 5060
11 1.612974 193.136.82.76 192.168.1.3 UDP Source port: 5060 Destination port: 5060
12 9.293144 192.168.1.3 193.136.82.76 SIP Status: 486 Busy Here
13 9.385264 193.136.82.76 192.168.1.3 SIP Request: ACK sip:300@192.168.1.6;transport=UDP
14 9.387999 193.136.82.76 192.168.1.3 SIP Status: 486 Busy Here
15 9.389569 192.168.1.3 193.136.82.76 SIP Request: ACK sip:300@193.136.82.76;transport=UDP
16 12.025628 192.168.1.3 193.136.82.76 SIP Request: REGISTER sip:193.136.82.76;transport=UDP
17 12.126337 193.136.82.76 192.168.1.3 SIP Status: 100 Trying (0 bindings)
18 12.126484 193.136.82.76 192.168.1.3 SIP Status: 200 OK (1 bindings)[/img]
View user's profile Send private message
x-consoleOffline
Site Admin


Joined: Aug 01, 2006
Posts: 1131
Location: Leeds UK
Status: Offline
Posted: Apr 14, 2008 - 10:25 AM Reply with quote Back to top
looks like a problem with your openser.cfg You might want to take traces on the openser server in future, it provides the complete picture. Additionaly, capturing the full sip messages helps identify common problems (e.g. ngrep -lqtt -W byline port 5060)
View user's profile Send private message Yahoo Messenger
nualexanOffline



Joined: Mar 28, 2008
Posts: 7

Status: Offline
Posted: Apr 14, 2008 - 08:06 PM Reply with quote Back to top
I couldn't capture packets directly in the server... Now i'm on another LAN (and i have acess to ngrep). Everything seems working well, the only problem is that when the clients are in the same LAN they shouldn't use mediaproxy and communicate directly instead. I capture some packets of this communication and i have my openser.cfg so that you can give a look.
Many thanks for your interest and your contributions !

Capture with ngrep:

interface: eth0 (193.136.82.0/255.255.255.0)
filter: (ip or ip6) and ( port 5060 or port 5190 or port 5192 or port 5194)

U 2008/04/14 20:14:26.652056 77.54.67.10:50347 -> 193.136.82.76:5060
INVITE sip:300@193.136.82.76;transport=UDP SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.19:5060;branch=z9hG4bK-d8754z-2f12ba86be6ef3fc-1---d8754z-;rport.
Max-Forwards: 70.
Contact: <sip:100@192.168.1.19:5060>.
To: <sip:300@193.136.82.76>;transport=UDP.
From: "100"<sip:100@193.136.82.76>;transport=UDP;tag=5d7c9805.
Call-ID: ZTQ0ZDE4NWVhMGFmNmFiMDI0OTViZWMxYzA4MWQzOTM..
CSeq: 1 INVITE.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO.
Content-Type: application/sdp.
User-Agent: Zoiper for Windows rev.650.
Content-Length: 324.
.
v=0.
o=Zoiper_user 0 0 IN IP4 192.168.1.19.
s=Zoiper_user.
c=IN IP4 192.168.1.19.
t=0 0.
m=audio 5192 RTP/AVP 3 110 98 8 0 101.
a=rtpmap:3 GSM/8000.
a=rtpmap:110 speex/8000.
a=rtpmap:98 iLBC/8000.
a=fmtp:98 mode=30.
a=rtpmap:8 PCMA/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=sendrecv.


U 2008/04/14 20:14:26.652755 193.136.82.76:5060 -> 77.54.67.10:50347
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.19:5060;branch=z9hG4bK-d8754z-2f12ba86be6ef3fc-1---d8754z-;rport=50347;received=77.54.67.10.
To: <sip:300@193.136.82.76>;transport=UDP.
From: "100"<sip:100@193.136.82.76>;transport=UDP;tag=5d7c9805.
Call-ID: ZTQ0ZDE4NWVhMGFmNmFiMDI0OTViZWMxYzA4MWQzOTM..
CSeq: 1 INVITE.
Server: OpenSER (1.3.0-notls (i386/linux)).
Content-Length: 0.
.


U 2008/04/14 20:14:26.652828 193.136.82.76:5060 -> 77.54.67.10:50347
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP 192.168.1.19:5060;branch=z9hG4bK-d8754z-2f12ba86be6ef3fc-1---d8754z-;rport=50347;received=77.54.67.10.
To: <sip:300@193.136.82.76>;transport=UDP;tag=98c62b0dc8cc14ac09b50e489e7b7b59.f69c.
From: "100"<sip:100@193.136.82.76>;transport=UDP;tag=5d7c9805.
Call-ID: ZTQ0ZDE4NWVhMGFmNmFiMDI0OTViZWMxYzA4MWQzOTM..
CSeq: 1 INVITE.
Proxy-Authenticate: Digest realm="193.136.82.76", nonce="4803ae3e331a5519a1158a967f5e481b0a0951e1".
Server: OpenSER (1.3.0-notls (i386/linux)).
Content-Length: 0.
.


U 2008/04/14 20:14:26.676798 77.54.67.10:50347 -> 193.136.82.76:5060
ACK sip:300@193.136.82.76;transport=UDP SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.19:5060;branch=z9hG4bK-d8754z-2f12ba86be6ef3fc-1---d8754z-;rport.
To: <sip:300@193.136.82.76>;transport=UDP;tag=98c62b0dc8cc14ac09b50e489e7b7b59.f69c.
From: "100"<sip:100@193.136.82.76>;transport=UDP;tag=5d7c9805.
Call-ID: ZTQ0ZDE4NWVhMGFmNmFiMDI0OTViZWMxYzA4MWQzOTM..
CSeq: 1 ACK.
Content-Length: 0.
.


U 2008/04/14 20:14:26.685400 77.54.67.10:50347 -> 193.136.82.76:5060
INVITE sip:300@193.136.82.76;transport=UDP SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.19:5060;branch=z9hG4bK-d8754z-f5bc323f3cce2631-1---d8754z-;rport.
Max-Forwards: 70.
Contact: <sip:100@192.168.1.19:5060>.
To: <sip:300@193.136.82.76>;transport=UDP.
From: "100"<sip:100@193.136.82.76>;transport=UDP;tag=5d7c9805.
Call-ID: ZTQ0ZDE4NWVhMGFmNmFiMDI0OTViZWMxYzA4MWQzOTM..
CSeq: 2 INVITE.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO.
Content-Type: application/sdp.
Proxy-Authorization: Digest username="100",realm="193.136.82.76",nonce="4803ae3e331a5519a1158a967f5e481b0a0951e1",uri="sip:300@193.136.82.76;transport=UDP",response="2aefe789839ade7b91364ac811a3b095",algorithm=MD5.
User-Agent: Zoiper for Windows rev.650.
Content-Length: 324.
.
v=0.
o=Zoiper_user 0 0 IN IP4 192.168.1.19.
s=Zoiper_user.
c=IN IP4 192.168.1.19.
t=0 0.
m=audio 5192 RTP/AVP 3 110 98 8 0 101.
a=rtpmap:3 GSM/8000.
a=rtpmap:110 speex/8000.
a=rtpmap:98 iLBC/8000.
a=fmtp:98 mode=30.
a=rtpmap:8 PCMA/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=sendrecv.


U 2008/04/14 20:14:26.685911 193.136.82.76:5060 -> 77.54.67.10:50347
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.19:5060;branch=z9hG4bK-d8754z-f5bc323f3cce2631-1---d8754z-;rport=50347;received=77.54.67.10.
To: <sip:300@193.136.82.76>;transport=UDP.
From: "100"<sip:100@193.136.82.76>;transport=UDP;tag=5d7c9805.
Call-ID: ZTQ0ZDE4NWVhMGFmNmFiMDI0OTViZWMxYzA4MWQzOTM..
CSeq: 2 INVITE.
Server: OpenSER (1.3.0-notls (i386/linux)).
Content-Length: 0.
.


U 2008/04/14 20:14:26.693228 193.136.82.76:5060 -> 77.54.67.10:50352
INVITE sip:300@192.168.1.22;transport=UDP SIP/2.0.
Record-Route: <sip:193.136.82.76;lr=on;nat=yes>.
Via: SIP/2.0/UDP 193.136.82.76;branch=z9hG4bK9ed7.f3f3bce5.0.
Via: SIP/2.0/UDP 192.168.1.19:5060;received=77.54.67.10;branch=z9hG4bK-d8754z-f5bc323f3cce2631-1---d8754z-;rport=50347.
Max-Forwards: 69.
Contact: <sip:100@77.54.67.10:50347>.
To: <sip:300@193.136.82.76>;transport=UDP.
From: "100"<sip:100@193.136.82.76>;transport=UDP;tag=5d7c9805.
Call-ID: ZTQ0ZDE4NWVhMGFmNmFiMDI0OTViZWMxYzA4MWQzOTM..
CSeq: 2 INVITE.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO.
Content-Type: application/sdp.
User-Agent: Zoiper for Windows rev.650.
Content-Length: 325.
.
v=0.
o=Zoiper_user 0 0 IN IP4 192.168.1.19.
s=Zoiper_user.
c=IN IP4 193.136.82.76.
t=0 0.
m=audio 5190 RTP/AVP 3 110 98 8 0 101.
a=rtpmap:3 GSM/8000.
a=rtpmap:110 speex/8000.
a=rtpmap:98 iLBC/8000.
a=fmtp:98 mode=30.
a=rtpmap:8 PCMA/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
a=sendrecv.


U 2008/04/14 20:14:27.038562 77.54.67.10:50352 -> 193.136.82.76:5060
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 193.136.82.76;branch=z9hG4bK9ed7.f3f3bce5.0,SIP/2.0/UDP 192.168.1.19:5060;received=77.54.67.10;branch=z9hG4bK-d8754z-f5bc323f3cce2631-1---d8754z-;rport=50347.
To: <sip:300@193.136.82.76>;transport=UDP.
From: "100" <sip:100@193.136.82.76>;transport=UDP;tag=5d7c9805.
Call-ID: ZTQ0ZDE4NWVhMGFmNmFiMDI0OTViZWMxYzA4MWQzOTM..
CSeq: 2 INVITE.
Content-Length: 0.
.


U 2008/04/14 20:14:27.694494 77.54.67.10:50352 -> 193.136.82.76:5060
SIP/2.0 180 Ringing.
Record-Route: <sip:193.136.82.76;lr=on;nat=yes;transport=UDP>.
Via: SIP/2.0/UDP 193.136.82.76;branch=z9hG4bK9ed7.f3f3bce5.0,SIP/2.0/UDP 192.168.1.19:5060;received=77.54.67.10;branch=z9hG4bK-d8754z-f5bc323f3cce2631-1---d8754z-;rport=50347.
From: "100" <sip:100@193.136.82.76>;transport=UDP;tag=5d7c9805.
To: <sip:300@193.136.82.76>;transport=UDP;tag=n28k711mvje9nr5vjj1fec32.
Contact: <sip:300@192.168.1.22;transport=UDP>.
Call-ID: ZTQ0ZDE4NWVhMGFmNmFiMDI0OTViZWMxYzA4MWQzOTM..
CSeq: 2 INVITE.
Content-Length: 0.
.


U 2008/04/14 20:14:27.694997 193.136.82.76:5060 -> 77.54.67.10:50347
SIP/2.0 180 Ringing.
Record-Route: <sip:193.136.82.76;lr=on;nat=yes;transport=UDP>.
Via: SIP/2.0/UDP 192.168.1.19:5060;received=77.54.67.10;branch=z9hG4bK-d8754z-f5bc323f3cce2631-1---d8754z-;rport=50347.
From: "100" <sip:100@193.136.82.76>;transport=UDP;tag=5d7c9805.
To: <sip:300@193.136.82.76>;transport=UDP;tag=n28k711mvje9nr5vjj1fec32.
Contact: <sip:300@77.54.67.10:50352;transport=UDP>.
Call-ID: ZTQ0ZDE4NWVhMGFmNmFiMDI0OTViZWMxYzA4MWQzOTM..
CSeq: 2 INVITE.
Content-Length: 0.
.


U 2008/04/14 20:14:34.524969 77.54.67.10:50347 -> 193.136.82.76:5060
REGISTER sip:193.136.82.76;transport=UDP SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.19:5060;branch=z9hG4bK-d8754z-71fc288d0618045a-1---d8754z-;rport.
Max-Forwards: 70.
Contact: <sip:100@192.168.1.19:5060;rinstance=e996dee6dfb8e368>;transport=UDP.
To: "100"<sip:100@193.136.82.76>;transport=UDP.
From: "100"<sip:100@193.136.82.76>;transport=UDP;tag=d57f3107.
Call-ID: NDg4YmNmMjBmMTQxYWFiZDEwMDY3NDI0Y2YzNmY3MTc..
CSeq: 31 REGISTER.
Expires: 70.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO.
User-Agent: Zoiper for Windows rev.650.
Authorization: Digest username="100",realm="193.136.82.76",nonce="4803ad0ae414892de61f06b6fe4ff603e13a5fae",uri="sip:193.136.82.76;transport=UDP",response="43ae1d2c56882122e2f09dae938db069",algorithm=MD5.
Allow-Events: presence.
Content-Length: 0.
.


U 2008/04/14 20:14:34.525473 193.136.82.76:5060 -> 77.54.67.10:50347
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.19:5060;branch=z9hG4bK-d8754z-71fc288d0618045a-1---d8754z-;rport=50347;received=77.54.67.10.
To: "100"<sip:100@193.136.82.76>;transport=UDP.
From: "100"<sip:100@193.136.82.76>;transport=UDP;tag=d57f3107.
Call-ID: NDg4YmNmMjBmMTQxYWFiZDEwMDY3NDI0Y2YzNmY3MTc..
CSeq: 31 REGISTER.
Server: OpenSER (1.3.0-notls (i386/linux)).
Content-Length: 0.
.


U 2008/04/14 20:14:34.525949 193.136.82.76:5060 -> 77.54.67.10:50347
SIP/2.0 401 Unauthorized.
Via: SIP/2.0/UDP 192.168.1.19:5060;branch=z9hG4bK-d8754z-71fc288d0618045a-1---d8754z-;rport=50347;received=77.54.67.10.
To: "100"<sip:100@193.136.82.76>;transport=UDP;tag=98c62b0dc8cc14ac09b50e489e7b7b59.4457.
From: "100"<sip:100@193.136.82.76>;transport=UDP;tag=d57f3107.
Call-ID: NDg4YmNmMjBmMTQxYWFiZDEwMDY3NDI0Y2YzNmY3MTc..
CSeq: 31 REGISTER.
WWW-Authenticate: Digest realm="193.136.82.76", nonce="4803ae463075644057a3ad2ca9f370fbd0b01e9c", stale=true.
Server: OpenSER (1.3.0-notls (i386/linux)).
Content-Length: 0.
.


U 2008/04/14 20:14:34.543124 192.168.0.2:5060 -> 193.136.82.76:5060
REGISTER sip:193.136.82.76;transport=UDP SIP/2.0.
Via: SIP/2.0/UDP 192.168.0.2:5060;branch=z9hG4bK-d8754z-8d1216ca80582d30-1---d8754z-;rport.
Max-Forwards: 70.
Contact: <sip:200@192.168.0.2:5060;rinstance=05a77bb69736da63>;transport=UDP.
To: "200"<sip:200@193.136.82.76>;transport=UDP.
From: "200"<sip:200@193.136.82.76>;transport=UDP;tag=af723d08.
Call-ID: YzA5MGQ2YmU5MjU2MjI1NzQ1OWRlYjNlN2Q4YzRmMDM..
CSeq: 99 REGISTER.
Expires: 70.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO.
User-Agent: Zoiper for Windows rev.650.
Authorization: Digest username="200",realm="193.136.82.76",nonce="4803ad4a5d659997cf65b94fc85d0ebd955c0444",uri="sip:193.136.82.76;transport=UDP",response="8f04d0fd5cd04c4438fae55afaf9e59f",algorithm=MD5.
Allow-Events: presence.
Content-Length: 0.
.


U 2008/04/14 20:14:34.543461 193.136.82.76:5060 -> 192.168.0.2:5060
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.0.2:5060;branch=z9hG4bK-d8754z-8d1216ca80582d30-1---d8754z-;rport=5060.
To: "200"<sip:200@193.136.82.76>;transport=UDP.
From: "200"<sip:200@193.136.82.76>;transport=UDP;tag=af723d08.
Call-ID: YzA5MGQ2YmU5MjU2MjI1NzQ1OWRlYjNlN2Q4YzRmMDM..
CSeq: 99 REGISTER.
Server: OpenSER (1.3.0-notls (i386/linux)).
Content-Length: 0.
.


U 2008/04/14 20:14:34.543927 193.136.82.76:5060 -> 192.168.0.2:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.0.2:5060;branch=z9hG4bK-d8754z-8d1216ca80582d30-1---d8754z-;rport=5060.
To: "200"<sip:200@193.136.82.76>;transport=UDP;tag=98c62b0dc8cc14ac09b50e489e7b7b59.0d91.
From: "200"<sip:200@193.136.82.76>;transport=UDP;tag=af723d08.
Call-ID: YzA5MGQ2YmU5MjU2MjI1NzQ1OWRlYjNlN2Q4YzRmMDM..
CSeq: 99 REGISTER.
Contact: <sip:200@193.136.82.75:5060>;q=0.9;expires=111, <sip:200@192.168.0.2:5060;rinstance=05a77bb69736da63>;expires=70;received="sip:192.168.0.2:5060".
Server: OpenSER (1.3.0-notls (i386/linux)).
Content-Length: 0.
.


U 2008/04/14 20:14:34.553868 77.54.67.10:50347 -> 193.136.82.76:5060
REGISTER sip:193.136.82.76;transport=UDP SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.19:5060;branch=z9hG4bK-d8754z-1fea0bfa2336a01e-1---d8754z-;rport.
Max-Forwards: 70.
Contact: <sip:100@192.168.1.19:5060;rinstance=e996dee6dfb8e368>;transport=UDP.
To: "100"<sip:100@193.136.82.76>;transport=UDP.
From: "100"<sip:100@193.136.82.76>;transport=UDP;tag=d57f3107.
Call-ID: NDg4YmNmMjBmMTQxYWFiZDEwMDY3NDI0Y2YzNmY3MTc..
CSeq: 32 REGISTER.
Expires: 70.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO.
User-Agent: Zoiper for Windows rev.650.
Authorization: Digest username="100",realm="193.136.82.76",nonce="4803ae463075644057a3ad2ca9f370fbd0b01e9c",uri="sip:193.136.82.76;transport=UDP",response="3de8d7668d0829a4acda4a0e826e87fa",algorithm=MD5.
Allow-Events: presence.
Content-Length: 0.
.


U 2008/04/14 20:14:34.554238 193.136.82.76:5060 -> 77.54.67.10:50347
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 192.168.1.19:5060;branch=z9hG4bK-d8754z-1fea0bfa2336a01e-1---d8754z-;rport=50347;received=77.54.67.10.
To: "100"<sip:100@193.136.82.76>;transport=UDP.
From: "100"<sip:100@193.136.82.76>;transport=UDP;tag=d57f3107.
Call-ID: NDg4YmNmMjBmMTQxYWFiZDEwMDY3NDI0Y2YzNmY3MTc..
CSeq: 32 REGISTER.
Server: OpenSER (1.3.0-notls (i386/linux)).
Content-Length: 0.
.


U 2008/04/14 20:14:34.554704 193.136.82.76:5060 -> 77.54.67.10:50347
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 192.168.1.19:5060;branch=z9hG4bK-d8754z-1fea0bfa2336a01e-1---d8754z-;rport=50347;received=77.54.67.10.
To: "100"<sip:100@193.136.82.76>;transport=UDP;tag=98c62b0dc8cc14ac09b50e489e7b7b59.573d.
From: "100"<sip:100@193.136.82.76>;transport=UDP;tag=d57f3107.
Call-ID: NDg4YmNmMjBmMTQxYWFiZDEwMDY3NDI0Y2YzNmY3MTc..
CSeq: 32 REGISTER.
Contact: <sip:100@192.168.1.19:5060;rinstance=e996dee6dfb8e368>;expires=70;received="sip:77.54.67.10:50347".
Server: OpenSER (1.3.0-notls (i386/linux)).
Content-Length: 0.
.


U 2008/04/14 20:14:34.858329 77.54.67.10:50352 -> 193.136.82.76:5060
SIP/2.0 200 OK.
Record-Route: <sip:193.136.82.76;lr=on;nat=yes;transport=UDP>.
Via: SIP/2.0/UDP 193.136.82.76;branch=z9hG4bK9ed7.f3f3bce5.0,SIP/2.0/UDP 192.168.1.19:5060;received=77.54.67.10;branch=z9hG4bK-d8754z-f5bc323f3cce2631-1---d8754z-;rport=50347.
To: <sip:300@193.136.82.76>;transport=UDP;tag=n28k711mvje9nr5vjj1fec32.
Contact: <sip:300@192.168.1.22;transport=UDP>.
From: "100" <sip:100@193.136.82.76>;transport=UDP;tag=5d7c9805.
Call-ID: ZTQ0ZDE4NWVhMGFmNmFiMDI0OTViZWMxYzA4MWQzOTM..
CSeq: 2 INVITE.
Allow: INVITE,ACK,BYE,CANCEL,REFER,NOTIFY,OPTIONS,PRACK.
Content-Type: application/sdp.
Accept: application/sdp.
Content-Length: 238.
.
v=0.
o=Nokia-SIPUA 1 1 IN IP4 192.168.1.22.
s=Zoiper_user.
c=IN IP4 192.168.1.22.
t=0 0.
m=audio 16384 RTP/AVP 98 101.
a=sendrecv.
a=ptime:30.
a=maxptime:180.
a=fmtp:101 0-15.
a=rtpmap:98 iLBC/8000/1.
a=rtpmap:101 telephone-event/8000/1.


U 2008/04/14 20:14:34.862113 193.136.82.76:5060 -> 77.54.67.10:50347
SIP/2.0 200 OK.
Record-Route: <sip:193.136.82.76;lr=on;nat=yes;transport=UDP>.
Via: SIP/2.0/UDP 192.168.1.19:5060;received=77.54.67.10;branch=z9hG4bK-d8754z-f5bc323f3cce2631-1---d8754z-;rport=50347.
To: <sip:300@193.136.82.76>;transport=UDP;tag=n28k711mvje9nr5vjj1fec32.
Contact: <sip:300@77.54.67.10:50352;transport=UDP>.
From: "100" <sip:100@193.136.82.76>;transport=UDP;tag=5d7c9805.
Call-ID: ZTQ0ZDE4NWVhMGFmNmFiMDI0OTViZWMxYzA4MWQzOTM..
CSeq: 2 INVITE.
Allow: INVITE,ACK,BYE,CANCEL,REFER,NOTIFY,OPTIONS,PRACK.
Content-Type: application/sdp.
Accept: application/sdp.
Content-Length: 238.
.
v=0.
o=Nokia-SIPUA 1 1 IN IP4 192.168.1.22.
s=Zoiper_user.
c=IN IP4 193.136.82.76.
t=0 0.
m=audio 5190 RTP/AVP 98 101.
a=sendrecv.
a=ptime:30.
a=maxptime:180.
a=fmtp:101 0-15.
a=rtpmap:98 iLBC/8000/1.
a=rtpmap:101 telephone-event/8000/1.


U 2008/04/14 20:14:34.907031 77.54.67.10:50347 -> 193.136.82.76:5060
ACK sip:300@77.54.67.10:50352;transport=UDP SIP/2.0.
Via: SIP/2.0/UDP 192.168.1.19:5060;branch=z9hG4bK-d8754z-e82d16d28f8c0c1b-1---d8754z-;rport.
Max-Forwards: 70.
Route: <sip:193.136.82.76;lr;transport=UDP;nat=yes>.
Contact: <sip:100@192.168.1.19:5060>.
To: <sip:300@193.136.82.76>;transport=UDP;tag=n28k711mvje9nr5vjj1fec32.
From: "100"<sip:100@193.136.82.76>;transport=UDP;tag=5d7c9805.
Call-ID: ZTQ0ZDE4NWVhMGFmNmFiMDI0OTViZWMxYzA4MWQzOTM..
CSeq: 2 ACK.
Proxy-Authorization: Digest username="100",realm="193.136.82.76",nonce="4803ae3e331a5519a1158a967f5e481b0a0951e1",uri="sip:300@193.136.82.76;transport=UDP",response="2aefe789839ade7b91364ac811a3b095",algorithm=MD5.
User-Agent: Zoiper for Windows rev.650.
Content-Length: 0.
.


U 2008/04/14 20:14:34.907596 193.136.82.76:5060 -> 77.54.67.10:50352
ACK sip:300@77.54.67.10:50352;transport=UDP SIP/2.0.
Record-Route: <sip:193.136.82.76;lr=on;nat=yes>.
Via: SIP/2.0/UDP 193.136.82.76;branch=z9hG4bK9ed7.f3f3bce5.2.
Via: SIP/2.0/UDP 192.168.1.19:5060;received=77.54.67.10;branch=z9hG4bK-d8754z-e82d16d28f8c0c1b-1---d8754z-;rport=50347.
Max-Forwards: 69.
Contact: <sip:100@77.54.67.10:50347>.
To: <sip:300@193.136.82.76>;transport=UDP;tag=n28k711mvje9nr5vjj1fec32.
From: "100"<sip:100@193.136.82.76>;transport=UDP;tag=5d7c9805.
Call-ID: ZTQ0ZDE4NWVhMGFmNmFiMDI0OTViZWMxYzA4MWQzOTM..
CSeq: 2 ACK.
Proxy-Authorization: Digest username="100",realm="193.136.82.76",nonce="4803ae3e331a5519a1158a967f5e481b0a0951e1",uri="sip:300@193.136.82.76;transport=UDP",response="2aefe789839ade7b91364ac811a3b095",algorithm=MD5.
User-Agent: Zoiper for Windows rev.650.
Content-Length: 0.
.


U 2008/04/14 20:14:34.920671 77.54.67.10:50453 -> 193.136.82.76:5190
..M.h`..f.M.....Z...^.Xjw.
X.....x..>.2..1L.3....p.....pw.A.v

U 2008/04/14 20:14:34.949802 77.54.67.10:50453 -> 193.136.82.76:5190
.bM.h`..f.M..CV..5.0......`..F9J0..PI!...,#........s.xH..b....

U 2008/04/14 20:14:34.963065 77.54.67.10:50454 -> 193.136.82.76:5190
..S..j...f..D].E.R...m_.:0 /;v....C...K].bP....n....d....n...:

U 2008/04/14 20:14:34.963547 193.136.82.76:5190 -> 77.54.67.10:50453
..S..j...f..D].E.R...m_.:0 /;v....C...K].bP....n....d....n...:

U 2008/04/14 20:14:34.981914 77.54.67.10:50453 -> 193.136.82.76:5190
.bM.h`.{f.M.....8u.C
...a..}.O...3N.3.h...3L<..n.
.........0H.

U 2008/04/14 20:14:34.982113 193.136.82.76:5190 -> 77.54.67.10:50454
.bM.h`.{f.M.....8u.C
...a..}.O...3N.3.h...3L<..n.
.........0H.

U 2008/04/14 20:14:34.992151 77.54.67.10:50454 -> 193.136.82.76:5190
..S..j...f..D].{..4.D o^.}.K:..q..w.0.S......9.h19.B.C...o....

U 2008/04/14 20:14:34.992279 193.136.82.76:5190 -> 77.54.67.10:50453
..S..j...f..D].{..4.D o^.}.K:..q..w.0.S......9.h19.B.C...o....

U 2008/04/14 20:14:35.010470 77.54.67.10:50453 -> 193.136.82.76:5190
.bM.h`.kf.M......g.J..F......G_t...!..a.4.6..b...9.|Q...../8..

U 2008/04/14 20:14:35.010591 193.136.82.76:5190 -> 77.54.67.10:50454
.bM.h`.kf.M......g.J..F......G_t...!..a.4.6..b...9.|Q...../8..

U 2008/04/14 20:14:35.023201 77.54.67.10:50454 -> 193.136.82.76:5190
..S..j...f......Xrt.P.......3b......M=...Gu.!.0...:.......=:..

U 2008/04/14 20:14:35.023320 193.136.82.76:5190 -> 77.54.67.10:50453
..S..j...f......Xrt.P.......3b......M=...Gu.!.0...:.......=:..

U 2008/04/14 20:14:35.040522 77.54.67.10:50453 -> 193.136.82.76:5190
.bM.h`.[f.M.kCVN.4u ...H..g..9]OC.$....w.J........Yt......(..

U 2008/04/14 20:14:35.040655 193.136.82.76:5190 -> 77.54.67.10:50454
.bM.h`.[f.M.kCVN.4u ...H..g..9]OC.$....w.J........Yt......(..

U 2008/04/14 20:14:35.052303 77.54.67.10:50454 -> 193.136.82.76:5190
..S..j...f.......a........N..`...;.K.`..-g.&.?Mp..$ f..7..6(..

U 2008/04/14 20:14:35.052428 193.136.82.76:5190 -> 77.54.67.10:50453
..S..j...f.......a........N..`...;.K.`..-g.&.?Mp..$ f..7..6(..

U 2008/04/14 20:14:35.078726 77.54.67.10:50453 -> 193.136.82.76:5190
.bM.h`.Kf.M.j....c../.,....9b~b..........1......F..p78^...<X8"

U 2008/04/14 20:14:35.078846 193.136.82.76:5190 -> 77.54.67.10:50454
.bM.h`.Kf.M.j....c../.,....9b~b..........1......F..p78^...<X8"

U 2008/04/14 20:14:35.083956 77.54.67.10:50454 -> 193.136.82.76:5190
..S..j...f..T..E..d-y....|..KV.B....JD...b.Xe.H.y......4.s....

U 2008/04/14 20:14:35.084086 193.136.82.76:5190 -> 77.54.67.10:50453
..S..j...f..T..E..d-y....|..KV.B....JD...b.Xe.H.y......4.s....

U 2008/04/14 20:14:35.100078 77.54.67.10:50453 -> 193.136.82.76:5190
.bM.h`.;f.M.%..dZg..>p....!..I...C......3$.-...o;.....i5.H,.20

U 2008/04/14 20:14:35.100198 193.136.82.76:5190 -> 77.54.67.10:50454
.bM.h`.;f.M.%..dZg..>p....!..I...C......3$.-...o;.....i5.H,.20

U 2008/04/14 20:14:35.112407 77.54.67.10:50454 -> 193.136.82.76:5190
..S..j...f...B.T.Rz...{..TJ..z.....A..e....YA........F3.*....L

U 2008/04/14 20:14:35.112525 193.136.82.76:5190 -> 77.54.67.10:50453
..S..j...f...B.T.Rz...{..TJ..z.....A..e....YA........F3.*....L

U 2008/04/14 20:14:35.130042 77.54.67.10:50453 -> 193.136.82.76:5190
.bM.h`.+f.M.....5s..Pb.lp-.^.-!H....{.......q....8.4.|.-N..&..

U 2008/04/14 20:14:35.130161 193.136.82.76:5190 -> 77.54.67.10:50454
.bM.h`.+f.M.....5s..Pb.lp-.^.-!H....{.......q....8.4.|.-N..&..

U 2008/04/14 20:14:35.142061 77.54.67.10:50454 -> 193.136.82.76:5190
..S..j...f...El.......7.. ...q$`<#.....g............vg.!.Z
,'.

And so on...

My OPENSER.CFG:

#
# $Id: openser.cfg 3284 2007-12-06 18:56:59Z bogdan_iancu $
#
# OpenSER basic configuration script
# by Anca Vamanu <anca@voice-system.ro>
#
# Please refer to the Core CookBook at http://www.openser.org/dokuwiki/doku.php
# for a explanation of possible statements, functions and parameters.
#


####### Global Parameters #########

debug=3
fork=yes
log_stderror=yes
log_facility=LOG_LOCAL7

children=4

/* comment 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 = "/etc/openser/tls/user/user-cert.pem"
#tls_private_key = "/etc/openser/tls/user/user-privkey.pem"
#tls_ca_list = "/etc/openser/tls/user/user-calist.pem"


port=5060

/* uncomment and configure the following line if you want openser to
bind on a specific interface/port/proto (default bind on all available) */
listen=udp:193.136.82.76:5060


####### Modules Section ########

#set module path
mpath="/usr/lib/openser/modules/"

/* uncomment next line for MySQL DB support */
loadmodule "mysql.so"
loadmodule "sl.so"
loadmodule "tm.so"
loadmodule "rr.so"
loadmodule "maxfwd.so"
loadmodule "usrloc.so"
loadmodule "registrar.so"
loadmodule "textops.so"
loadmodule "mi_fifo.so"
loadmodule "uri_db.so"
loadmodule "uri.so"
loadmodule "xlog.so"
#loadmodule "acc.so"
/* uncomment next lines for MySQL based authentication support
NOTE: a DB (like mysql) module must be also loaded */
loadmodule "auth.so"
loadmodule "auth_db.so"
/* uncomment next line for aliases support
NOTE: a DB (like mysql) module must be also loaded */
#loadmodule "alias_db.so"
/* uncomment next line for multi-domain support
NOTE: a DB (like 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 mysql) module must be also loaded */
#loadmodule "presence.so"
#loadmodule "presence_xml.so"

# Modulos necessarios para o NAT Traversal
loadmodule "nathelper.so"
loadmodule "mediaproxy.so"


# ----------------- setting module-specific parameters ---------------


# ----- mi_fifo params -----
modparam("mi_fifo", "fifo_name", "/tmp/openser_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)


# ----- registrar 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)
modparam("registrar", "received_avp", "$avp(i:801)")

# ----- 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", "mysql://openser:openserrw@localhost/openser")


# ----- 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)
/* uncomment the following lines to enable DB accounting also */
#modparam("acc", "db_flag", 1)
#modparam("acc", "db_missed_flag", 2)


# ----- usrloc params -----
/* uncomment the following lines if you want to enable DB persistency
for location entries */
#parametro para guardar dados dos clientes de modo persistente (na BD)
#0 - nao grava na BD, 1 - grava em memoria e logo na BD, 2 - grava em memoria e depois na BD, 3 - so BD
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "db_url","mysql://openser:openserrw@localhost/openser")
# parametro para guardar e usar o dominio do UA para identificar o user (multi-dominio) - 0 = nao usar
modparam("usrloc", "use_domain", 0)
# parametro que identifica a flag a usar aquando do NAT
modparam("usrloc", "nat_bflag", 6)
# matching mode - modo como o openser compara contactos
modparam("usrloc", "matching_mode", 0)


# ----- auth_db params -----
/* uncomment the following lines if you want to enable the DB based
authentication */
modparam("auth_db", "db_url", "mysql://openser:openserrw@localhost/openser")
modparam("auth_db", "calculate_ha1", 1)
modparam("auth_db", "password_column", "password")
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@192.168.1.3/openser_1_3")


# ----- 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 */
#modparam("presence|presence_xml", "db_url","mysql://openser:openserrw@192.168.1.3/openser_1_3")
#modparam("presence_xml", "force_active", 1)
#modparam("presence", "server_address", "sip:192.168.1.2:5060")


# ----- Xlog params -----
modparam("xlog", "buf_size", 4096)
modparam("xlog", "force_color", 0)

# ----- Nathelper params -----
modparam("nathelper", "received_avp", "$avp(i:801)")

# ----- mediaproxy params -----
modparam("mediaproxy", "mediaproxy_socket", "/var/run/mediaproxy/proxydispatcher.sock")
modparam("mediaproxy", "sip_asymmetrics", "/etc/openser/sip-asymmetric-clients")
modparam("mediaproxy", "rtp_asymmetrics", "/etc/openser/rtp-asymmetric-clients")
modparam("mediaproxy", "natping_interval", 30)


####### Routing Logic ########


# main request routing logic

route{

########################################################################################
# Basic information about the method that as entered openser (just for log) #
########################################################################################

xlog("L_INFO", "$C(rx)New request - $C(xx) M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");

if(nat_uac_test("18"))
{
xlog("L_INFO", "$C(by) ! NAT ! $C(xx)\n");
}

#######################################################################################
# Basic tests of the message (maxforward and lenght) #
#######################################################################################

if(msg:len > max_len)
{

xlog("L_INFO", "$C(rx)Message Too Big - $C(xx) M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
sl_send_reply("513","Message Too Big");
exit;
}

if (!mf_process_maxfwd_header("10"))
{
xlog("L_INFO", "$C(rx)Too Many Hops - $C(xx) M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
sl_send_reply("483","Too Many Hops");
exit;
}

######################################################################################
# If method different from REGISTER put information on the message #
######################################################################################

force_rport();

if(!is_method("REGISTER"))
{
if(nat_uac_test("19"))
{
xlog("L_INFO", "$C(rx) record_route para NAT Traversal $C(xx)\n");
record_route(";nat=yes");
}
else
{
xlog("L_INFO", "$C(rx) record_route sem NAT $C(xx) \n");
record_route();
}
}

#####################################################################################
# If method is CANCEL or BYE the media session should be terminated #
#####################################################################################

if(is_method("CANCEL") || is_method("BYE"))
{
end_media_session();
}

#####################################################################################
# loose_route #
#####################################################################################

if(loose_route())
{
xlog("L_INFO", "$C(rx) loose_route message ! $C(xx) \n");
if(!has_totag())
{
xlog("L_INFO", "$C(bx)Initial loose-routing rejected - $C(xx) M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
sl_send_reply("403", "Initial Loose-Routing Rejected");
exit;
}

if(nat_uac_test("19") || search("^Route:.*;nat=yes"))
{
xlog("L_INFO", "$C(rx) loose_route + NAT + route = nat=yes $C(xx) \n");
fix_nated_contact();
setbflag(6);
}

xlog("L_INFO", "$C(rx) go to route(3) $C(xx) \n");
route(3);
}

#####################################################################################
# REGISTER #
#####################################################################################

if(is_method("REGISTER"))
{
xlog("L_INFO", "$C(rx) REGISTER - route (2) $C(xx) \n");
route(2);
}

#####################################################################################
# INVITE #
#####################################################################################

if(is_method("INVITE"))
{
xlog("L_INFO", "$C(rx) INVITE - route (4) $C(xx) \n");
route(4);
}

#####################################################################################
# CANCEL or ACK #
#####################################################################################

if(is_method("CANCEL") || is_method("ACK"))
{
xlog("L_INFO", "$C(rx) CANCEL or ACK - route (Cool $C(xx) \n");
route(Cool;
}

route(9);

}

########################################################################
# Request route 'stop-media-proxy'
########################################################################
route[1]
{
if(isflagset(22))
{
end_media_session();
}
}

####################################################################################
# Request route 'base-route-register' #
####################################################################################

route[2]
{
sl_send_reply("100", "Trying");


if(is_present_hf("Authorization")||is_present_hf("Proxy-Authorization"))
{
xlog("L_INFO", "$C(gb)is_present_hf Authorization or Proxy-Authorization$C(xx)\n");
}


if(!www_authorize("", "subscriber"))
{
xlog("L_INFO", "$C(rx)Register authentication failed - $C(xx)\n M=$rm \n RURI=$ru \n F=$fu \n T=$tu \n IP=$si \n ID=$ci\n");
www_challenge("", "0");
exit;
}
if(!check_to())
{

xlog("L_INFO", "Spoofed To-URI detected - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
sl_send_reply("403", "Spoofed To-URI Detected");
exit;
}

consume_credentials();

if(!search("^Contact:[ ]*\*") && nat_uac_test("19"))
{
fix_nated_register();
setbflag(6);
}
if(!save("location"))
{
xlog("L_ERR", "$C(rx)Saving contact failed - $C(xx) M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
sl_reply_error();
exit;
}

xlog("L_INFO", "$C(gx)Registration successful - $C(xx) M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
exit;
}
########################################################################
# Request route 'base-outbound'
########################################################################
route[3]
{

if(isbflagset(6))
{
if(!isflagset(22) && !search("^Content-Length:[ ]*0"))
{
setflag(22);
use_media_proxy();
}

t_on_reply("2");
}
else
{

t_on_reply("1");
}
if(!isflagset(21))
{

t_on_failure("1");
}
if(isflagset(29))
{
append_branch();
}
if(is_present_hf("Proxy-Authorization"))
{
consume_credentials();
}

xlog("L_INFO", "Request leaving server, D-URI='$du' - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
# no 100 (we already sent it) and no DNS blacklisting
if(!t_relay("0x05"))
{
sl_reply_error();
if(is_method("INVITE") && isbflagset(6))
{
end_media_session();
}
}
exit;

}

########################################################################
# Request route 'base-route-invite'
########################################################################
route[4]
{
sl_send_reply("100", "Trying");
if(!proxy_authorize("", "subscriber"))
{

xlog("L_INFO", "Proxy authentication failed - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
proxy_challenge("", "0");
exit;
}
if(!check_from())
{

xlog("L_INFO", "Spoofed From-URI detected - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
sl_send_reply("403", "Spoofed From-URI Detected");
exit;
}
if(nat_uac_test("19"))
{
fix_nated_contact();
setbflag(6);
}

route(5);
}

########################################################################
# Request route 'invite-find-callee'
########################################################################
route[5]
{
if(!is_domain_local("$rd"))
{
setflag(20);

route(7);
}
if(does_uri_exist())
{

xlog("L_INFO", "Callee is local - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
route(6);
}
else
{

xlog("L_INFO", "Callee is not local - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
route(7);
}
exit;

}

########################################################################
# Request route 'invite-to-internal'
########################################################################
route[6]
{
if(!lookup("location"))
{

xlog("L_INFO", "Local user offline - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
sl_send_reply("404", "User Offline");
}
else
{

xlog("L_INFO", "Local user online - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
route(3);
}
exit;

}

########################################################################
# Request route 'invite-to-external'
########################################################################
route[7]
{
if(isflagset(20))
{

xlog("L_INFO", "Call to foreign domain - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
route(3);
exit;
}

xlog("L_INFO", "Call to unknown user - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
sl_send_reply("404", "User Not Found");
exit;

}

########################################################################
# Request route 'base-route-local'
########################################################################
route[8]
{
t_on_reply("1");
if(t_check_trans())
{

xlog("L_INFO", "Request leaving server - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
if(!t_relay())
{
sl_reply_error();
}
}
else
{

xlog("L_INFO", "Dropping mis-routed request - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
}
exit;

}

########################################################################
# Request route 'base-route-generic'
########################################################################

route[9]
{
xlog("L_INFO", "Method not supported - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
sl_send_reply("501", "Method Not Supported Here");
exit;

}

########################################################################
# Request route 'base-filter-failover'
########################################################################
route[10]
{
if(!t_check_status("408|500|503"))
{

xlog("L_INFO", "No failover routing needed for this response code - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");
route(1);
exit;
}

}

########################################################################
# Reply route 'base-standard-reply'
########################################################################
onreply_route[1]
{
xlog("L_INFO", "Reply - S=$rs D=$rr F=$fu T=$tu IP=$si ID=$ci\n");
exit;
}

########################################################################
# Reply route 'base-nat-reply'
########################################################################
onreply_route[2]
{
xlog("L_INFO", "NAT-Reply - S=$rs D=$rr F=$fu T=$tu IP=$si ID=$ci\n");
if(nat_uac_test("1"))
{
fix_nated_contact();
}
if(isbflagset(6) && status=~"(180)|(183)|2[0-9][0-9]")
{
if(!search("^Content-Length:[ ]*0"))
{
use_media_proxy();
}
}
exit;

}

########################################################################
# Failure route 'base-standard-failure'
########################################################################
failure_route[1]
{
route(10);
route(1);
}
View user's profile Send private message


View previous topic Printable version Log in to check your private messages View next topic

Post new topic   Reply to topic
Forum Rules and Guidelines | About VoIP User | Privacy Policy


All logos and trademarks in this site are property of their respective owner.
Comments and posts are property of the poster, all the rest (c) 2003-2006 VoIP User.

No part of this site may be reproduced without our prior consent.