[Users] ReInvite Issue

Brandon Armstead brandon.armstead at gmail.com
Wed Mar 28 16:19:41 CEST 2007


Hello everyone,

    I'm running into a issue, where I'm trying to implement parallel
forking, so basically on incoming calls from gateway, I want to then
Re-Invite, and send out the calls to multiple destinations, I am currently,
using avp_db_query to grab the sip uri's and throwing them into an avp list,
and avp_pushto("$ru", "$avp(i:1)/g");  This all works fine and good, invite
comes in, and then sends Re-Invites, however, there seems to be some kind of
race condition where, it is not properly processing all of the Re-Invites,
to fork the calls out, and basically one of the calls picks up 183 early
media, then 200 OK, and terminates the other branches / calls.  However they
were never executed / no phone was ever picked up.  Any ideas on what I'm
doing wrong, or what could possibly be happening?  Any help is appreciated,
thank you.

I am using OpenSER v1.1.1, example sipcap posted below:

match: CALLEE
#################
U +0.000000 GATEWAY_1:5060 -> OpenSER:5060
INVITE sip:CALLEE at OpenSER:5060 SIP/2.0.
Record-Route: <sip:GATEWAY_1;lr=on;ftag=as17d625b5>.
Via: SIP/2.0/UDP GATEWAY_1;branch=z9hG4bK0b52.a5ddb76.0.
Via: SIP/2.0/UDP 64.24.35.73:5060;branch=z9hG4bK5dce8d77;rport=5060.
From: "CALLER" <sip:CALLER at 64.24.35.73>;tag=as17d625b5.
To: <sip:CALLEE at GATEWAY_1>.
Contact: <sip:CALLER at 64.24.35.73>.
Call-ID: 681bcb047355d7d85d939d542534d721 at 64.24.35.73.
CSeq: 102 INVITE.
User-Agent: US LEC VOIP.
Max-Forwards: 69.
Date: Wed, 28 Mar 2007 13:58:45 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Content-Type: application/sdp.
Content-Length: 156.
.
v=0.
o=root 7184 7184 IN IP4 64.24.35.73.
s=session.
c=IN IP4 64.24.35.73.
t=0 0.
m=audio 17990 RTP/AVP 0.
a=rtpmap:0 PCMU/8000.
a=silenceSupp:off - - - -.

#
U +0.002597 OpenSER:5060 -> GATEWAY_1:5060
SIP/2.0 100 trying -- your call is important to us.
Via: SIP/2.0/UDP GATEWAY_1;branch=z9hG4bK0b52.a5ddb76.0;rport=5060.
Via: SIP/2.0/UDP 64.24.35.73:5060;branch=z9hG4bK5dce8d77;rport=5060.
From: "CALLER" <sip:CALLER at 64.24.35.73>;tag=as17d625b5.
To: <sip:CALLEE at GATEWAY_1>.
Call-ID: 681bcb047355d7d85d939d542534d721 at 64.24.35.73.
CSeq: 102 INVITE.
Server: OpenSer (1.1.1-notls (x86_64/linux)).
Content-Length: 0.
Warning: 392 OpenSER:5060 "Noisy feedback tells:  pid=10278
req_src_ip=GATEWAY_1 req_src_port=5060 in_uri=sip:CALLEE at OpenSER:5060
out_uri=sip:+RE-INVITE_CALLEE_1 at GATEWAY_2:5060 via_cnt==2".
.

