<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Look at the mangle module.<br>
g-)<br>
<br>
sip wrote:
<blockquote cite="mid20060915105535.M82742@infinideas.com" type="cite">
  <meta content="text/html; charset=iso-8859-1"
 http-equiv="Content-Type">
  <meta content="Open WebMail 2.20 20031014" name="GENERATOR">
  <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:&nbsp;&nbsp; <br>
  <br>
if(search("some regular expression here"))
  <br>
{
  <br>
&nbsp; 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>
&gt; <font face="Arial" size="2"><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&#8217;m not up to speed on SER-specific functions and ways of
doing things yet.<o:p></o:p></span></font>
  <br>
&gt; <font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: arial;"><o:p>&nbsp;</o:p></span></font>
  <br>
&gt; <font face="Arial" size="2"><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&#8217;s found or -1 if it&#8217;s
not found.<o:p></o:p></span></font>
  <br>
&gt; <font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: arial;"><o:p>&nbsp;</o:p></span></font>
  <br>
&gt; <font face="Arial" size="2"><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&#8217;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></o:p></span></font>
  <br>
&gt; <font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: arial;"><o:p>&nbsp;</o:p></span></font>
  <br>
&gt; <font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: arial;">Regards,<o:p></o:p></span></font>
  <br>
&gt; <font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: arial;">Scott<o:p></o:p></span></font>
  <br>
  <br>
  <br>
  </font>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Serusers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a>
<a class="moz-txt-link-freetext" href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a>
  </pre>
</blockquote>
</body>
</html>