can anybody please help me. This is urgent. There is a continuous
problem in using SER. SER is not forwarding the packet correctly to
client behind NAT. Please have a look at this problem.<br>
<br>
<br>
My network scenerio is:
<br>

<a href="http://192.168.0.2">192.168.0.2</a>
<br>

+----------+
<br>

| ClientA  |
<br>

+----------+
<br>

|
<br>

|
<br>

|      eth1     eth0
<br>

| <a href="http://192.168.0.1">192.168.0.1</a> | <a href="http://172.25.25.83">172.25.25.83</a>
<br>

+-------------|-------------+
<br>

|           NAT1            |
<br>

+-------------|-------------+
<br>

                            |
<br>

                            |
<br>

                            |
<br>

        <a href="http://172.25.25.84">172.25.25.84</a>        |
<br>

+---------------------------+
<br>

|SER Proxy\Registrar,       |
<br>

| STUN Server               |
<br>

+---------------------------+
<br>

|172.25.25.85                            
<br>

|                            
<br>

|
<br>

|
<br>

| <a href="http://172.25.25.88">172.25.25.88</a>
<br>

+----------+
<br>

| ClientC  |
<br>

+----------+
<br>


<br>


<br>


<br>

 172.25.25.X ---- LAN (External Network for client A and C)
<br>

 192.168.0.X ---- Private Network 1 (Internal Network for Client A)
<br>


<br>

 ClientA and ClientC are sip clients with STUN functionality embedded.
<br>


<br>

NAT1 is internal LAN NAT. I mean for testing purpose, i have
<br>

used two machines with two network cards.
<br>


<br>

--------------------------------------------------------
<br>

Here is the problem:
<br>


<br>

Both clientA and clientB get registered successfully with Registrar.
ClientA get registered with NAT1 address <a href="http://172.25.25.83">172.25.25.83</a>. When ClientA
starts sip session by sending an invite to clientC, all works fine.
But, when ClientC starts the session by inviting clientA, Proxy tries
to forward the message invite directly to clientA. Although, clientA
has already registered with the registrar and has indicated its contact
address as of NAT1. My question is why proxy is not taking the contact
address and sending invite there. below is the sequence of messages
that I captured using ehtereal on Linux Plateform. <br>


<br>


<br>


<br>

source=<a href="http://172.25.25.88:5060">172.25.25.88:5060</a> to=<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> 
<br>

REGISTER sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> SIP/2.0
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.88:5060">172.25.25.88:5060</a>;rport;branch=z9hG4bK1507969566
<br>

From: &lt;sip:c@172.25.25.88:5060&gt;;tag=1981102178
<br>

To: &lt;sip:c@172.25.25.88:5060&gt;
<br>

Call-ID:   1003517860 [!at] <a href="http://172.25.25.88">172.25.25.88</a> (replace the [!at] with a @)
<br>

CSeq: 1 REGISTER
<br>

Contact: &lt;sip:c%94@172.25.25.88:5060&gt;
<br>

Max-Forwards: 5
<br>

User-Agent: eXosip/0.1
<br>

Expires: 3600
<br>

Supported: 100rel
<br>

Supported: path
<br>

Content-Length: 0
<br>


<br>

source=<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> to=<a href="http://172.25.25.88:5060">172.25.25.88:5060</a> 
<br>

IP/2.0 200 OK
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.88:5060">172.25.25.88:5060</a>;rport=5060;branch=z9hG4bK1507969566
<br>

From: &lt;sip:c@172.25.25.88:5060&gt;;tag=1981102178
<br>

To: &lt;sip:c@172.25.25.88:5060&gt;;tag=b27e1a1d33761e85846fc98f5f3a7e58.0a43
<br>

Call-ID:   1003517860 [!at] <a href="http://172.25.25.88">172.25.25.88</a> (replace the [!at] with a @)
<br>

CSeq: 1 REGISTER
<br>

Contact: &lt;sip:c%94@172.25.25.88:5060&gt;;expires=3600
<br>

Server: Sip EXpress router (0.9.6 (i386/linux))
<br>

Content-Length: 0
<br>

Warning: 392 <a href="http://172.25.25.84:5060">172.25.25.84:5060</a> &quot;Noisy feedback tells: pid=21679
req_src_ip=<a href="http://172.25.25.88">172.25.25.88</a> req_src_port=5060 in_uri=sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a>
out_uri=sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> via_cnt==1&quot;
<br>


<br>

source=<a href="http://172.25.25.83:1025">172.25.25.83:1025</a> to=<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> 
<br>

REGISTER sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> SIP/2.0
<br>

Via: SIP/2.0/UDP <a href="http://192.168.0.2:5060">192.168.0.2:5060</a>;rport;branch=z9hG4bK600315716
<br>

From: &lt;sip:a@192.168.0.2:5060&gt;;tag=658770091
<br>

To: &lt;sip:a@192.168.0.2:5060&gt;
<br>

