Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDR stop event is not sent to srf app #342

Open
spointer opened this issue Feb 16, 2024 · 0 comments
Open

CDR stop event is not sent to srf app #342

spointer opened this issue Feb 16, 2024 · 0 comments

Comments

@spointer
Copy link

spointer commented Feb 16, 2024

Hello Dave,

When the UAC sends CANCEL SIP method quickly, CDR stop event is not emitted.

Drachtio-server sends the right 200 OK and 487(request terminated) but there is no CDR stop event.

Here is the drachtio logs(log level is not debug)

2024-02-14 15:06:00.857578 recv 1106 bytes from udp/[10.3.42.12]:5090 at 15:06:00.857479:
INVITE sip:[email protected]:3417;transport=udp SIP/2.0
Via: SIP/2.0/UDP 10.3.42.12:5090;branch=z9hG4bK-524287-1---5ed83e6bbe998d761706197292
Max-Forwards: 70
Contact: <sip:[email protected]:5090>
To: <sip:[email protected]>
From: <sip:[email protected]>;tag=997c2f7b
Call-ID: 000B228365CC584801F7_36648447941fd33f389c00321c8dc225
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, INFO, MESSAGE, REFER, PRACK, NOTIFY, SUBSCRIBE
Content-Type: application/sdp
Date: Wed, 14 Feb 2024 06:06:00 GMT
User-Agent:  2.49.0.43
Referred-By: <sip:[email protected]:5090;type=hunt;dnis=4321>
Allow-Events: talk, hold, conference, refer
Content-Length: 298

v=0
o=PBX 1707890760 1 IN IP4 10.3.42.12
s=SIP CALL
c=IN IP4 10.3.42.12
t=0 0
m=audio 18068 RTP/AVP 0 8 18 101
c=IN IP4 10.3.42.12
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=ptime:20
a=sendrecv 



2024-02-14 15:06:00.857715 send 303 bytes to udp/[10.3.42.12]:5090 at 15:06:00.857668:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.3.42.12:5090;branch=z9hG4bK-524287-1---5ed83e6bbe998d761706197292;rport=5090
From: <sip:[email protected]>;tag=997c2f7b
To: <sip:[email protected]>
Call-ID: 000B228365CC584801F7_36648447941fd33f389c00321c8dc225
CSeq: 1 INVITE
Content-Length: 0



2024-02-14 15:06:00.878093 recv 523 bytes from udp/[10.3.42.12]:5090 at 15:06:00.878053:
CANCEL sip:[email protected]:3417;transport=udp SIP/2.0
Via: SIP/2.0/UDP 10.3.42.12:5090;branch=z9hG4bK-524287-1---5ed83e6bbe998d761706197292
Max-Forwards: 70
To: <sip:[email protected]>
From: <sip:[email protected]>;tag=997c2f7b
Call-ID: 000B228365CC584801F7_36648447941fd33f389c00321c8dc225
CSeq: 1 CANCEL
Date: Wed, 14 Feb 2024 06:06:00 GMT
User-Agent:  2.49.0.43
Content-Length: 0
 
2024-02-14 15:06:00.878126 received quick cancel for invite that is out to client for disposition: 000B228365CC584801F7_36648447941fd33f389c00321c8dc225
2024-02-14 15:06:00.878198 send 317 bytes to udp/[10.3.42.12]:5090 at 15:06:00.878161:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.3.42.12:5090;branch=z9hG4bK-524287-1---5ed83e6bbe998d761706197292;rport=5090
From: <sip:[email protected]>;tag=997c2f7b
To: <sip:[email protected]>;tag=jUUNm6Dp2vgQB
Call-ID: 000B228365CC584801F7_36648447941fd33f389c00321c8dc225
CSeq: 1 CANCEL
Content-Length: 0
 
2024-02-14 15:06:00.878262 send 333 bytes to udp/[10.3.42.12]:5090 at 15:06:00.878241:
SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 10.3.42.12:5090;branch=z9hG4bK-524287-1---5ed83e6bbe998d761706197292;rport=5090
From: <sip:[email protected]>;tag=997c2f7b
To: <sip:[email protected]>;tag=K4mep1ySZ569p
Call-ID: 000B228365CC584801F7_36648447941fd33f389c00321c8dc225
CSeq: 1 INVITE
Content-Length: 0
 
2024-02-14 15:06:00.880166 recv 363 bytes from udp/[10.3.42.12]:5090 at 15:06:00.880134:
ACK sip:[email protected]:3365;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 10.3.42.12:5090;branch=z9hG4bK-524287-1---5ed83e6bbe998d761706197292
Max-Forwards: 70
To: <sip:[email protected]>;tag=K4mep1ySZ569p
From: <sip:[email protected]>;tag=997c2f7b
Call-ID: 000B228365CC584801F7_36648447941fd33f389c00321c8dc225
CSeq: 1 ACK
Content-Length: 0

Log message "received quick cancel for invite that is out to client for disposition" gave me insight and i looked into the controller.cpp and then found there is no Cdr::postCdr( std::make_shared function call in that code.

How do you think?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant