NONE CDR record are made when SIP is CHANUNAVAIL

I noticed that none CDR are registered when a call is made to a SIP peer that is not registered.

sip.conf

[2000]
type=friend
context=default
secret=2000
qualify=yes
host=dynamic

[2001]
type=friend
context=default
secret=2001
qualify=yes
host=dynamic

extensions.conf

[default]

exten => _2XXX,1,Dial(SIP/${EXTEN})

CLI> sip show peers

Name/username             Host                                    Dyn Forcerport Comedia    ACL Port     Status      Description
2000/2000                 172.16.1.1                               D  Auto (No)  No             54887    OK (59 ms)
2001/2001                 (Unspecified)                            D  Auto (No)  No             0        UNKNOWN

SIP 2000 call to SIP 2001.

  == Using SIP RTP CoS mark 5
    -- Executing [2001@default:1] Dial("SIP/2000-0000000b", "SIP/2001") in new stack
[Jun  9 16:18:54] WARNING[20692][C-0000000c]: app_dial.c:2578 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
    -- No devices or endpoints to dial (technology/resource)
    -- Auto fallthrough, channel 'SIP/2000-0000000b' status is 'CHANUNAVAIL'

In that exemple none CDR are created neither in the database nor in the file Master.csv.
Is there a way to force asterisk to create a CDR record for this event, marking the call as CHANUNAVAIL or something else?

Have you enabled logging for unanswered calls?

unanswered = yes

Thanks, that solved the problem.

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