[OpenSIPS-Devel] [ opensips-Feature Requests-3029568 ] avp and variables in codec_ operations

SourceForge.net noreply at sourceforge.net
Tue Oct 19 16:44:46 CEST 2010


Feature Requests item #3029568, was opened at 2010-07-14 18:40
Message generated for change (Comment added) made by vladut-paiu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086413&aid=3029568&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: None
>Status: Closed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Vladut-Stefan Paiu (vladut-paiu)
Summary: avp and variables in codec_  operations

Initial Comment:
The current implementation of all codec_ operations only accept clear text. I think it's very better and useful, if i can use avp variables with codec_ functions. Example scenario to specify allowed codecs and codec preference order per sip clients from database or any other source that can't produce variables.

----------------------------------------------------------------------

>Comment By: Vladut-Stefan Paiu (vladut-paiu)
Date: 2010-10-19 17:44

Message:
Hello,

I have just commited a patch which implements the desired functionalities.
You can now do something like this in the script :

$var(codec)="speex";
$var(clock)="8000";

if (codec_exists("$var(codec)","$var(clock)"))
	xlog("speex/8000 codec detected\n");


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086413&aid=3029568&group_id=232389



More information about the Devel mailing list