[OpenSIPS-Devel] [ opensips-Patches-3607239 ] SIPMSGOPS: add stream_delete_except function

SourceForge.net noreply at sourceforge.net
Thu Apr 11 12:45:38 CEST 2013


Patches item #3607239, was opened at 2013-03-07 12:28
Message generated for change (Comment added) made by vladut-paiu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3607239&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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ryan Bullock (rrb3942)
Assigned to: Vladut-Stefan Paiu (vladut-paiu)
Summary: SIPMSGOPS: add stream_delete_except function

Initial Comment:
Adds stream_delete_except() function to sipmsgops module. Allows for removing all streams from SDP that do not match the regex passed to the function.

Example:

#Permit only audio and fax streams
stream_delete_except("audio|image");

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

>Comment By: Vladut-Stefan Paiu (vladut-paiu)
Date: 2013-04-11 03:45

Message:
Hi Ryan,

Thanks for the patch.
Wasn't able to test yet, but doesn't seem the patch will work as expected,
as it will always remove just the first occurrence, and then stop when
it'll reach that stream again, because of the lmp->len == 0 condition.

I'll rework the patch a little and apply it on trunk.

Best Regards,
Vlad

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

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



More information about the Devel mailing list