Call-ID:   2091069424 [!at] <a href="http://192.168.0.2">192.168.0.2</a> (replace the [!at] with a @)
<br>

CSeq: 1 REGISTER
<br>

Contact: &lt;sip:a@172.25.25.83:1026&gt;
<br>

Max-Forwards: 5
<br>

User-Agent: eXosip/0.1
<br>

Expires: 3600
<br>

Supported: 100rel
<br>

Supported: path
<br>

Content-Length: 0
<br>


<br>

source=<a href="http://172.25.25.83:1025">172.25.25.83:1025</a> to=<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> 
<br>

REGISTER sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> SIP/2.0
<br>

Via: SIP/2.0/UDP <a href="http://192.168.0.2:5060">192.168.0.2:5060</a>;rport;branch=z9hG4bK600315716
<br>

From: &lt;sip:a@192.168.0.2:5060&gt;;tag=658770091
<br>

To: &lt;sip:a@192.168.0.2:5060&gt;
<br>

Call-ID:   2091069424 [!at] <a href="http://192.168.0.2">192.168.0.2</a> (replace the [!at] with a @)
<br>

CSeq: 1 REGISTER
<br>

Contact: &lt;sip:a@172.25.25.83:1026&gt;
<br>

Max-Forwards: 5
<br>

User-Agent: eXosip/0.1
<br>

Expires: 3600
<br>

Supported: 100rel
<br>

Supported: path
<br>

Content-Length: 0
<br>


<br>


<br>

source=<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> to=<a href="http://172.25.25.83:1025">172.25.25.83:1025</a> 
<br>

SIP/2.0 200 OK
<br>

Via: SIP/2.0/UDP <a href="http://192.168.0.2:5060">192.168.0.2:5060</a>;rport=1025;branch=z9hG4bK600315716;received=<a href="http://172.25.25.83">172.25.25.83</a>
<br>

From: &lt;sip:a@192.168.0.2:5060&gt;;tag=658770091
<br>

To: &lt;sip:a@192.168.0.2:5060&gt;;tag=b27e1a1d33761e85846fc98f5f3a7e58.b319
<br>

Call-ID:   2091069424 [!at] <a href="http://192.168.0.2">192.168.0.2</a> (replace the [!at] with a @)
<br>

CSeq: 1 REGISTER
<br>

Contact: &lt;sip:a@172.25.25.83:1026&gt;;expires=3600, &lt;sip:a@172.25.25.83:5060&gt;;expires=2868
<br>

Server: Sip EXpress router (0.9.6 (i386/linux))
<br>

Content-Length: 0
<br>
Warning: 392 <a href="http://172.25.25.84:5060">172.25.25.84:5060</a> &quot;Noisy feedback tells: pid=21681
req_src_ip=<a href="http://172.25.25.83">172.25.25.83</a> req_src_port=1025 in_uri=sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a>
out_uri=sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> via_cnt==1&quot;
<br>


<br>


<br>

source=<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> to=<a href="http://172.25.25.83:1025">172.25.25.83:1025</a> 
<br>

SIP/2.0 200 OK
<br>

Via: SIP/2.0/UDP <a href="http://192.168.0.2:5060">192.168.0.2:5060</a>;rport=1025;branch=z9hG4bK600315716;received=<a href="http://172.25.25.83">172.25.25.83</a>
<br>

From: &lt;sip:a@192.168.0.2:5060&gt;;tag=658770091
<br>

To: &lt;sip:a@192.168.0.2:5060&gt;;tag=b27e1a1d33761e85846fc98f5f3a7e58.b319
<br>

Call-ID:   2091069424 [!at] <a href="http://192.168.0.2">192.168.0.2</a> (replace the [!at] with a @)
<br>

CSeq: 1 REGISTER
<br>

Contact: &lt;sip:a@172.25.25.83:1026&gt;;expires=3600, &lt;sip:a@172.25.25.83:5060&gt;;expires=2868
<br>

Server: Sip EXpress router (0.9.6 (i386/linux))
<br>

Content-Length: 0
<br>
Warning: 392 <a href="http://172.25.25.84:5060">172.25.25.84:5060</a> &quot;Noisy feedback tells: pid=21682
req_src_ip=<a href="http://172.25.25.83">172.25.25.83</a> req_src_port=1025 in_uri=sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a>
out_uri=sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> via_cnt==1&quot;
<br>


<br>


<br>

source=<a href="http://172.25.25.88:5060">172.25.25.88:5060</a> to=<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> 
<br>

INVITE sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> SIP/2.0
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.88:5060">172.25.25.88:5060</a>;rport;branch=z9hG4bK1784363542
<br>

Route: &lt;sip:a@192.168.0.2:5060&gt;
<br>

From: &lt;<a href="mailto:sip:c@172.25.25.88">sip:c@172.25.25.88</a>&gt;;tag=1669898773
<br>

To: &lt;sip:a@192.168.0.2:5060&gt;
<br>

