[Freeswitch-users] 482 Request merged, in serial forking

Humberto Quintana hjqlopez at hotmail.com
Tue Sep 8 07:00:18 PDT 2009


Hi Brian,

Yes , the Call-Id is the same for the 2nd and 3rd transaction but the branch parameter in the Via header is different.  Please check the capture below.

Thanks,

Humberto


---------->  Route 1

U 2009/09/08 09:17:38.759129 kamailio:5060 -> freeswitch:5060
INVITE sip:5145555555 at gw1:5060 SIP/2.0.
Record-Route: <sip:kamailio;lr=on;ftag=8c90b1379825fa62;nat=yes;vsf=QllAAwMAAglyAgIIbgoHFhwIGRwDAC4yMTA6NDUwNjA-;did=0b8.111bca94>.
Via: SIP/2.0/UDP kamailio;branch=z9hG4bKede5.5c558357.0.
Via: SIP/2.0/UDP 192.168.2.13:52060;rport=52060;received=UserIP;branch=z9hG4bK4d46edc4e1623ae5.
From: "hq160" <10092020 at kamailio>;tag=8c90b1379825fa62.
To: <sip:15145555555 at kamailio>.
Contact: <sip:10092020 at UserIP:52060>.
Supported: replaces, timer, path.
Call-ID: 04d14ab631843dc1 at 192.168.2.13.
CSeq: 31348 INVITE.
Max-Forwards: 68.
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK.
Content-Type: application/sdp.
Content-Length: 396.
.
v=0.
o=10092020 8000 8001 IN IP4 192.168.2.13.
s=SIP Call.
c=IN IP4 MediaServer.
t=0 0.
m=audio 50362 RTP/AVP 0 101.
a=sendrecv.
a=rtpmap:0 PCMU/8000.
a=ptime:20.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-11.
m=video 50366 RTP/AVP 99.
a=sendrecv.
a=rtpmap:99 H264/90000.
a=fmtp:99 profile-level-id=42801E; packetization-mode=0; sprop-parameter-sets=J0KAFJWgUH5A,KM4CfIC=.
a=framerate:15.


U 2009/09/08 09:17:38.861646 freeswitch:5060 -> kamailio:5060
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP kamailio;branch=z9hG4bKede5.5c558357.0.
Via: SIP/2.0/UDP 192.168.2.13:52060;rport=52060;received=UserIP;branch=z9hG4bK4d46edc4e1623ae5.
Record-Route: <sip:kamailio;lr=on;ftag=8c90b1379825fa62;nat=yes;vsf=QllAAwMAAglyAgIIbgoHFhwIGRwDAC4yMTA6NDUwNjA-;did=0b8.111bca94>.
From: "hq160" <10092020 at kamailio>;tag=8c90b1379825fa62.
To: <sip:15145555555 at kamailio>.
Call-ID: 04d14ab631843dc1 at 192.168.2.13.
CSeq: 31348 INVITE.
UserIP-Agent: FreeSWITCH-mod_sofia/1.0.4-exported.
Content-Length: 0.
.


U 2009/09/08 09:17:39.000958 freeswitch:5060 -> gw1:5060
INVITE sip:5145555555 at gw1:5060 SIP/2.0.
Via: SIP/2.0/UDP freeswitch;rport;branch=z9hG4bK151FSXQmjX4KH.
Max-Forwards: 67.
From: "hq160" <sip:10092020 at freeswitch>;tag=3mrtKm2rma0De.
To: <sip:5145555555 at gw1:5060>.
Call-ID: d2bda062-171c-122d-c787-005056aa5fb7.
CSeq: 120089593 INVITE.
Contact: <sip:mod_sofia at kamailio>.
UserIP-Agent: FreeSWITCH-mod_sofia/1.0.4-exported.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO.
Supported: timer, precondition, path, replaces.
Allow-Events: talk, refer.
Content-Type: application/sdp.
Content-Disposition: session.
Content-Length: 372.
X-rsbc: 04d14ab631843dc1 at 192.168.2.13.
Remote-Party-ID: "hq160" <sip:10092020 at freeswitch>;party=calling;screen=yes;privacy=off.
.
v=0.
o=10092020 8000 8001 IN IP4 192.168.2.13.
s=SIP Call.
c=IN IP4 MediaServer.
t=0 0.
m=audio 50362 RTP/AVP 0 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-11.
a=ptime:20.
m=video 50366 RTP/AVP 99.
a=rtpmap:99 H264/90000.
a=fmtp:99 profile-level-id=42801E; packetization-mode=0; sprop-parameter-sets=J0KAFJWgUH5A,KM4CfIC=.
a=framerate:15.


