Storing SIP Responses?

Hello everyone
I’ve been searching if Asterisk saves the SIP responses* of every call
Since I haven’t find them I suppose that Asterisk doesn’t store them by default, just 3 dispositions on the CDR’s:
Answered, No Answer and Busy.

Now i wonder if that is even possible…

*SIP responses are https://en.wikipedia.org/wiki/List_of_SIP_response_codes

Best Regards!

You have to do that yourself. The Asterisk core doesn’t know about SIP. SIP respnses are translated to ISDN code and then summarised to the ones you are seeing. There are functions for reading them from the dialplan.

@david551
I know that the dialplan can send data to a DB as part of a cdr field, and even change its value before, do you know the name of the data that i should look for?

I’ve seen this link https://wiki.asterisk.org/wiki/display/AST/Hangup+Cause+Mappings
But im not really sure how to use it. (Its too raw material for me)

As always, thanks for your fast answer!

Edit: Should i use HANGUPCAUSE() or SIP_CAUSE()?

Edit2: I printed HANGUPCAUSE() between Dial and Hangup, it prints a SIP response

http://forums.asterisk.org/viewtopic.php?f=1&t=89781

Using HANGUPCAUSE() gives you this answers:

I didn’t saw that post, but it’s what I did without using AGI

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.