Yeah, I was afraid of that. perhaps what would have to be done is to limit to force one codec.. seems messy :/<div><br></div><div>So not sure if there would be a way to limit the number of paths for a given codec..</div><div>
<br><br><div class="gmail_quote">On Tue, Jul 28, 2009 at 9:47 AM, Olle E. Johansson <span dir="ltr"><<a href="mailto:oej@edvina.net">oej@edvina.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
28 jul 2009 kl. 16.41 skrev Brett Nemeroff:<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I don't really need codec manipulation so much as just knowing what codec was used (yes in a PV). Not a list of available codecs, but which codec was negotiated and used. I don't know SDP very well so I'm not sure if that's immediately discernible. This example was given earlier. Lets say I want to limit to 50 g729a dialogs to a particular IP.<br>
</blockquote></div>
As far as I know, there's no way in SIP you can determine what codec actually was used if the offer/answer resultet in multiple codecs. Also note that during a call, the codec may change.<br>
<br>
/O<div><div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
That's what I really want to use it for. I'd also really like to log the codec on a per call basis in ACC.<br>
-Brett<br>
<br>
<br>
On Tue, Jul 28, 2009 at 2:54 AM, Bogdan-Andrei Iancu <<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>> wrote:<br>
Hi Brett,<br>
<br>
You mean an PV returning the list with all the available codecs ?<br>
<br>
Regards,<br>
Bogdan<br>
<br>
Brett Nemeroff wrote:<br>
Is there anyway to write to an AVP the negotiated codec? That'd be good for CDR purposes. Would I need a bunch of codec_exists in the on_reply route checking for 200 OK?<br>
<br>
On Thu, Jul 23, 2009 at 4:46 AM, andrei dragus <<a href="mailto:andreidragus@yahoo.com" target="_blank">andreidragus@yahoo.com</a> <mailto:<a href="mailto:andreidragus@yahoo.com" target="_blank">andreidragus@yahoo.com</a>>> wrote:<br>
<br>
<br>
Hello,<br>
<br>
Methods have been added for SDP codec manipulation in the textops<br>
module.<br>
Please update your module if you wish to use them.<br>
<br>
There are 4 methods:<br>
codec_exists(name[,clock]); //test if a codec exists<br>
codec_delete(name[,clock]); //delete a codec<br>
codec_move_up(name[,clock]); //move a codec to the front of the list<br>
codec_move_down(name[,clock]);//move a codec to the back of the list<br>
<br>
Each of them can take a codec name and an optional clock<br>
parameter. If the clock is unspecified all of the codecs with that<br>
name will match.<br>
<br>
All of the methods will act on all streams from all sessions<br>
inside the SDP.<br>
<br>
You can use these methods one after another to get a desired effect.<br>
E.g. To make GSM the least prefered codec but GSM/8000 the most<br>
prefered of all GSM codecs use:<br>
<br>
codec_move_up("GSM","8000");<br>
codec_move_down("GSM");<br>
<br>
Once a codec was deleted it will not be detected by codec_exists().<br>
<br>
Feel free to test these methods and please report any bugs you may<br>
find.<br>
<br>
Thanks,<br>
Andrei.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>><br>
<br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote>
<br></div></div>
---<br><font color="#888888">
* Olle E Johansson - <a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a><br>
* Cell phone +46 70 593 68 51, Office +46 8 96 40 20, Sweden<br>
<br>
<br>
<br>
</font></blockquote></div><br></div>