#
U +0.000090 OpenSER:5060 -> GATEWAY_2:5060
INVITE sip:+RE-INVITE_CALLEE_1 at GATEWAY_2:5060 SIP/2.0.
Record-Route: <sip:OpenSER;lr=on;ftag=as17d625b5>.
Record-Route: <sip:GATEWAY_1;lr=on;ftag=as17d625b5>.
Via: SIP/2.0/UDP OpenSER;branch=z9hG4bK0b52.7164f3d6.0.
Via: SIP/2.0/UDP GATEWAY_1;rport=5060;branch=z9hG4bK0b52.a5ddb76.0.
Via: SIP/2.0/UDP 64.24.35.73:5060;branch=z9hG4bK5dce8d77;rport=5060.
From: "CALLER" <sip:CALLER at 64.24.35.73>;tag=as17d625b5.
To: <sip:CALLEE at GATEWAY_1>.
Contact: <sip:CALLER at 64.24.35.73>.
Call-ID: 681bcb047355d7d85d939d542534d721 at 64.24.35.73.
CSeq: 102 INVITE.
Max-Forwards: 68.
Date: Wed, 28 Mar 2007 13:58:45 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Content-Type: application/sdp.
Content-Length: 174.
.
v=0.
o=root 7184 7184 IN IP4 64.24.35.73.
s=session.
c=IN IP4 OpenSER.
t=0 0.
m=audio 35998 RTP/AVP 0.
a=rtpmap:0 PCMU/8000.
a=silenceSupp:off - - - -.
a=nortpproxy:yes.

#
U +0.000023 OpenSER:5060 -> GATEWAY_2:5060
INVITE sip:+RE-INVITE_CALLEE_2 at GATEWAY_2:5060 SIP/2.0.
Record-Route: <sip:OpenSER;lr=on;ftag=as17d625b5>.
Record-Route: <sip:GATEWAY_1;lr=on;ftag=as17d625b5>.
Via: SIP/2.0/UDP OpenSER;branch=z9hG4bK0b52.7164f3d6.1.
Via: SIP/2.0/UDP GATEWAY_1;rport=5060;branch=z9hG4bK0b52.a5ddb76.0.
Via: SIP/2.0/UDP 64.24.35.73:5060;branch=z9hG4bK5dce8d77;rport=5060.
From: "CALLER" <sip:CALLER at 64.24.35.73>;tag=as17d625b5.
To: <sip:CALLEE at GATEWAY_1>.
Contact: <sip:CALLER at 64.24.35.73>.
Call-ID: 681bcb047355d7d85d939d542534d721 at 64.24.35.73.
CSeq: 102 INVITE.
Max-Forwards: 68.
Date: Wed, 28 Mar 2007 13:58:45 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Content-Type: application/sdp.
Content-Length: 174.
.
v=0.
o=root 7184 7184 IN IP4 64.24.35.73.
s=session.
c=IN IP4 OpenSER.
t=0 0.
m=audio 35998 RTP/AVP 0.
a=rtpmap:0 PCMU/8000.
a=silenceSupp:off - - - -.
a=nortpproxy:yes.

#
U +0.022891 GATEWAY_2:5060 -> OpenSER:5060
SIP/2.0 100 Trying bandwidth.com.
Via: SIP/2.0/UDP OpenSER;branch=z9hG4bK0b52.7164f3d6.0.
Via: SIP/2.0/UDP GATEWAY_1;rport=5060;branch=z9hG4bK0b52.a5ddb76.0.
Via: SIP/2.0/UDP 64.24.35.73:5060;branch=z9hG4bK5dce8d77;rport=5060.
From: "CALLER" <sip:CALLER at 64.24.35.73>;tag=as17d625b5.
To: <sip:CALLEE at GATEWAY_1>.
Call-ID: 681bcb047355d7d85d939d542534d721 at 64.24.35.73.
CSeq: 102 INVITE.
Server: Bandwidth.com SDE (v1.0).
Content-Length: 0.
Warning: 392 GATEWAY_2:5060 "Noisy feedback tells:  pid=13590
req_src_ip=OpenSER req_src_port=5060
in_uri=sip:+RE-INVITE_CALLEE_1 at GATEWAY_2:5060
out_uri=sip:+RE-INVITE_CALLEE_1 at 4.68.250.148:5060 via_cnt==3".
.

#
U +0.000007 GATEWAY_2:5060 -> OpenSER:5060
SIP/2.0 100 Trying bandwidth.com.
Via: SIP/2.0/UDP OpenSER;branch=z9hG4bK0b52.7164f3d6.1.
Via: SIP/2.0/UDP GATEWAY_1;rport=5060;branch=z9hG4bK0b52.a5ddb76.0.
Via: SIP/2.0/UDP 64.24.35.73:5060;branch=z9hG4bK5dce8d77;rport=5060.
From: "CALLER" <sip:CALLER at 64.24.35.73>;tag=as17d625b5.
To: <sip:CALLEE at GATEWAY_1>.
Call-ID: 681bcb047355d7d85d939d542534d721 at 64.24.35.73.
CSeq: 102 INVITE.
Server: Bandwidth.com SDE (v1.0).
Content-Length: 0.
Warning: 392 GATEWAY_2:5060 "Noisy feedback tells:  pid=13590
req_src_ip=OpenSER req_src_port=5060
in_uri=sip:+RE-INVITE_CALLEE_2 at GATEWAY_2:5060
out_uri=sip:+RE-INVITE_CALLEE_2 at 4.68.250.148:5060 via_cnt==3".
.

##############
U +2.054324 GATEWAY_2:5060 -> OpenSER:5060
SIP/2.0 183 Session Progress.
Via: SIP/2.0/UDP OpenSER;branch=z9hG4bK0b52.7164f3d6.0,SIP/2.0/UDP
GATEWAY_1;rport=5060;branch=z9hG4bK0b52.a5ddb76.0,SIP/2.0/UDP
64.24.35.73:5060;branch=z9hG4bK5dce8d77;rport=5060.
Record-Route:
<sip:GATEWAY_2;lr;ftag=as17d625b5>,<sip:OpenSER;lr=on;ftag=as17d625b5>,<sip:GATEWAY_1;lr=on;ftag=as17d625b5>.
From: "CALLER" <sip:CALLER at 64.24.35.73>;tag=as17d625b5.
To: <sip:CALLEE at GATEWAY_1>;tag=VPST506071629460.
Call-ID: 681bcb047355d7d85d939d542534d721 at 64.24.35.73.
CSeq: 102 INVITE.
Contact: <sip:+RE-INVITE_CALLEE_1 at 4.68.250.148:5060;transport=udp>.
Content-Type: application/sdp.
Content-Length: 128.
.
v=0.
o=- 1175090325 1175090326 IN IP4 209.244.42.250.
s=-.
c=IN IP4 209.244.42.250.
t=0 0.
m=audio 61138 RTP/AVP 0.
a=ptime:20.

#
U +0.000244 OpenSER:5060 -> GATEWAY_1:5060
SIP/2.0 183 Session Progress.
Via: SIP/2.0/UDP GATEWAY_1;rport=5060;branch=z9hG4bK0b52.a5ddb76.0,SIP/2.0/UDP
64.24.35.73:5060;branch=z9hG4bK5dce8d77;rport=5060.
Record-Route:
<sip:GATEWAY_2;lr;ftag=as17d625b5>,<sip:OpenSER;lr=on;ftag=as17d625b5>,<sip:GATEWAY_1;lr=on;ftag=as17d625b5>.
From: "CALLER" <sip:CALLER at 64.24.35.73>;tag=as17d625b5.
To: <sip:CALLEE at GATEWAY_1>;tag=VPST506071629460.
Call-ID: 681bcb047355d7d85d939d542534d721 at 64.24.35.73.
CSeq: 102 INVITE.
Contact: <sip:+RE-INVITE_CALLEE_1 at 4.68.250.148:5060;transport=udp>.
Content-Type: application/sdp.
Content-Length: 143.
.
v=0.
o=- 1175090325 1175090326 IN IP4 209.244.42.250.
s=-.
c=IN IP4 OpenSER.
t=0 0.
m=audio 36002 RTP/AVP 0.
a=ptime:20.
a=nortpproxy:yes.

