Hi James,
The dialog module does not "see" the BYE, so the dialog is counted as
still ongoing so no CDR is generated.
Now, about the BYE - by default dialog module exclusively uses a cookie
(the "did" param in the RR/Route header) to do the matching.
As you can see in the trace, because you do RR for re-INVITE (you
shouldn't, but normally useless), the cookie is lost - and the device
sending the BYE is brain-dead enough to "refresh" its route set during
the reINVITE - even if the RFC says clear that the route set is learned
only when the dialog is established.
Bottom line, because of the combination of un-nesessary RR and broken
UA, the cookie gets lost and it does not appear in BYE, so it does not
match.
A fast fix you can try is to set the matching mode of dialog mode to
FALLBACK from "did" based matching to SIP-wise matching, so the dialog
matching will match the BYE against the dialog even if the cookie is
missing.
Regards,
Bogdan
On 04/23/2011 07:54 AM, jam...@vicidial.com wrote:
I have a new provider that I am evaluating and the built-in CDR
functionality of the acc module is not working for them. I have tested
with a second provider and it works fine. I can only assume that
something somewhere in the SIP dialog is causing it to loose track of
it. Here is the SIP dialog:
interface: any
filter: (ip) and ( port 5060 )
#
U 2011/04/22 23:06:09.857893 208.38.149.190:5060 -> 208.38.149.182:5060
INVITE sip:18633939336@208.38.149.182;cpd=on SIP/2.0
Via: SIP/2.0/UDP 208.38.149.190:5060;branch=z9hG4bK745a7a33;rport
From: "James P." ;tag=as791c05d3
To:
Contact:
Call-ID: 38b57ce271946530476aea3909a8de2b@208.38.149.190
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 70
Remote-Party-ID: "James P."
;privacy=off;screen=no
Date: Sat, 23 Apr 2011 03:12:17 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
Content-Type: application/sdp
Content-Length: 264
v=0
o=root 23976 23976 IN IP4 208.38.149.190
s=session
c=IN IP4 208.38.149.190
t=0 0
m=audio 13872 RTP/AVP 18 0 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
#
U 2011/04/22 23:06:09.858211 208.38.149.182:5060 -> 208.38.149.190:5060
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 208.38.149.190:5060;branch=z9hG4bK745a7a33;rport=5060
From: "James P." ;tag=as791c05d3
To:
Call-ID: 38b57ce271946530476aea3909a8de2b@208.38.149.190
CSeq: 102 INVITE
Content-Length: 0
#
U 2011/04/22 23:06:09.859762 208.38.149.182:5060 -> 69.30.55.34:5060
INVITE sip:18633939336@69.30.55.34;cpd=on SIP/2.0
Record-Route:
Via: SIP/2.0/UDP 208.38.149.182;branch=z9hG4bK4956.b46847f.0
Via: SIP/2.0/UDP
208.38.149.190:5060;received=208.38.149.190;branch=z9hG4bK745a7a33;rport=5060
From: "James P." ;tag=as791c05d3
To:
Contact:
Call-ID: 38b57ce271946530476aea3909a8de2b@208.38.149.190
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 69
Remote-Party-ID: "James P."
;privacy=off;screen=no
Date: Sat, 23 Apr 2011 03:12:17 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
Content-Type: application/sdp
Content-Length: 264
v=0
o=root 23976 23976 IN IP4 208.38.149.190
s=session
c=IN IP4 208.38.149.190
t=0 0
m=audio 13872 RTP/AVP 18 0 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
#
U 2011/04/22 23:06:09.931832 69.30.55.34:5060 -> 208.38.149.182:5060
SIP/2.0 100 Giving a try
Via: SIP/2.0/UDP 208.38.149.182;branch=z9hG4bK4956.b46847f.0
Via: SIP/2.0/UDP
208.38.149.190:5060;received=208.38.149.190;branch=z9hG4bK745a7a33;rport=5060
From: "James P." ;tag=as791c05d3
To:
Call-ID: 38b57ce271946530476aea3909a8de2b@208.38.149.190
CSeq: 102 INVITE
Server: OpenSIPS (1.6.2-notls (i386/linux))
Content-Length: 0
#
U 2011/04/22 23:06:10.974003 69.30.55.34:5060 -> 208.38.149.182:5060
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 208.38.149.182;branch=z9hG4bK4956.b46847f.0
Via: SIP/2.0/UDP
208.38.149.190:5060;received=208.38.149.190;branch=z9hG4bK745a7a33;rport=5060
Record-Route:
Record-Route:
From: "James P." ;tag=as791c05d3
To: ;tag=as7abc238a
Call-ID: 38b57ce271946530476aea3909a8de2b@208.38.149.190
CSeq: 102 INVITE
User-Agent: SIP SWITCH
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact:
Content-Type: application/sdp
Content-Length: 238
v=0
o=root 8881 8881 IN IP4 74.120.95.55
s=session
c=IN IP4 74.120.95.55
t=0 0
m=audio 23416 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
#
U 2011/04/22 23:06:10.974350 208.38.149.182:5060 -> 208.38.149.190:5060
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP
208.38.149.190:5060;received=208.38.149.190;branch=z9hG4bK745a7a33;rport=5060
Record-Route:
Record-Route:
From: "James P." ;tag=as791c05d3
To: ;tag=as7abc238a
Call-ID: 38b57ce