[Serusers] Append_hf not working for invite requests

Singh, Amit Amit.Singh at sonyericsson.com
Mon Jul 11 17:13:54 CEST 2005


Hi,

I have added the following lines in my cfg file:

If(uri==myself) {
....
if (method=="INVITE" && t_newtran()) {
			if
(uri=~"^sip:(.+@)?(10\.1\.100\.10)([:;\?].*)?$") {
				append_hf("Retry-After: 120");
				t_reply("480", "Stateful 480 Reply");
			} else {
				sl_send_reply("480", "Stateless 480
Reply");
			};
			break;
		};

Now, I am expecting that when I get the response back from SER, the
header should contain REPLY-AFTER header. But it does not.

Any Ideas as to why the REPLY-AFTER is not appended to the message
header?

Here is the transaction:

10.1.100.10:5060              10.1.0.149:3490
|                             | <Call><PFrame><Time>
|                             |
|<--------------- REGISTER F1<|  1 PF:50  10:06:46.3533
|                             |
|>F2 200 OK ----------------->|  1 PF:51  10:06:46.3557
|                             |
|<------------(sdp) INVITE F3<|  2 PF:55  10:07:31.3778
|                             |
|>F4 480 Stateful 480 Reply ->|  2 PF:56  10:07:31.4967
|                             |
|>F5 480 Stateful 480 Reply ->|  2 PF:57  10:07:31.5715
|                             |
|<-------------------- ACK F6<|  2 PF:58  10:07:33.5186
|                             |
|<------------(sdp) INVITE F7<|  3 PF:167 10:26:51.5746
|                             |
|>F8 480 Stateful 480 Reply ->|  3 PF:170 10:26:51.5939
|                             |
|>F9 480 Stateful 480 Reply ->|  3 PF:171 10:26:52.3072
|                             |
|<------------------- ACK F10<|  3 PF:172 10:26:53.5354
|                             |
|<------------------- ACK F11<|  3 PF:173 10:26:53.7753

========================================================================
========

     SIP MESSAGE 1        10.1.0.149:3490() -> 10.1.100.10:5060()
     UDP Frame 50       11/Jul/05 10:06:46.3533
TimeFromPreviousSipFrame=490.6428 TimeFromStart=490.6428 
REGISTER sip:10.1.100.10 SIP/2.0 
Via: SIP/2.0/UDP 10.1.0.149:3490;branch=z9hG4bK944888c1.10.1.0.149.3490 
From: "alice" <sip:alice at 10.1.100.10>;tag=214fc363.10.1.0.149.3490 
To: "alice" <sip:alice at 10.1.100.10> 
Call-ID: f53fe6c39e6fcc1d at 10.1.0.149.3490 
CSeq: 1 REGISTER 
Contact: "alice"
<sip:alice at 10.1.0.149:3490;transport=udp>;expires=7200;methods="INVITE,
OPTIONS, BYE, CANCEL, ACK, SUBSCRIBE, NOTIFY";+g.poc.talkburst 
max-forwards: 70 
supported: pref 
Content-Length: 0 
 

========================================================================
========

     SIP MESSAGE 2        10.1.100.10:5060() -> 10.1.0.149:3490()
     UDP Frame 51       11/Jul/05 10:06:46.3557
TimeFromPreviousSipFrame=0.0024 TimeFromStart=490.6452 
SIP/2.0 200 OK 
Via: SIP/2.0/UDP 10.1.0.149:3490;branch=z9hG4bK944888c1.10.1.0.149.3490 
From: "alice" <sip:alice at 10.1.100.10>;tag=214fc363.10.1.0.149.3490 
To: "alice"
<sip:alice at 10.1.100.10>;tag=b27e1a1d33761e85846fc98f5f3a7e58.ed9f 
Call-ID: f53fe6c39e6fcc1d at 10.1.0.149.3490 
CSeq: 1 REGISTER 
Contact: <sip:alice at 10.1.0.180:3490;transport=udp>;expires=6617,
<sip:alice at 10.1.0.149:3490;transport=udp>;expires=7200 
Server: Sip EXpress router (0.8.99-dev2 (i386/linux)) 
Content-Length: 0 
Warning: 392 10.1.100.10:5060 "Noisy feedback tells:  pid=14070
req_src_ip=10.1.0.149 req_src_port=3490 in_uri=sip:10.1.100.10
out_uri=sip:10.1.100.10 via_cnt==1" 
 

========================================================================
========

     SIP MESSAGE 3        10.1.0.149:3490() -> 10.1.100.10:5060()
     UDP Frame 55       11/Jul/05 10:07:31.3778
TimeFromPreviousSipFrame=45.0221 TimeFromStart=535.6673 
INVITE sip:error480 at 10.1.100.10 SIP/2.0 
Via: SIP/2.0/UDP 10.1.0.149:3490;branch=z9hG4bK411c33ff.10.1.0.149.3490 
From: "alice" <sip:alice at 10.1.0.149>;tag=369b1fba.10.1.0.149.3490 
To: <sip:error480 at 10.1.100.10> 
Call-ID: 66fcd326 at 10.1.0.149.3490 
CSeq: 1 INVITE 
Contact: "alice" <sip:alice at 10.1.0.149:3490>;+g.poc.talkburst 
max-forwards: 70 
accept-contact: *;+g.poc.talkburst;require;explicit 
Content-Type: application/sdp 
Content-Length:   131 
 
v=0 
o=- 1113854502 1113854502 IN IP4 10.1.0.149 
s=- 
c=IN IP4 10.1.0.149 
t=0 0 
m=audio 1000 RTP/AVP 98 
a=rtpmap:98 AMR/16000 

========================================================================
========

     SIP MESSAGE 4        10.1.100.10:5060() -> 10.1.0.149:3490()
     UDP Frame 56       11/Jul/05 10:07:31.4967
TimeFromPreviousSipFrame=0.1190 TimeFromStart=535.7863 
SIP/2.0 480 Stateful 480 Reply 
Via: SIP/2.0/UDP 10.1.0.149:3490;branch=z9hG4bK411c33ff.10.1.0.149.3490 
From: "alice" <sip:alice at 10.1.0.149>;tag=369b1fba.10.1.0.149.3490 
To: <sip:error480 at 10.1.100.10>;tag=a6a1c5f60faecf035a1ae5b6e96e979a-d446

Call-ID: 66fcd326 at 10.1.0.149.3490 
CSeq: 1 INVITE 
Server: Sip EXpress router (0.8.99-dev2 (i386/linux)) 
Content-Length: 0 
Warning: 392 10.1.100.10:5060 "Noisy feedback tells:  pid=14072
req_src_ip=10.1.0.149 req_src_port=3490 in_uri=sip:error480 at 10.1.100.10
out_uri=sip:error480 at 10.1.100.10 via_cnt==1" 
 

========================================================================
========

     SIP MESSAGE 5        10.1.100.10:5060() -> 10.1.0.149:3490()
     UDP Frame 57       11/Jul/05 10:07:31.5715
TimeFromPreviousSipFrame=0.0747 TimeFromStart=535.8610 
SIP/2.0 480 Stateful 480 Reply 
Via: SIP/2.0/UDP 10.1.0.149:3490;branch=z9hG4bK411c33ff.10.1.0.149.3490 
From: "alice" <sip:alice at 10.1.0.149>;tag=369b1fba.10.1.0.149.3490 
To: <sip:error480 at 10.1.100.10>;tag=a6a1c5f60faecf035a1ae5b6e96e979a-d446

Call-ID: 66fcd326 at 10.1.0.149.3490 
CSeq: 1 INVITE 
Server: Sip EXpress router (0.8.99-dev2 (i386/linux)) 
Content-Length: 0 
Warning: 392 10.1.100.10:5060 "Noisy feedback tells:  pid=14072
req_src_ip=10.1.0.149 req_src_port=3490 in_uri=sip:error480 at 10.1.100.10
out_uri=sip:error480 at 10.1.100.10 via_cnt==1" 
 

========================================================================
========

     SIP MESSAGE 6        10.1.0.149:3490() -> 10.1.100.10:5060()
     UDP Frame 58       11/Jul/05 10:07:33.5186
TimeFromPreviousSipFrame=1.9471 TimeFromStart=537.8081 
ACK sip:error480 at 10.1.100.10 SIP/2.0 
Via: SIP/2.0/UDP 10.1.0.149:3490;branch=z9hG4bK411c33ff.10.1.0.149.3490 
From: "alice" <sip:alice at 10.1.0.149>;tag=369b1fba.10.1.0.149.3490 
To: <sip:error480 at 10.1.100.10>;tag=a6a1c5f60faecf035a1ae5b6e96e979a-d446

Call-ID: 66fcd326 at 10.1.0.149.3490 
CSeq: 1 ACK 
Content-Length: 0 
 

========================================================================
========

     SIP MESSAGE 7        10.1.0.149:3490() -> 10.1.100.10:5060()
     UDP Frame 167      11/Jul/05 10:26:51.5746
TimeFromPreviousSipFrame=1158.0560 TimeFromStart=1695.8641 
INVITE sip:error480 at 10.1.100.10 SIP/2.0 
Via: SIP/2.0/UDP 10.1.0.149:3490;branch=z9hG4bKd8f1b2b1.10.1.0.149.3490 
From: "alice" <sip:alice at 10.1.0.149>;tag=88bb6f0e.10.1.0.149.3490 
To: <sip:error480 at 10.1.100.10> 
Call-ID: 749a6f74 at 10.1.0.149.3490 
CSeq: 2 INVITE 
Contact: "alice" <sip:alice at 10.1.0.149:3490>;+g.poc.talkburst 
max-forwards: 70 
accept-contact: *;+g.poc.talkburst;require;explicit 
Content-Type: application/sdp 
Content-Length:   131 
 
v=0 
o=- 1113855662 1113855662 IN IP4 10.1.0.149 
s=- 
c=IN IP4 10.1.0.149 
t=0 0 
m=audio 1000 RTP/AVP 98 
a=rtpmap:98 AMR/16000 

========================================================================
========

     SIP MESSAGE 8        10.1.100.10:5060() -> 10.1.0.149:3490()
     UDP Frame 170      11/Jul/05 10:26:51.5939
TimeFromPreviousSipFrame=0.0193 TimeFromStart=1695.8834 
SIP/2.0 480 Stateful 480 Reply 
Via: SIP/2.0/UDP 10.1.0.149:3490;branch=z9hG4bKd8f1b2b1.10.1.0.149.3490 
From: "alice" <sip:alice at 10.1.0.149>;tag=88bb6f0e.10.1.0.149.3490 
To: <sip:error480 at 10.1.100.10>;tag=a6a1c5f60faecf035a1ae5b6e96e979a-f855

Call-ID: 749a6f74 at 10.1.0.149.3490 
CSeq: 2 INVITE 
Server: Sip EXpress router (0.8.99-dev2 (i386/linux)) 
Content-Length: 0 
Warning: 392 10.1.100.10:5060 "Noisy feedback tells:  pid=14068
req_src_ip=10.1.0.149 req_src_port=3490 in_uri=sip:error480 at 10.1.100.10
out_uri=sip:error480 at 10.1.100.10 via_cnt==1" 
 

========================================================================
========

     SIP MESSAGE 9        10.1.100.10:5060() -> 10.1.0.149:3490()
     UDP Frame 171      11/Jul/05 10:26:52.3072
TimeFromPreviousSipFrame=0.7133 TimeFromStart=1696.5967 
SIP/2.0 480 Stateful 480 Reply 
Via: SIP/2.0/UDP 10.1.0.149:3490;branch=z9hG4bKd8f1b2b1.10.1.0.149.3490 
From: "alice" <sip:alice at 10.1.0.149>;tag=88bb6f0e.10.1.0.149.3490 
To: <sip:error480 at 10.1.100.10>;tag=a6a1c5f60faecf035a1ae5b6e96e979a-f855

Call-ID: 749a6f74 at 10.1.0.149.3490 
CSeq: 2 INVITE 
Server: Sip EXpress router (0.8.99-dev2 (i386/linux)) 
Content-Length: 0 
Warning: 392 10.1.100.10:5060 "Noisy feedback tells:  pid=14068
req_src_ip=10.1.0.149 req_src_port=3490 in_uri=sip:error480 at 10.1.100.10
out_uri=sip:error480 at 10.1.100.10 via_cnt==1" 
 

========================================================================
========

     SIP MESSAGE 10       10.1.0.149:3490() -> 10.1.100.10:5060()
     UDP Frame 172      11/Jul/05 10:26:53.5354
TimeFromPreviousSipFrame=1.2282 TimeFromStart=1697.8249 
ACK sip:error480 at 10.1.100.10 SIP/2.0 
Via: SIP/2.0/UDP 10.1.0.149:3490;branch=z9hG4bKd8f1b2b1.10.1.0.149.3490 
From: "alice" <sip:alice at 10.1.0.149>;tag=88bb6f0e.10.1.0.149.3490 
To: <sip:error480 at 10.1.100.10>;tag=a6a1c5f60faecf035a1ae5b6e96e979a-f855

Call-ID: 749a6f74 at 10.1.0.149.3490 
CSeq: 2 ACK 
Content-Length: 0 
 

========================================================================
========

     SIP MESSAGE 11       10.1.0.149:3490() -> 10.1.100.10:5060()
     UDP Frame 173      11/Jul/05 10:26:53.7753
TimeFromPreviousSipFrame=0.2400 TimeFromStart=1698.0648 
ACK sip:error480 at 10.1.100.10 SIP/2.0 
Via: SIP/2.0/UDP 10.1.0.149:3490;branch=z9hG4bKd8f1b2b1.10.1.0.149.3490 
From: "alice" <sip:alice at 10.1.0.149>;tag=88bb6f0e.10.1.0.149.3490 
To: <sip:error480 at 10.1.100.10>;tag=a6a1c5f60faecf035a1ae5b6e96e979a-f855

Call-ID: 749a6f74 at 10.1.0.149.3490 
CSeq: 2 ACK 
Content-Length: 0 
 

========================================================================
========

List of reasons 398 traced packets out of 409 in scenario were not
included. 11 included.
[192]  Non Sip TCP/UDP Packet Filtered Out
[117]  TCP No Data
[33]   IEEE802.3 Packet
[30]   IGMP Packets
[20]   Arp Packets
[6]    TCP Duplicate Data
========================================================================
========


Thanks & Regards,
Amit Singh
Sony Ericsson Mobile Communications,
7001 Development Drive,
RTP Durham, NC 27709
Ph: +1-919-472-1601

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20050711/6bc99b79/attachment.htm>


More information about the sr-users mailing list