##
U +0.213133 GATEWAY_2:5060 -> OpenSER:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP OpenSER;branch=z9hG4bK0b52.7164f3d6.0,SIP/2.0/UDP
GATEWAY_1;rport=5060;branch=z9hG4bK0b52.a5ddb76.0,SIP/2.0/UDP
64.24.35.73:5060;branch=z9hG4bK5dce8d77;rport=5060.
Record-Route:
<sip:GATEWAY_2;lr;ftag=as17d625b5>,<sip:OpenSER;lr=on;ftag=as17d625b5>,<sip:GATEWAY_1;lr=on;ftag=as17d625b5>.
From: "CALLER" <sip:CALLER at 64.24.35.73>;tag=as17d625b5.
To: <sip:CALLEE at GATEWAY_1>;tag=VPST506071629460.
Call-ID: 681bcb047355d7d85d939d542534d721 at 64.24.35.73.
CSeq: 102 INVITE.
Contact: <sip:+RE-INVITE_CALLEE_1 at 4.68.250.148:5060;transport=udp>.
Content-Type: application/sdp.
Content-Length: 128.
.
v=0.
o=- 1175090325 1175090326 IN IP4 209.244.42.250.
s=-.
c=IN IP4 209.244.42.250.
t=0 0.
m=audio 61138 RTP/AVP 0.
a=ptime:20.

#
U +0.004792 OpenSER:5060 -> GATEWAY_1:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP GATEWAY_1;rport=5060;branch=z9hG4bK0b52.a5ddb76.0,SIP/2.0/UDP
64.24.35.73:5060;branch=z9hG4bK5dce8d77;rport=5060.
Record-Route:
<sip:GATEWAY_2;lr;ftag=as17d625b5>,<sip:OpenSER;lr=on;ftag=as17d625b5>,<sip:GATEWAY_1;lr=on;ftag=as17d625b5>.
From: "CALLER" <sip:CALLER at 64.24.35.73>;tag=as17d625b5.
To: <sip:CALLEE at GATEWAY_1>;tag=VPST506071629460.
Call-ID: 681bcb047355d7d85d939d542534d721 at 64.24.35.73.
CSeq: 102 INVITE.
Contact: <sip:+RE-INVITE_CALLEE_1 at 4.68.250.148:5060;transport=udp>.
Content-Type: application/sdp.
Content-Length: 143.
.
v=0.
o=- 1175090325 1175090326 IN IP4 209.244.42.250.
s=-.
c=IN IP4 OpenSER.
t=0 0.
m=audio 36002 RTP/AVP 0.
a=ptime:20.
a=nortpproxy:yes.

#
U +0.000146 OpenSER:5060 -> GATEWAY_2:5060
CANCEL sip:+RE-INVITE_CALLEE_2 at GATEWAY_2:5060 SIP/2.0.
Via: SIP/2.0/UDP OpenSER;branch=z9hG4bK0b52.7164f3d6.1.
From: "CALLER" <sip:CALLER at 64.24.35.73>;tag=as17d625b5.
Call-ID: 681bcb047355d7d85d939d542534d721 at 64.24.35.73.
To: <sip:CALLEE at GATEWAY_1>.
CSeq: 102 CANCEL.
User-Agent: OpenSer (1.1.1-notls (x86_64/linux)).
Content-Length: 0.
.

#
U +0.028419 GATEWAY_2:5060 -> OpenSER:5060
SIP/2.0 487 Request Terminated.
Via: SIP/2.0/UDP OpenSER;branch=z9hG4bK0b52.7164f3d6.1.
Via: SIP/2.0/UDP GATEWAY_1;rport=5060;branch=z9hG4bK0b52.a5ddb76.0.
Via: SIP/2.0/UDP 64.24.35.73:5060;branch=z9hG4bK5dce8d77;rport=5060.
From: "CALLER" <sip:CALLER at 64.24.35.73>;tag=as17d625b5.
To: <sip:CALLEE at GATEWAY_1>;tag=2a6c315af837f0a6a989449d0bd9acf6-fcd9.
Call-ID: 681bcb047355d7d85d939d542534d721 at 64.24.35.73.
CSeq: 102 INVITE.
Server: Bandwidth.com SDE (v1.0).
Content-Length: 0.
Warning: 392 GATEWAY_2:5060 "Noisy feedback tells:  pid=13600
req_src_ip=OpenSER req_src_port=5060
in_uri=sip:+RE-INVITE_CALLEE_2 at GATEWAY_2:5060
out_uri=sip:+RE-INVITE_CALLEE_2 at 4.68.250.148:5060 via_cnt==1".
.

