This is my first post to this forum and I have a question regarding codecs in Asterisk which is running on a server (dedicated PC). More specifically, I would like to know how to verify (via CLI) what the current settings are for a particular line (maybe this is a global setting which applies to all lines - I’m not sure).
I would like to determine if RFC2833 / telephony events are configured for a particular line (or globally as mentioned above)? To further this, is there a way to see what codec(s) are negotiated for an active call, e.g. PCMU, G.711, telephony events / RFC2833, etc.
The definitive method is sip set debug on. However, have you tried sip show channel… and sip show peer…?
Note, strictly speaking, these are not negotiated, although in practice Asterisk does negotiate. Strictly speaking, each side says what it can accept, and the other side should limit itself to that constraint. However the other side can use options that it didn’t include in its SDP.
Also, the actual inbound codec is chosen from the allowed ones, by the other side, and may change without further SIP activity.