CyCoreSystems / ari

Golang Asterisk REST Interface (ARI) library
Apache License 2.0
191 stars 73 forks source link

ChannelData Language was present in the proto, but was not accessible in the channel.go. Also missing ProtocolID #151

Open daninmadison opened 1 year ago

daninmadison commented 1 year ago

I discovered this was missing and just submitted a Pull Request that contains code fixing this issue.

While fixing this, I also added support for the ProtocolID (protocol_id proto from Asterisk). Asterisk passes the protocol_id with the Channel. This is based on the underlying protocol. For chan_sip and PJSIP, this is the value of the SIP packet's Call-ID header.

Just submitted a Pull Request for both of these.