<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="Open WebMail 2.20 20031014" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<font size="2">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.
<br />
<br />
<br />Basic format is:
<br />
<br />if(search("some regular expression here"))
<br />{
<br /> do whatever it is you want
<br />};
<br /><b>
<br />
<br />On Fri, 15 Sep 2006 00:18:43 -0700, Scott Keagy wrote</b>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">What would folks recommend as the most efficient in terms of
processing, and most efficient in terms of understanding/coding in SER, for how
to do this? I’m not up to speed on SER-specific functions and ways of
doing things yet.<o:p /></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">One way I thought of is using the exec_msg function, passing
the whole SIP message to a simple external script that searches for a specific
pattern in the m= line and returns 0 if it’s found or -1 if it’s
not found.<o:p /></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">Are there other more straightforward ways to do this or is
this about as elegant as it’s going to get? Obvious shortcoming is you
can only choose between two codec or payload types, but this is sufficient for
my purposes.<o:p /></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">Regards,<o:p /></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">Scott<o:p /></span></font>
<br />
<br />
<br />
</font>
</BODY>
</HTML>