U 2009/09/08 09:17:39.056082 gw1:5060 -> freeswitch:5060
SIP/2.0 100 Trying.
Call-ID: d2bda062-171c-122d-c787-005056aa5fb7.
Content-Length: 0.
CSeq: 120089593 INVITE.
From: "hq160"<sip:10092020 at freeswitch>;tag=3mrtKm2rma0De.
To: <sip:5145555555 at gw1:5060>;tag=d05714dc-26334.
UserIP-Agent: Quintum/1.0.0 SN/0030E100A224 SW/P106-12-00.
Via: SIP/2.0/UDP freeswitch;rport;branch=z9hG4bK151FSXQmjX4KH.
Quintum: 0b06343032343333.
.


U 2009/09/08 09:17:39.058998 gw1:5060 -> freeswitch:5060
SIP/2.0 503 Service Unavailable.
Call-ID: d2bda062-171c-122d-c787-005056aa5fb7.
Content-Length: 0.
CSeq: 120089593 INVITE.
From: "hq160"<sip:10092020 at freeswitch>;tag=3mrtKm2rma0De.
To: <sip:5145555555 at gw1:5060>;tag=d05714dc-26334.
UserIP-Agent: Quintum/1.0.0 SN/0030E100A224 SW/P106-12-00.
Via: SIP/2.0/UDP freeswitch;rport;branch=z9hG4bK151FSXQmjX4KH.
.


U 2009/09/08 09:17:39.059341 freeswitch:5060 -> gw1:5060
ACK sip:5145555555 at gw1:5060 SIP/2.0.
Via: SIP/2.0/UDP freeswitch;rport;branch=z9hG4bK151FSXQmjX4KH.
Max-Forwards: 67.
From: "hq160" <sip:10092020 at freeswitch>;tag=3mrtKm2rma0De.
To: <sip:5145555555 at gw1:5060>;tag=d05714dc-26334.
Call-ID: d2bda062-171c-122d-c787-005056aa5fb7.
CSeq: 120089593 ACK.
Content-Length: 0.
.


U 2009/09/08 09:17:39.061148 freeswitch:5060 -> kamailio:5060
SIP/2.0 503 Service Unavailable.
Via: SIP/2.0/UDP kamailio;branch=z9hG4bKede5.5c558357.0.
Via: SIP/2.0/UDP 192.168.2.13:52060;rport=52060;received=UserIP;branch=z9hG4bK4d46edc4e1623ae5.
From: "hq160" <10092020 at kamailio>;tag=8c90b1379825fa62.
To: <sip:15145555555 at kamailio>;tag=2BZ1HSHNQ19tj.
Call-ID: 04d14ab631843dc1 at 192.168.2.13.
CSeq: 31348 INVITE.
UserIP-Agent: FreeSWITCH-mod_sofia/1.0.4-exported.
Accept: application/sdp.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO.
Supported: timer, precondition, path, replaces.
Allow-Events: talk, refer.
Reason: Q.850;cause=41;text="NORMAL_TEMPORARY_FAILURE".
Content-Length: 0.
.


U 2009/09/08 09:17:39.062085 kamailio:5060 -> freeswitch:5060
ACK sip:5145555555 at gw1:5060 SIP/2.0.
Via: SIP/2.0/UDP kamailio;branch=z9hG4bKede5.5c558357.0.
From: "hq160" <10092020 at kamailio>;tag=8c90b1379825fa62.
Call-ID: 04d14ab631843dc1 at 192.168.2.13.
To: <sip:15145555555 at kamailio>;tag=2BZ1HSHNQ19tj.
CSeq: 31348 ACK.
Max-Forwards: 70.
UserIP-Agent: Kamailio (1.4.4-tls (i386/linux)).
Content-Length: 0.
.

