Summary:ASTERISK-11072: Determining SIP session codec from the AGI script
Reporter:Maxim Sobolev (sobomax)Labels:
Date Opened:2007-12-17 16:07:19.000-0600Date Closed:2011-06-07 14:02:49
Versions:Frequency of
Environment:Attachments:( 0) chan_sip.c.diff1
Description:There is currently no way for the AGI script writer to determine session codec. This could be necessary in the cases when asterisk records stream to disk "as is" without any decoding, so that script should know what kind of file it should expect. Attached patch adds new variable SIP_CODEC_USED that chan_sip exports and AGI script can test to get this information.
Comments:By: Olle Johansson (oej) 2007-12-18 02:16:48.000-0600

Hmm. This is already available in the SIP_CHANNEL dialplan function. Surely you can reach data from that in your dialplan. Check both CHANNEL and SIP_CHANNEL for more information.

By: Maxim Sobolev (sobomax) 2007-12-18 02:57:30.000-0600


Thank you for the hint, indeed, it looks like we can get required information by using that function.

You can close this issue for now.


By: Olle Johansson (oej) 2007-12-18 03:01:38.000-0600