Hello,
I am using ser 0.8.14
This is a part of my routing logic:
# send report to table acc, only INVITES and BYES
if (method=="INVITE" || method=="BYE")
acc_db_request("accounting", "acc");
All INVITES and BYES are logged in table acc for my serweb to access.
Then I parse a succesful call by matching the INVITE and the BYE. So
far, the method works in all ATAs and hard phones EXCEPT Cisco ATA
186.
If the analog phone connected to Cisco ATA 186 sends the BYE, serweb
is UNABLE to parse the BYE and send to acc.
I traced the headers. This is the bye sent by Cisco ATA 186 (Version:
v3.1.0 atasip (Build 040211A)).
IP addresses to watch:
10.10.6.92 is the IP address of Cisco ATA 186
10.10.6.93 is the IP address of the SIP proxy server
10.10.6.96 is the phone being called (a Grandstream)
U 10.10.6.92:5060 -> 10.10.6.93:5060
BYE sip:116@10.10.6.93 SIP/2.0..Route:
<sip:116@10.10.6.96;user=phone>..Via: SIP/2.0/UDP
10.10.6.92:5060..From: <sip:1
12@10.10.6.93;user=phone>;tag=1264564150..To:
<sip:116@10.10.6.93;user=phone>;tag=358dd5aaed8faa35..Call-ID:
783982044
@10.10.6.92..CSeq: 2 BYE..User-Agent: Cisco ATA 186 v3.1.0 atasip
(040211A)..Content-Length: 0....
#
U 10.10.6.93:5060 -> 10.10.6.96:5060
BYE sip:116@10.10.6.96;user=phone SIP/2.0..Max-Forwards: 10..Via:
SIP/2.0/UDP 10.10.6.93;branch=z9hG4bKfe41.1cf00d23.0
..Via: SIP/2.0/UDP 10.10.6.92:5060..From:
<sip:112@10.10.6.93;user=phone>;tag=1264564150..To:
<sip:116@10.10.6.93;user
=phone>;tag=358dd5aaed8faa35..Call-ID: 783982044@10.10.6.92..CSeq: 2
BYE..User-Agent: Cisco ATA 186 v3.1.0 atasip (04
0211A)..Content-Length: 0....
#
U 10.10.6.96:5060 -> 10.10.6.93:5060
SIP/2.0 200 OK..Via: SIP/2.0/UDP
10.10.6.93;branch=z9hG4bKfe41.1cf00d23.0..Via: SIP/2.0/UDP
10.10.6.92:5060..From: <si
p:112@10.10.6.93;user=phone>;tag=1264564150..To:
<sip:116@10.10.6.93;user=phone>;tag=358dd5aaed8faa35..Call-ID: 783982
044@10.10.6.92..CSeq: 2 BYE..User-Agent: Grandstream BT100
1.0.4.50..Contact: <sip:116@10.10.6.96;user=phone>..Allow:
INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE..Content-Length:
0....
#
U 10.10.6.93:5060 -> 10.10.6.92:5060
SIP/2.0 200 OK..Via: SIP/2.0/UDP 10.10.6.92:5060..From:
<sip:112@10.10.6.93;user=phone>;tag=1264564150..To: <sip:116@1
0.10.6.93;user=phone>;tag=358dd5aaed8faa35..Call-ID:
783982044@10.10.6.92..CSeq: 2 BYE..User-Agent: Grandstream BT100
1.0.4.50..Contact: <sip:116@10.10.6.96;user=phone>..Allow:
INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE..
Content-Length: 0....
Observe the first block above (the instant when Cisco sent the BYE)
and compare it to a working BYE sent by another phone. This is the
working BYE (note of the first block when the phone sent the BYE):
U 10.10.6.96:5060 -> 10.10.6.93:5060
BYE sip:112@10.10.6.92:5060;user=phone;transport=udp SIP/2.0..Via:
SIP/2.0/UDP 10.10.6.96;branch=z9hG4bK28a66e39511d3e
5c..Route: <sip:116@10.10.6.93;ftag=1540304939;lr=on>..From:
<sip:116@10.10.6.93;user=phone>;tag=46641aca1a1d8bac..To:
<sip:112@10.10.6.93;user=phone>;tag=1540304939..Contact:
<sip:116@10.10.6.96;user=phone>..Call-ID: 1958105398(a)10.10.6
.92..CSeq: 352 BYE..User-Agent: Grandstream BT100
1.0.4.50..Max-Forwards: 70..Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFE
R,OPTIONS,INFO,SUBSCRIBE..Content-Length: 0....
#
U 10.10.6.93:5060 -> 10.10.6.92:5060
BYE sip:112@10.10.6.92:5060;user=phone;transport=udp SIP/2.0..Via:
SIP/2.0/UDP 10.10.6.93;branch=z9hG4bKa401.62590761.
0..Via: SIP/2.0/UDP 10.10.6.96;branch=z9hG4bK28a66e39511d3e5c..From:
<sip:116@10.10.6.93;user=phone>;tag=46641aca1a1d8
bac..To: <sip:112@10.10.6.93;user=phone>;tag=1540304939..Contact:
<sip:116@10.10.6.96;user=phone>..Call-ID: 1958105398
@10.10.6.92..CSeq: 352 BYE..User-Agent: Grandstream BT100
1.0.4.50..Max-Forwards: 69..Allow: INVITE,ACK,CANCEL,BYE,NOT
IFY,REFER,OPTIONS,INFO,SUBSCRIBE..Content-Length: 0....
#
U 10.10.6.92:5060 -> 10.10.6.93:5060
SIP/2.0 200 OK..Via: SIP/2.0/UDP
10.10.6.93;branch=z9hG4bKa401.62590761.0..Via: SIP/2.0/UDP
10.10.6.96;branch=z9hG4bK2
8a66e39511d3e5c..From:
<sip:116@10.10.6.93;user=phone>;tag=46641aca1a1d8bac..To:
<sip:112@10.10.6.93;user=phone>;tag=1
540304939..Call-ID: 1958105398@10.10.6.92..CSeq: 352 BYE..Server:
Cisco ATA 186 v3.1.0 atasip (040211A)..Allow: ACK,
BYE, CANCEL, INVITE, NOTIFY, OPTIONS, REFER, REGISTER..Content-Length: 0....
#
U 10.10.6.93:5060 -> 10.10.6.96:5060
SIP/2.0 200 OK..Via: SIP/2.0/UDP
10.10.6.96;branch=z9hG4bK28a66e39511d3e5c..From:
<sip:116@10.10.6.93;user=phone>;tag=
46641aca1a1d8bac..To:
<sip:112@10.10.6.93;user=phone>;tag=1540304939..Call-ID:
1958105398@10.10.6.92..CSeq: 352 BYE..S
erver: Cisco ATA 186 v3.1.0 atasip (040211A)..Allow: ACK, BYE,
CANCEL, INVITE, NOTIFY, OPTIONS, REFER, REGISTER..Cont
ent-Length: 0....