Call-ID:   1721341700 [!at] <a href="http://172.25.25.88">172.25.25.88</a> (replace the [!at] with a @)
<br>

CSeq: 20 INVITE
<br>

Contact: &lt;sip:c@172.25.25.88:5060&gt;
<br>

Max-Forwards: 5
<br>

User-Agent: eXosip/0.1
<br>

Subject: hello
<br>

Expires: 120
<br>

Supported: 100rel
<br>

Allow: INVITE, ACK, UPDATE, INFO, CANCEL, BYE, OPTIONS, REFER, SUBSCRIBE, NOTIFY, MESSAGE
<br>

Content-Type: application/sdp
<br>

Content-Length:   264
<br>


<br>

v=0
<br>

o=josua 0 0 IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

s=conversation
<br>

c=IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

t=0 0
<br>

m=audio 5071 RTP/AVP 0 8 101
<br>

a=rtpmap:0 PCMU/8000
<br>

a=rtpmap:8 PCMA/8000
<br>

a=rtpmap:101 telephone-event/8000
<br>

a=fmtp:101 0-11
<br>

a=rtcp:5072 IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

a=direction:passive
<br>


<br>

source=<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> to=<a href="http://172.25.25.88:5060">172.25.25.88:5060</a> 
<br>

SIP/2.0 100 trying -- your call is important to us
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.88:5060">172.25.25.88:5060</a>;rport=5060;branch=z9hG4bK1784363542
<br>

From: &lt;<a href="mailto:sip:c@172.25.25.88">sip:c@172.25.25.88</a>&gt;;tag=1669898773
<br>

To: &lt;sip:a@192.168.0.2:5060&gt;
<br>

Call-ID:   1721341700 [!at] <a href="http://172.25.25.88">172.25.25.88</a> (replace the [!at] with a @)
<br>

CSeq: 20 INVITE
<br>

Server: Sip EXpress router (0.9.6 (i386/linux))
<br>

Content-Length: 0
<br>
Warning: 392 <a href="http://172.25.25.84:5060">172.25.25.84:5060</a> &quot;Noisy feedback tells: pid=21677
req_src_ip=<a href="http://172.25.25.88">172.25.25.88</a> req_src_port=5060 in_uri=sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a>
out_uri=sip:a@192.168.0.2:5060 via_cnt==1&quot;
<br>


<br>

source=<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> to=<a href="http://192.168.0.2:5060">192.168.0.2:5060</a> 
<br>

INVITE sip:a@192.168.0.2:5060 SIP/2.0
<br>

Record-Route: &lt;sip:<a href="http://172.25.25.84">172.25.25.84</a>;ftag=1669898773;lr=on&gt;
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.84">172.25.25.84</a>;branch=z9hG4bK21ea.9b53c1e3.0
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.88:5060">172.25.25.88:5060</a>;rport=5060;branch=z9hG4bK1784363542
<br>

From: &lt;<a href="mailto:sip:c@172.25.25.88">sip:c@172.25.25.88</a>&gt;;tag=1669898773
<br>

To: &lt;sip:a@192.168.0.2:5060&gt;
<br>

Call-ID:   1721341700 [!at] <a href="http://172.25.25.88">172.25.25.88</a> (replace the [!at] with a @)
<br>

CSeq: 20 INVITE
<br>

Contact: &lt;sip:c@172.25.25.88:5060&gt;
<br>

Max-Forwards: 4
<br>

User-Agent: eXosip/0.1
<br>

Subject: hello
<br>

Expires: 120
<br>

Supported: 100rel
<br>

Allow: INVITE, ACK, UPDATE, INFO, CANCEL, BYE, OPTIONS, REFER, SUBSCRIBE, NOTIFY, MESSAGE
<br>

Content-Type: application/sdp
<br>

Content-Length:   264
<br>

Route: &lt;sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a>&gt;
<br>

P-hint: rr-enforced
<br>


<br>

v=0
<br>

o=josua 0 0 IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

s=conversation
<br>

c=IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

t=0 0
<br>

m=audio 5071 RTP/AVP 0 8 101
<br>

a=rtpmap:0 PCMU/8000
<br>

a=rtpmap:8 PCMA/8000
<br>

a=rtpmap:101 telephone-event/8000
<br>

a=fmtp:101 0-11
<br>

a=rtcp:5072 IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

a=direction:passive
<br>


<br>


<br>

source=<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> to=<a href="http://192.168.0.2:5060">192.168.0.2:5060</a> 
<br>

INVITE sip:a@192.168.0.2:5060 SIP/2.0
<br>

Record-Route: &lt;sip:<a href="http://172.25.25.84">172.25.25.84</a>;ftag=1669898773;lr=on&gt;
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.84">172.25.25.84</a>;branch=z9hG4bK21ea.9b53c1e3.0
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.88:5060">172.25.25.88:5060</a>;rport=5060;branch=z9hG4bK1784363542
<br>