-------> Route 2

U 2009/09/08 09:17:41.426541 kamailio:5060 -> freeswitch:5060
INVITE sip:15145555555 at gw2:5061 SIP/2.0.
Record-Route: <sip:kamailio;lr=on;ftag=8c90b1379825fa62;nat=yes;vsf=QllAAwMAAglyAgIIbgoHFhwIGRwDAC4yMTA6NDUwNjA-;did=0b8.111bca94>.
Via: SIP/2.0/UDP kamailio;branch=z9hG4bKede5.5c558357.1.
Via: SIP/2.0/UDP 192.168.2.13:52060;rport=52060;received=UserIP;branch=z9hG4bK4d46edc4e1623ae5.
From: "hq160" <10092020 at kamailio>;tag=8c90b1379825fa62.
To: <sip:15145555555 at kamailio>.
Contact: <sip:10092020 at UserIP:52060>.
Supported: replaces, timer, path.
Call-ID: 04d14ab631843dc1 at 192.168.2.13.
CSeq: 31348 INVITE.
Max-Forwards: 68.
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK.
Content-Type: application/sdp.
Content-Length: 396.
.
v=0.
o=10092020 8000 8001 IN IP4 192.168.2.13.
s=SIP Call.
c=IN IP4 MediaServer.
t=0 0.
m=audio 50362 RTP/AVP 0 101.
a=sendrecv.
a=rtpmap:0 PCMU/8000.
a=ptime:20.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-11.
m=video 50366 RTP/AVP 99.
a=sendrecv.
a=rtpmap:99 H264/90000.
a=fmtp:99 profile-level-id=42801E; packetization-mode=0; sprop-parameter-sets=J0KAFJWgUH5A,KM4CfIC=.
a=framerate:15.


U 2009/09/08 09:17:41.427280 freeswitch:5060 -> kamailio:5060
SIP/2.0 482 Request merged.
Via: SIP/2.0/UDP kamailio;branch=z9hG4bKede5.5c558357.1.
Via: SIP/2.0/UDP 192.168.2.13:52060;rport=52060;received=UserIP;branch=z9hG4bK4d46edc4e1623ae5.
From: "hq160" <10092020 at kamailio>;tag=8c90b1379825fa62.
To: <sip:15145555555 at kamailio>;tag=2BZ1HSHNQ19tj.
Call-ID: 04d14ab631843dc1 at 192.168.2.13.
CSeq: 31348 INVITE.
Content-Length: 0.
.


U 2009/09/08 09:17:41.427901 kamailio:5060 -> freeswitch:5060
ACK sip:15145555555 at gw2:5061 SIP/2.0.
Via: SIP/2.0/UDP kamailio;branch=z9hG4bKede5.5c558357.1.
From: "hq160" <10092020 at kamailio>;tag=8c90b1379825fa62.
Call-ID: 04d14ab631843dc1 at 192.168.2.13.
To: <sip:15145555555 at kamailio>;tag=2BZ1HSHNQ19tj.
CSeq: 31348 ACK.
Max-Forwards: 70.
UserIP-Agent: Kamailio (1.4.4-tls (i386/linux)).
Content-Length: 0.
.

--------> Route 3

