I don't know for certain if the textops module can read the SDP headers (I think it
can), but your best bet is likely using the search() function from textops.
Basic format is:
if(search("some regular expression here"))
{
do whatever it is you want
};
On Fri, 15 Sep 2006 00:18:43 -0700, Scott Keagy wrote
What would folks recommend as the most efficient in
terms ofprocessing, and most efficient in terms of understanding/coding in SER, for howto
do this? Im not up to speed on SER-specific functions and ways ofdoing things yet.
One way I thought of is using the exec_msg function, passingthe whole SIP message to a
simple external script that searches for a specificpattern in the m= line and returns 0 if
its found or -1 if itsnot found.
Are there other more straightforward ways to do this or isthis about as elegant as its
going to get? Obvious shortcoming is youcan only choose between two codec or payload
types, but this is sufficient formy purposes.
Regards,
Scott