From: &lt;<a href="mailto:sip:c@172.25.25.88">sip:c@172.25.25.88</a>&gt;;tag=1669898773
<br>

To: &lt;sip:a@192.168.0.2:5060&gt;
<br>

Call-ID:   1721341700 [!at] <a href="http://172.25.25.88">172.25.25.88</a> (replace the [!at] with a @)
<br>

CSeq: 20 INVITE
<br>

Contact: &lt;sip:c@172.25.25.88:5060&gt;
<br>

Max-Forwards: 4
<br>

User-Agent: eXosip/0.1
<br>

Subject: hello
<br>

Expires: 120
<br>

Supported: 100rel
<br>

Allow: INVITE, ACK, UPDATE, INFO, CANCEL, BYE, OPTIONS, REFER, SUBSCRIBE, NOTIFY, MESSAGE
<br>

Content-Type: application/sdp
<br>

Content-Length:   264
<br>

Route: &lt;sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a>&gt;
<br>

P-hint: rr-enforced
<br>


<br>

v=0
<br>

o=josua 0 0 IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

s=conversation
<br>

c=IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

t=0 0
<br>

m=audio 5071 RTP/AVP 0 8 101
<br>

a=rtpmap:0 PCMU/8000
<br>

a=rtpmap:8 PCMA/8000
<br>

a=rtpmap:101 telephone-event/8000
<br>

a=fmtp:101 0-11
<br>

a=rtcp:5072 IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

a=direction:passive
<br>


<br>

source=<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> to=<a href="http://192.168.0.2:5060">192.168.0.2:5060</a> 
<br>

INVITE sip:a@192.168.0.2:5060 SIP/2.0
<br>

Record-Route: &lt;sip:<a href="http://172.25.25.84">172.25.25.84</a>;ftag=1669898773;lr=on&gt;
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.84">172.25.25.84</a>;branch=z9hG4bK21ea.9b53c1e3.0
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.88:5060">172.25.25.88:5060</a>;rport=5060;branch=z9hG4bK1784363542
<br>

From: &lt;<a href="mailto:sip:c@172.25.25.88">sip:c@172.25.25.88</a>&gt;;tag=1669898773
<br>

To: &lt;sip:a@192.168.0.2:5060&gt;
<br>

Call-ID:   1721341700 [!at] <a href="http://172.25.25.88">172.25.25.88</a> (replace the [!at] with a @)
<br>

CSeq: 20 INVITE
<br>

Contact: &lt;sip:c@172.25.25.88:5060&gt;
<br>

Max-Forwards: 4
<br>

User-Agent: eXosip/0.1
<br>

Subject: hello
<br>

Expires: 120
<br>

Supported: 100rel
<br>

Allow: INVITE, ACK, UPDATE, INFO, CANCEL, BYE, OPTIONS, REFER, SUBSCRIBE, NOTIFY, MESSAGE
<br>

Content-Type: application/sdp
<br>

Content-Length:   264
<br>

Route: &lt;sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a>&gt;
<br>

P-hint: rr-enforced
<br>


<br>

v=0
<br>

o=josua 0 0 IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

s=conversation
<br>

c=IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

t=0 0
<br>

m=audio 5071 RTP/AVP 0 8 101
<br>

a=rtpmap:0 PCMU/8000
<br>

a=rtpmap:8 PCMA/8000
<br>

a=rtpmap:101 telephone-event/8000
<br>

a=fmtp:101 0-11
<br>

a=rtcp:5072 IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

a=direction:passive
<br>


<br>

source=<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> to=<a href="http://192.168.0.2:5060">192.168.0.2:5060</a> 
<br>

INVITE sip:a@192.168.0.2:5060 SIP/2.0
<br>

Record-Route: &lt;sip:<a href="http://172.25.25.84">172.25.25.84</a>;ftag=1669898773;lr=on&gt;
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.84">172.25.25.84</a>;branch=z9hG4bK21ea.9b53c1e3.0
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.88:5060">172.25.25.88:5060</a>;rport=5060;branch=z9hG4bK1784363542
<br>

From: &lt;<a href="mailto:sip:c@172.25.25.88">sip:c@172.25.25.88</a>&gt;;tag=1669898773
<br>

To: &lt;sip:a@192.168.0.2:5060&gt;
<br>

Call-ID:   1721341700 [!at] <a href="http://172.25.25.88">172.25.25.88</a> (replace the [!at] with a @)
<br>

CSeq: 20 INVITE
<br>

Contact: &lt;sip:c@172.25.25.88:5060&gt;
<br>

Max-Forwards: 4
<br>

User-Agent: eXosip/0.1
<br>

Subject: hello
<br>

Expires: 120
<br>

Supported: 100rel
<br>

Allow: INVITE, ACK, UPDATE, INFO, CANCEL, BYE, OPTIONS, REFER, SUBSCRIBE, NOTIFY, MESSAGE
<br>

Content-Type: application/sdp
<br>

Content-Length:   264
<br>

Route: &lt;sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a>&gt;
<br>

P-hint: rr-enforced
<br>


<br>

v=0
<br>

o=josua 0 0 IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

s=conversation
<br>

c=IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

t=0 0
<br>

m=audio 5071 RTP/AVP 0 8 101
<br>

a=rtpmap:0 PCMU/8000
<br>

a=rtpmap:8 PCMA/8000
<br>

a=rtpmap:101 telephone-event/8000
<br>

a=fmtp:101 0-11
<br>

a=rtcp:5072 IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

a=direction:passive
<br>


<br>

source=<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> to=<a href="http://192.168.0.2:5060">192.168.0.2:5060</a> 
<br>

INVITE sip:a@192.168.0.2:5060 SIP/2.0
<br>

Record-Route: &lt;sip:<a href="http://172.25.25.84">172.25.25.84</a>;ftag=1669898773;lr=on&gt;
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.84">172.25.25.84</a>;branch=z9hG4bK21ea.9b53c1e3.0
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.88:5060">172.25.25.88:5060</a>;rport=5060;branch=z9hG4bK1784363542
<br>

From: &lt;<a href="mailto:sip:c@172.25.25.88">sip:c@172.25.25.88</a>&gt;;tag=1669898773
<br>

To: &lt;sip:a@192.168.0.2:5060&gt;
<br>

Call-ID:   1721341700 [!at] <a href="http://172.25.25.88">172.25.25.88</a> (replace the [!at] with a @)
<br>

CSeq: 20 INVITE
<br>

Contact: &lt;sip:c@172.25.25.88:5060&gt;
<br>

Max-Forwards: 4
<br>

User-Agent: eXosip/0.1
<br>

Subject: hello
<br>

Expires: 120
<br>

Supported: 100rel
<br>

Allow: INVITE, ACK, UPDATE, INFO, CANCEL, BYE, OPTIONS, REFER, SUBSCRIBE, NOTIFY, MESSAGE
<br>

Content-Type: application/sdp
<br>

Content-Length:   264
<br>

Route: &lt;sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a>&gt;
<br>

P-hint: rr-enforced
<br>


<br>

v=0
<br>

o=josua 0 0 IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

s=conversation
<br>

c=IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

t=0 0
<br>

m=audio 5071 RTP/AVP 0 8 101
<br>

a=rtpmap:0 PCMU/8000
<br>

a=rtpmap:8 PCMA/8000
<br>

a=rtpmap:101 telephone-event/8000
<br>

a=fmtp:101 0-11
<br>

a=rtcp:5072 IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

a=direction:passive
<br>


<br>

source=<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> to=<a href="http://192.168.0.2:5060">192.168.0.2:5060</a> 
<br>

INVITE sip:a@192.168.0.2:5060 SIP/2.0
<br>

Record-Route: &lt;sip:<a href="http://172.25.25.84">172.25.25.84</a>;ftag=1669898773;lr=on&gt;
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.84">172.25.25.84</a>;branch=z9hG4bK21ea.9b53c1e3.0
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.88:5060">172.25.25.88:5060</a>;rport=5060;branch=z9hG4bK1784363542
<br>

From: &lt;<a href="mailto:sip:c@172.25.25.88">sip:c@172.25.25.88</a>&gt;;tag=1669898773
<br>

To: &lt;sip:a@192.168.0.2:5060&gt;
<br>

Call-ID:   1721341700 [!at] <a href="http://172.25.25.88">172.25.25.88</a> (replace the [!at] with a @)
<br>

CSeq: 20 INVITE
<br>

Contact: &lt;sip:c@172.25.25.88:5060&gt;
<br>

Max-Forwards: 4
<br>

User-Agent: eXosip/0.1
<br>

Subject: hello
<br>

Expires: 120
<br>

Supported: 100rel
<br>

Allow: INVITE, ACK, UPDATE, INFO, CANCEL, BYE, OPTIONS, REFER, SUBSCRIBE, NOTIFY, MESSAGE
<br>

Content-Type: application/sdp
<br>

Content-Length:   264
<br>

Route: &lt;sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a>&gt;
<br>

P-hint: rr-enforced
<br>


<br>

v=0
<br>

o=josua 0 0 IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

s=conversation
<br>

c=IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

t=0 0
<br>

m=audio 5071 RTP/AVP 0 8 101
<br>

a=rtpmap:0 PCMU/8000
<br>

a=rtpmap:8 PCMA/8000
<br>

a=rtpmap:101 telephone-event/8000
<br>

a=fmtp:101 0-11
<br>

a=rtcp:5072 IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

a=direction:passive
<br>


<br>

source=<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> to=<a href="http://192.168.0.2:5060">192.168.0.2:5060</a> 
<br>

INVITE sip:a@192.168.0.2:5060 SIP/2.0
<br>