#
U +0.000098 OpenSER:5060 -> GATEWAY_2:5060
ACK sip:+RE-INVITE_CALLEE_2 at GATEWAY_2:5060 SIP/2.0.
Via: SIP/2.0/UDP OpenSER;branch=z9hG4bK0b52.7164f3d6.1.
From: "CALLER" <sip:CALLER at 64.24.35.73>;tag=as17d625b5.
Call-ID: 681bcb047355d7d85d939d542534d721 at 64.24.35.73.
To: <sip:CALLEE at GATEWAY_1>;tag=2a6c315af837f0a6a989449d0bd9acf6-fcd9.
CSeq: 102 ACK.
User-Agent: OpenSer (1.1.1-notls (x86_64/linux)).
Content-Length: 0.
.

#
U +0.011645 GATEWAY_2:5060 -> OpenSER:5060
SIP/2.0 200 ok -- no more pending branches.
Via: SIP/2.0/UDP OpenSER;branch=z9hG4bK0b52.7164f3d6.1.
From: "CALLER" <sip:CALLER at 64.24.35.73>;tag=as17d625b5.
Call-ID: 681bcb047355d7d85d939d542534d721 at 64.24.35.73.
To: <sip:CALLEE at GATEWAY_1>;tag=2a6c315af837f0a6a989449d0bd9acf6-fcd9.
CSeq: 102 CANCEL.
Server: Bandwidth.com SDE (v1.0).
Content-Length: 0.
Warning: 392 GATEWAY_2:5060 "Noisy feedback tells:  pid=13600
req_src_ip=OpenSER req_src_port=5060
in_uri=sip:+RE-INVITE_CALLEE_2 at GATEWAY_2:5060
out_uri=sip:+RE-INVITE_CALLEE_2 at GATEWAY_2:5060 via_cnt==1".
.

#
U +0.030857 GATEWAY_1:5060 -> OpenSER:5060
ACK sip:+RE-INVITE_CALLEE_1 at 4.68.250.148:5060;transport=udp SIP/2.0.
Via: SIP/2.0/UDP GATEWAY_1;branch=z9hG4bK0b52.a5ddb76.2.
Via: SIP/2.0/UDP 64.24.35.73:5060;branch=z9hG4bK29c21d5a;rport=5060.
Route:
<sip:OpenSER;lr=on;ftag=as17d625b5>,<sip:GATEWAY_2;lr;ftag=as17d625b5>.
From: "CALLER" <sip:CALLER at 64.24.35.73>;tag=as17d625b5.
To: <sip:CALLEE at GATEWAY_1>;tag=VPST506071629460.
Contact: <sip:CALLER at 64.24.35.73>.
Call-ID: 681bcb047355d7d85d939d542534d721 at 64.24.35.73.
CSeq: 102 ACK.
User-Agent: US LEC VOIP.
Max-Forwards: 69.
Content-Length: 0.
.

#
U +0.000183 OpenSER:5060 -> GATEWAY_2:5060
ACK sip:+RE-INVITE_CALLEE_1 at 4.68.250.148:5060;transport=udp SIP/2.0.
Record-Route: <sip:OpenSER;lr=on;ftag=as17d625b5>.
Via: SIP/2.0/UDP OpenSER;branch=z9hG4bK0b52.7164f3d6.3.
Via: SIP/2.0/UDP GATEWAY_1;rport=5060;branch=z9hG4bK0b52.a5ddb76.2.
Via: SIP/2.0/UDP 64.24.35.73:5060;branch=z9hG4bK29c21d5a;rport=5060.
Route: <sip:GATEWAY_2;lr;ftag=as17d625b5>.
From: "CALLER" <sip:CALLER at 64.24.35.73>;tag=as17d625b5.
To: <sip:CALLEE at GATEWAY_1>;tag=VPST506071629460.
Contact: <sip:CALLER at 64.24.35.73>.
Call-ID: 681bcb047355d7d85d939d542534d721 at 64.24.35.73.
CSeq: 102 ACK.
Max-Forwards: 68.
Content-Length: 0.
P-hint: rr-enforced.
.

#####################################################################################################################################################################################################################################################################################################################################################################################################################################################################
U +71.203150 GATEWAY_1:5060 -> OpenSER:5060
BYE sip:+RE-INVITE_CALLEE_1 at 4.68.250.148:5060;transport=udp SIP/2.0.
Via: SIP/2.0/UDP GATEWAY_1;branch=z9hG4bK1b52.5ebf0565.0.
Via: SIP/2.0/UDP 64.24.35.73:5060;branch=z9hG4bK53c03317;rport=5060.
Route:
<sip:OpenSER;lr=on;ftag=as17d625b5>,<sip:GATEWAY_2;lr;ftag=as17d625b5>.
From: "CALLER" <sip:CALLER at 64.24.35.73>;tag=as17d625b5.
To: <sip:CALLEE at GATEWAY_1>;tag=VPST506071629460.
Contact: <sip:CALLER at 64.24.35.73>.
Call-ID: 681bcb047355d7d85d939d542534d721 at 64.24.35.73.
CSeq: 103 BYE.
User-Agent: US LEC VOIP.
Max-Forwards: 69.
Content-Length: 0.
.

#
U +0.003835 OpenSER:5060 -> GATEWAY_2:5060
BYE sip:+RE-INVITE_CALLEE_1 at 4.68.250.148:5060;transport=udp SIP/2.0.
Record-Route: <sip:OpenSER;lr=on;ftag=as17d625b5>.
Via: SIP/2.0/UDP OpenSER;branch=z9hG4bK1b52.25391854.0.
Via: SIP/2.0/UDP GATEWAY_1;rport=5060;branch=z9hG4bK1b52.5ebf0565.0.
Via: SIP/2.0/UDP 64.24.35.73:5060;branch=z9hG4bK53c03317;rport=5060.
Route: <sip:GATEWAY_2;lr;ftag=as17d625b5>.
From: "CALLER" <sip:CALLER at 64.24.35.73>;tag=as17d625b5.
To: <sip:CALLEE at GATEWAY_1>;tag=VPST506071629460.
Contact: <sip:CALLER at 64.24.35.73>.
Call-ID: 681bcb047355d7d85d939d542534d721 at 64.24.35.73.
CSeq: 103 BYE.
Max-Forwards: 68.
Content-Length: 0.
P-hint: rr-enforced.
.

#
U +0.073996 GATEWAY_2:5060 -> OpenSER:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP OpenSER;branch=z9hG4bK1b52.25391854.0,SIP/2.0/UDP
GATEWAY_1;rport=5060;branch=z9hG4bK1b52.5ebf0565.0,SIP/2.0/UDP
64.24.35.73:5060;branch=z9hG4bK53c03317;rport=5060.
Record-Route:
<sip:GATEWAY_2;lr;ftag=as17d625b5>,<sip:OpenSER;lr=on;ftag=as17d625b5>.
From: "CALLER" <sip:CALLER at 64.24.35.73>;tag=as17d625b5.
To: <sip:CALLEE at GATEWAY_1>;tag=VPST506071629460.
Call-ID: 681bcb047355d7d85d939d542534d721 at 64.24.35.73.
CSeq: 103 BYE.
Contact: <sip:+RE-INVITE_CALLEE_1 at 4.68.250.148:5060;transport=udp>.
Content-Length: 0.
.

#
U +0.000100 OpenSER:5060 -> GATEWAY_1:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP GATEWAY_1;rport=5060;branch=z9hG4bK1b52.5ebf0565.0,SIP/2.0/UDP
64.24.35.73:5060;branch=z9hG4bK53c03317;rport=5060.
Record-Route:
<sip:GATEWAY_2;lr;ftag=as17d625b5>,<sip:OpenSER;lr=on;ftag=as17d625b5>.
From: "CALLER" <sip:CALLER at 64.24.35.73>;tag=as17d625b5.
To: <sip:CALLEE at GATEWAY_1>;tag=VPST506071629460.
Call-ID: 681bcb047355d7d85d939d542534d721 at 64.24.35.73.
CSeq: 103 BYE.
Contact: <sip:+RE-INVITE_CALLEE_1 at 4.68.250.148:5060;transport=udp>.
Content-Length: 0.
.

################exit
1036 received, 0 dropped

Thanks Again everyone.

-- 
Brandon Armstead
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20070328/6e4e542c/attachment.htm 


More information about the Users mailing list