#268 SIPMSGOPS: add stream_delete_except function

open
None
5
2013-04-10
2013-03-07
No

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");

Discussion

  • Vladut-Stefan Paiu

    • assigned_to: nobody --> vladut-paiu
     
  • Vladut-Stefan Paiu

    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

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks