Quantcast
Channel: General Help - FreePBX Community Forums
Viewing all articles
Browse latest Browse all 12596

Include SIP Trunk headers into CDR

$
0
0

@afallison wrote:

Hi everyone. I'm attempting to save two headers that are sent from Twilio's SIP trunk to our CDR.

X-Twilio-CallSid
X-Twilio-RecordingSid

Incoming Route
[from-pstn-custom]
exten => _.,1,Set(CDR(twilio_call_sid)=${SIP_HEADER(X-Twilio-CallSid)})
exten => h,1,Set(CDR(twilio_recording_sid)=${SIP_HEADER(X-Twilio-RecordingSid)})

Outgoing Route
[from-internal-custom]
exten => _.,1,Set(CDR(twilio_call_sid)=${SIP_HEADER(X-Twilio-CallSid)})
exten => h,1,Set(CDR(twilio_recording_sid)=${SIP_HEADER(X-Twilio-RecordingSid)})

The columns do exist in the database. The only route that kind of works is the incoming route. It will only save the 'X-Twilio-CallSid' header which is probably because it is sent with the initial request. I'm not able to save the 'X-Twilio-RecordingSid' header anywhere.

I'm so confused and I've spent way too much time trying to figure this out so I had to ask!

I'm running Asterisk 13.6.0 & FreePBX 13.0.67.

Please help! Thanks!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 12596

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>