Detecting Reason Text in dialplan?


Here is a packet capture of an inbound call being terminated by the sender
because it has been answered by another extension:

     Request-Line: CANCEL;gw=00280000000204 SIP/2.0
        Method: CANCEL
            Request-URI User Part: gw+00280000000204
            Request-URI Host Part:
            Request-URI Host Port: 50060
        [Resent Packet: False]
    Message Header
        Via: SIP/2.0/UDP;rport;branch=z9hG4bKPjfd54976f-1b52-417a-a4bb-94a4a3259abe
            Transport: UDP
            Sent-by Address:
            Sent-by port: 5060
            RPort: rport
            Branch: z9hG4bKPjfd54976f-1b52-417a-a4bb-94a4a3259abe
        From: <>;tag=e0f691fa-055a-440d-82d2-
            SIP from address:
                SIP from address User Part: 674783
                SIP from address Host Part:
            SIP from tag: e0f691fa-055a-440d-82d2-da5339000730
        To: <;gw=00280000000204>
            SIP to address:;gw=00280000000204
                SIP to address User Part: gw+00280000000204
                SIP to address Host Part:
                SIP To URI parameter: gw=00280000000204
        Call-ID: f5cd2da3-6648-41fe-9bc3-59536ff6c637
        CSeq: 31785 CANCEL
            Sequence Number: 31785
            Method: CANCEL
        Reason: SIP;cause=200;text="Call completed elsewhere"
            Reason protocols: SIP
            Cause: OK (200)
            Text: Call completed elsewhere
        Max-Forwards: 70
        User-Agent: Asterisk
        Content-Length:  0

Is there a way in which I can access the Reason Text “Call completed
elsewhere” in the dialplan?



Something like verbose_events? mod_dptools: verbose_events | FreeSWITCH Documentation