U 2009/09/08 09:17:44.206445 kamailio:5060 -> freeswitch:5060
INVITE sip:5145555555 at gw3:5060 SIP/2.0.
Record-Route: <sip:kamailio;lr=on;ftag=8c90b1379825fa62;nat=yes;vsf=QllAAwMAAglyAgIIbgoHFhwIGRwDAC4yMTA6NDUwNjA-;did=0b8.111bca94>.
Via: SIP/2.0/UDP kamailio;branch=z9hG4bKede5.5c558357.2.
Via: SIP/2.0/UDP 192.168.2.13:52060;rport=52060;received=UserIP;branch=z9hG4bK4d46edc4e1623ae5.
From: "hq160" <10092020 at kamailio>;tag=8c90b1379825fa62.
To: <sip:15145555555 at kamailio>.
Contact: <sip:10092020 at UserIP:52060>.
Supported: replaces, timer, path.
Call-ID: 04d14ab631843dc1 at 192.168.2.13.
CSeq: 31348 INVITE.
Max-Forwards: 68.
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK.
Content-Type: application/sdp.
Content-Length: 396.
.
v=0.
o=10092020 8000 8001 IN IP4 192.168.2.13.
s=SIP Call.
c=IN IP4 MediaServer.
t=0 0.
m=audio 50362 RTP/AVP 0 101.
a=sendrecv.
a=rtpmap:0 PCMU/8000.
a=ptime:20.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-11.
m=video 50366 RTP/AVP 99.
a=sendrecv.
a=rtpmap:99 H264/90000.
a=fmtp:99 profile-level-id=42801E; packetization-mode=0; sprop-parameter-sets=J0KAFJWgUH5A,KM4CfIC=.
a=framerate:15.


U 2009/09/08 09:17:44.207261 freeswitch:5060 -> kamailio:5060
SIP/2.0 482 Request merged.
Via: SIP/2.0/UDP kamailio;branch=z9hG4bKede5.5c558357.2.
Via: SIP/2.0/UDP 192.168.2.13:52060;rport=52060;received=UserIP;branch=z9hG4bK4d46edc4e1623ae5.
From: "hq160" <10092020 at kamailio>;tag=8c90b1379825fa62.
To: <sip:15145555555 at kamailio>;tag=2BZ1HSHNQ19tj.
Call-ID: 04d14ab631843dc1 at 192.168.2.13.
CSeq: 31348 INVITE.
Content-Length: 0.
.


U 2009/09/08 09:17:44.207762 kamailio:5060 -> freeswitch:5060
ACK sip:5145555555 at gw3:5060 SIP/2.0.
Via: SIP/2.0/UDP kamailio;branch=z9hG4bKede5.5c558357.2.
From: "hq160" <10092020 at kamailio>;tag=8c90b1379825fa62.
Call-ID: 04d14ab631843dc1 at 192.168.2.13.
To: <sip:15145555555 at kamailio>;tag=2BZ1HSHNQ19tj.
CSeq: 31348 ACK.
Max-Forwards: 70.
UserIP-Agent: Kamailio (1.4.4-tls (i386/linux)).
Content-Length: 0.
.




============================================
I'm going to gess the call-id is the same for the second  
transaction... can you provide a more detailed trace?

/b

On Sep 4, 2009, at 11:06 AM, Humberto Quintana wrote:

> Hello,
>
> I'm a new Freeswitch user. After some reading I put Freeswitch  
> (Version 1.0.4) to work as Session Border Controller.  I have only  
> one problem that I dont know how to solve it ( or which parameter to  
> set) and I'd appreciate if someone could give me a clue about this.
>
> Kamailio is sitting behind FS and it selects the route or routes in  
> case of failure (serial forking) .  Freeswitch is configured to use  
> directly the Request-URI sent by Kamailio.
>
> So, when the 1st route fails, Kamailio receives the Reply from FS  
> and sends back the ACK to end the transaction.  More than 1 second  
> later, a new INVITE from Kamailio with the next route is tried (With  
> the To-header's tag is empty. Same Callid, From and Cseq header but  
> different VIA-header's branch parameter) and FS is answering back  
> 482 Merged Request.  It happens the same for the 3rd route.
>
> It seems that the transaction is still 'alive' in FS even if the ACK  
> was received ?
>
>
> Thanks,
>
> Humberto


_________________________________________________________________
Click less, chat more: Messenger on MSN.ca
http://go.microsoft.com/?linkid=9677404
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090908/87df5b14/attachment-0002.html 


More information about the FreeSWITCH-users mailing list