Record-Route: &lt;sip:<a href="http://172.25.25.84">172.25.25.84</a>;ftag=1669898773;lr=on&gt;
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.84">172.25.25.84</a>;branch=z9hG4bK21ea.9b53c1e3.0
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.88:5060">172.25.25.88:5060</a>;rport=5060;branch=z9hG4bK1784363542
<br>

From: &lt;<a href="mailto:sip:c@172.25.25.88">sip:c@172.25.25.88</a>&gt;;tag=1669898773
<br>

To: &lt;sip:a@192.168.0.2:5060&gt;
<br>

Call-ID:   1721341700 [!at] <a href="http://172.25.25.88">172.25.25.88</a> (replace the [!at] with a @)
<br>

CSeq: 20 INVITE
<br>

Contact: &lt;sip:c@172.25.25.88:5060&gt;
<br>

Max-Forwards: 4
<br>

User-Agent: eXosip/0.1
<br>

Subject: hello
<br>

Expires: 120
<br>

Supported: 100rel
<br>

Allow: INVITE, ACK, UPDATE, INFO, CANCEL, BYE, OPTIONS, REFER, SUBSCRIBE, NOTIFY, MESSAGE
<br>

Content-Type: application/sdp
<br>

Content-Length:   264
<br>

Route: &lt;sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a>&gt;
<br>

P-hint: rr-enforced
<br>


<br>

v=0
<br>

o=josua 0 0 IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

s=conversation
<br>

c=IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

t=0 0
<br>

m=audio 5071 RTP/AVP 0 8 101
<br>

a=rtpmap:0 PCMU/8000
<br>

a=rtpmap:8 PCMA/8000
<br>

a=rtpmap:101 telephone-event/8000
<br>

a=fmtp:101 0-11
<br>

a=rtcp:5072 IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

a=direction:passive
<br>


<br>

source=<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> to=<a href="http://192.168.0.2:5060">192.168.0.2:5060</a> 
<br>

INVITE sip:a@192.168.0.2:5060 SIP/2.0
<br>

Record-Route: &lt;sip:<a href="http://172.25.25.84">172.25.25.84</a>;ftag=1669898773;lr=on&gt;
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.84">172.25.25.84</a>;branch=z9hG4bK21ea.9b53c1e3.0
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.88:5060">172.25.25.88:5060</a>;rport=5060;branch=z9hG4bK1784363542
<br>

From: &lt;<a href="mailto:sip:c@172.25.25.88">sip:c@172.25.25.88</a>&gt;;tag=1669898773
<br>

To: &lt;sip:a@192.168.0.2:5060&gt;
<br>

Call-ID:   1721341700 [!at] <a href="http://172.25.25.88">172.25.25.88</a> (replace the [!at] with a @)
<br>

CSeq: 20 INVITE
<br>

Contact: &lt;sip:c@172.25.25.88:5060&gt;
<br>

Max-Forwards: 4
<br>

User-Agent: eXosip/0.1
<br>

Subject: hello
<br>

Expires: 120
<br>

Supported: 100rel
<br>

Allow: INVITE, ACK, UPDATE, INFO, CANCEL, BYE, OPTIONS, REFER, SUBSCRIBE, NOTIFY, MESSAGE
<br>

Content-Type: application/sdp
<br>

Content-Length:   264
<br>

Route: &lt;sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a>&gt;
<br>

P-hint: rr-enforced
<br>


<br>

v=0
<br>

o=josua 0 0 IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

s=conversation
<br>

c=IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

t=0 0
<br>

m=audio 5071 RTP/AVP 0 8 101
<br>

a=rtpmap:0 PCMU/8000
<br>

a=rtpmap:8 PCMA/8000
<br>

a=rtpmap:101 telephone-event/8000
<br>

a=fmtp:101 0-11
<br>

a=rtcp:5072 IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

a=direction:passive
<br>


<br>

source=<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> to=<a href="http://192.168.0.2:5060">192.168.0.2:5060</a> 
<br>

INVITE sip:a@192.168.0.2:5060 SIP/2.0
<br>

Record-Route: &lt;sip:<a href="http://172.25.25.84">172.25.25.84</a>;ftag=1669898773;lr=on&gt;
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.84">172.25.25.84</a>;branch=z9hG4bK21ea.9b53c1e3.0
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.88:5060">172.25.25.88:5060</a>;rport=5060;branch=z9hG4bK1784363542
<br>

From: &lt;<a href="mailto:sip:c@172.25.25.88">sip:c@172.25.25.88</a>&gt;;tag=1669898773
<br>

To: &lt;sip:a@192.168.0.2:5060&gt;
<br>

Call-ID:   1721341700 [!at] <a href="http://172.25.25.88">172.25.25.88</a> (replace the [!at] with a @)
<br>

CSeq: 20 INVITE
<br>

Contact: &lt;sip:c@172.25.25.88:5060&gt;
<br>

Max-Forwards: 4
<br>

User-Agent: eXosip/0.1
<br>

Subject: hello
<br>

Expires: 120
<br>

Supported: 100rel
<br>

Allow: INVITE, ACK, UPDATE, INFO, CANCEL, BYE, OPTIONS, REFER, SUBSCRIBE, NOTIFY, MESSAGE
<br>

Content-Type: application/sdp
<br>

Content-Length:   264
<br>

Route: &lt;sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a>&gt;
<br>

P-hint: rr-enforced
<br>


<br>

v=0
<br>

o=josua 0 0 IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

s=conversation
<br>

c=IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

t=0 0
<br>

m=audio 5071 RTP/AVP 0 8 101
<br>

a=rtpmap:0 PCMU/8000
<br>

a=rtpmap:8 PCMA/8000
<br>

a=rtpmap:101 telephone-event/8000
<br>

a=fmtp:101 0-11
<br>

a=rtcp:5072 IN IP4 <a href="http://172.25.25.88">172.25.25.88</a>
<br>

a=direction:passive
<br>


<br>

source=<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> to=<a href="http://172.25.25.88:5060">172.25.25.88:5060</a> 
<br>

cSIP/2.0 408 Request Timeout
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.88:5060">172.25.25.88:5060</a>;rport=5060;branch=z9hG4bK1784363542
<br>

From: &lt;<a href="mailto:sip:c@172.25.25.88">sip:c@172.25.25.88</a>&gt;;tag=1669898773
<br>

To: &lt;sip:a@192.168.0.2:5060&gt;;tag=a6a1c5f60faecf035a1ae5b6e96e979a-cbaa
<br>

Call-ID:   1721341700 [!at] <a href="http://172.25.25.88">172.25.25.88</a> (replace the [!at] with a @)
<br>

CSeq: 20 INVITE
<br>

Server: Sip EXpress router (0.9.6 (i386/linux))
<br>

Content-Length: 0
<br>
Warning: 392 <a href="http://172.25.25.84:5060">172.25.25.84:5060</a> &quot;Noisy feedback tells: pid=21691
req_src_ip=<a href="http://172.25.25.88">172.25.25.88</a> req_src_port=5060 in_uri=sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a>
out_uri=sip:a@192.168.0.2:5060 via_cnt==0&quot;
<br>


<br>

source=<a href="http://172.25.25.88:5060">172.25.25.88:5060</a> to=<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> 
<br>

ACK sip:<a href="http://172.25.25.84:5060">172.25.25.84:5060</a> SIP/2.0
<br>

Via: SIP/2.0/UDP <a href="http://172.25.25.88:5060">172.25.25.88:5060</a>;rport;branch=z9hG4bK1784363542
<br>

Route: &lt;sip:a@192.168.0.2:5060&gt;
<br>

From: &lt;<a href="mailto:sip:c@172.25.25.88">sip:c@172.25.25.88</a>&gt;;tag=1669898773
<br>

To: &lt;sip:a@192.168.0.2:5060&gt;;tag=a6a1c5f60faecf035a1ae5b6e96e979a-cbaa
<br>

Call-ID:   1721341700 [!at] <a href="http://172.25.25.88">172.25.25.88</a> (replace the [!at] with a @)
<br>

CSeq: 20 ACK
<br>

Content-Length: 0<br>
---------------------------------------------------------------------------------------------------------------------------------------------<br>
<br>
<br>
<br>
the SER configuration file is:
<br>


<br>

-----------------------------------------------------------------
<br>

#
<br>

# $Id: ser.cfg,v <a href="http://1.25.2.1">1.25.2.1</a> 2005/02/18 14:30:44 andrei Exp $
<br>

#
<br>

# simple quick-start config script
<br>

#
<br>


<br>

# ----------- global configuration parameters ------------------------
<br>


<br>

#debug=3         # debug level (cmd line: -dddddddddd)
<br>

#fork=yes
<br>

#log_stderror=no        # (cmd line: -E)
<br>


<br>

/* Uncomment these lines to enter debugging mode 
<br>

fork=no
<br>

log_stderror=yes
<br>

*/
<br>


<br>

check_via=no        # (cmd. line: -v)
<br>

dns=no           # (cmd. line: -r)
<br>

rev_dns=no      # (cmd. line: -R)
<br>

#port=5060
<br>

#children=4
<br>

fifo=&quot;/tmp/ser_fifo&quot;
<br>


<br>

# ------------------ module loading ----------------------------------
<br>


<br>

# Uncomment this if you want to use SQL database
<br>

#loadmodule &quot;/usr/local/lib/ser/modules/mysql.so&quot;
<br>


<br>

loadmodule &quot;/usr/local/lib/ser/modules/sl.so&quot;
<br>

loadmodule &quot;/usr/local/lib/ser/modules/tm.so&quot;
<br>

loadmodule &quot;/usr/local/lib/ser/modules/rr.so&quot;
<br>

loadmodule &quot;/usr/local/lib/ser/modules/maxfwd.so&quot;
<br>

loadmodule &quot;/usr/local/lib/ser/modules/usrloc.so&quot;
<br>

loadmodule &quot;/usr/local/lib/ser/modules/registrar.so&quot;
<br>

loadmodule &quot;/usr/local/lib/ser/modules/textops.so&quot;
<br>


<br>

# Uncomment this if you want digest authentication
<br>

# mysql.so must be loaded !
<br>

#loadmodule &quot;/usr/local/lib/ser/modules/auth.so&quot;
<br>

#loadmodule &quot;/usr/local/lib/ser/modules/auth_db.so&quot;
<br>


<br>

# ----------------- setting module-specific parameters ---------------
<br>


<br>

# -- usrloc params --
<br>


<br>

modparam(&quot;usrloc&quot;, &quot;db_mode&quot;,   0)
<br>


<br>

# Uncomment this if you want to use SQL database 
<br>

# for persistent storage and comment the previous line
<br>

#modparam(&quot;usrloc&quot;, &quot;db_mode&quot;, 2)
<br>


<br>

# -- auth params --
<br>

# Uncomment if you are using auth module
<br>

#
<br>

#modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, yes)
<br>

#
<br>

# If you set &quot;calculate_ha1&quot; parameter to yes (which true in this config), 
<br>

# uncomment also the following parameter)
<br>

#
<br>

#modparam(&quot;auth_db&quot;, &quot;password_column&quot;, &quot;password&quot;)
<br>


<br>

# -- rr params --
<br>

# add value to ;lr param to make some broken UAs happy
<br>

modparam(&quot;rr&quot;, &quot;enable_full_lr&quot;, 1)
<br>


<br>

# -------------------------  request routing logic -------------------
<br>


<br>

# main routing logic
<br>


<br>

route{
<br>


<br>

        # initial sanity checks -- messages with
<br>

        # max_forwards==0, or excessively long requests
<br>

        if (!mf_process_maxfwd_header(&quot;10&quot;)) {
<br>

                sl_send_reply(&quot;483&quot;,&quot;Too Many Hops&quot;);
<br>

                break;
<br>

        };
<br>

        if (msg:len &gt;=  2048 ) {
<br>

                sl_send_reply(&quot;513&quot;, &quot;Message too big&quot;);
<br>

                break;
<br>

        };
<br>

        
<br>


<br>

        # we record-route all messages -- to make sure that
<br>

        # subsequent messages will go through our proxy; that's
<br>

        # particularly good if upstream and downstream entities
<br>

        # use different transport protocol
<br>

        if (!method==&quot;REGISTER&quot;) record_route();        
<br>


<br>

        # subsequent messages withing a dialog should take the
<br>

        # path determined by record-routing
<br>

        if (loose_route()) {
<br>

                # mark routing logic in request
<br>

                append_hf(&quot;P-hint: rr-enforced\r\n&quot;); 
<br>

                route(1);
<br>

                break;
<br>

        };
<br>


<br>

        if (!uri==myself) {
<br>

                # mark routing logic in request
<br>

                append_hf(&quot;P-hint: outbound\r\n&quot;); 
<br>

                route(1);
<br>

                break;
<br>

        };
<br>


<br>

        # if the request is for other domain use UsrLoc
<br>

        # (in case, it does not work, use the following command
<br>

        # with proper names and addresses in it)
<br>

        if (uri==myself) {
<br>


<br>

                if (method==&quot;REGISTER&quot;) {
<br>


<br>

# Uncomment this if you want to use digest authentication
<br>

#                        if (!www_authorize(&quot;<a href="http://iptel.org">iptel.org</a>&quot;, &quot;subscriber&quot;)) {
<br>

#                                www_challenge(&quot;<a href="http://iptel.org">iptel.org</a>&quot;, &quot;0&quot;);
<br>

#                                break;
<br>

#                        };
<br>


<br>

                        save(&quot;location&quot;);
<br>

                        break;
<br>

                };
<br>


<br>

                lookup(&quot;aliases&quot;);
<br>

                if (!uri==myself) {
<br>

                        append_hf(&quot;P-hint: outbound alias\r\n&quot;); 
<br>

                        route(1);
<br>

                        break;
<br>

                };
<br>


<br>

                # native SIP destinations are handled using our USRLOC DB
<br>

                if (!lookup(&quot;location&quot;)) {
<br>

                        sl_send_reply(&quot;404&quot;, &quot;Not Found&quot;);
<br>

                        break;
<br>

                };
<br>

        };
<br>

        append_hf(&quot;P-hint: usrloc applied\r\n&quot;); 
<br>

        route(1);
<br>

}
<br>


<br>

route[1] 
<br>

{
<br>

        # send it out now; use stateful forwarding as it works reliably
<br>

        # even for UDP2TCP
<br>

        if (!t_relay()) {
<br>

                sl_reply_error();
<br>

        };
<br>

}
<br>


<br>

---------------------------------------------------------------<br>
<br>
<br>
Please help me in this regard.<br>
<br>
<br>
Asif<br>