<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Well, you could improve it by combining the two substitutions into one:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">$var(toto) = $(avp(aline){re.subst,/.*:(.*)@.*/\1/g});<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Beyond that if this is something you do often you can use the dialplan module [1] to store the regex as a rule and apply it anywhere you want. It may have been designed for dialplan management but it is basically a database-backed regex
 module that can be used for anything.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[1] <a href="https://opensips.org/html/docs/modules/2.4.x/dialplan.html">
https://opensips.org/html/docs/modules/2.4.x/dialplan.html</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:black">Ben Newlin </span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">Users <users-bounces@lists.opensips.org> on behalf of Mickael Hubert <mickael@winlux.fr><br>
<b>Reply-To: </b>OpenSIPS users mailling list <users@lists.opensips.org><br>
<b>Date: </b>Wednesday, November 27, 2019 at 1:29 PM<br>
<b>To: </b>OpenSIPS users mailling list <users@lists.opensips.org><br>
<b>Subject: </b>Re: [OpenSIPS-Users] Extract data from AVP<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal">Thanks Ben,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">yes I tried this:<o:p></o:p></p>
</div>
<div>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt" id="gmail-LC644">
<p class="MsoNormal">$var(toto) = $(avp(aline){re.subst,/.*:(.*)/\1/g}); # delete a=channel:<o:p></o:p></p>
</td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="display:none"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt" id="gmail-LC645"></td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="display:none"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt" id="gmail-LC646">
<p class="MsoNormal">xlog("line in the SDP body is $(var(toto){re.subst,/(.*)@.*/\1/g})\n");
<o:p></o:p></p>
</td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
</tbody>
</table>
<p class="MsoNormal">xlog("line in the SDP body is $(var(toto){re.subst,/.*@(.*)/\1/g})\n");<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">It works like a charm, maybe there is a better way ...<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Le mer. 27 nov. 2019 à 17:51, Ben Newlin <<a href="mailto:Ben.Newlin@genesys.com">Ben.Newlin@genesys.com</a>> a écrit :<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Have you tried using the substitution transformation?<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a href="https://www.opensips.org/Documentation/Script-Tran-2-4#toc82" target="_blank">https://www.opensips.org/Documentation/Script-Tran-2-4#toc82</a><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:black">Ben Newlin
</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div style="border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;border-color:currentcolor currentcolor">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Users <<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>> on behalf of Mickael Hubert <<a href="mailto:mickael@winlux.fr" target="_blank">mickael@winlux.fr</a>><br>
<b>Reply-To: </b>OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><br>
<b>Date: </b>Wednesday, November 27, 2019 at 11:11 AM<br>
<b>To: </b>OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><br>
<b>Subject: </b>[OpenSIPS-Users] Extract data from AVP</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi all,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I want to extract the channel ID from a line in SDP (a=channel:d87c363c1b5b4f13@speechrecog)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I can extract this line, but I don't know how can I have only the ID (d87c363c1b5b4f13)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Do you have a way for me please ?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">thanks in advance<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">SDP example:<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">***********<br>
<span style="font-family:"Courier New"">m=application 1544 TCP/MRCPv2 1<br>
a=setup:passive<br>
a=connection:new<br>
a=channel:d87c363c1b5b4f13@speechrecog<br>
a=cmid:1<br>
m=audio 5002 RTP/AVP 8 101</span><br>
*************<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">My conf:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">My result: "line in the SDP body is a=channel:d87c363c1b5b4f13@speechrecog"<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I want only: d87c363c1b5b4f13 in specific avp<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#4EC9B0">onreply_route</span><span style="font-size:10.5pt;font-family:"Courier New";color:#DCDCAA">[reply_mrcp]</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">{</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">xlog(</span><span style="font-size:10.5pt;font-family:"Courier New";color:#CE9178">"L_INFO"</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">,</span><span style="font-size:10.5pt;font-family:"Courier New";color:#CE9178">"$avp(startlog)
 In REPLY ROUTE MRCP - fu : $fu , si : $si , rs: $rs</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D7BA7D">\n</span><span style="font-size:10.5pt;font-family:"Courier New";color:#CE9178">"</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">);</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#C586C0">if</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">(has_body_part(</span><span style="font-size:10.5pt;font-family:"Courier New";color:#CE9178">"application/sdp"</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">))</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">{</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#C586C0">if</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> (search_body(</span><span style="font-size:10.5pt;font-family:"Courier New";color:#CE9178">"m=application.*TCP</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D7BA7D">\/</span><span style="font-size:10.5pt;font-family:"Courier New";color:#CE9178">MRCPv2"</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">))</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">{ </span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#C586C0">if</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">(search_body(</span><span style="font-size:10.5pt;font-family:"Courier New";color:#CE9178">"a=channel:.*"</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">))
 {</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#9CDCFE">$var(i)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">=</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#B5CEA8">0</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">;</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#9CDCFE">$var(whileflag)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">=</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#B5CEA8">0</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">;</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#C586C0">while</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> (</span><span style="font-size:10.5pt;font-family:"Courier New";color:#9CDCFE">$var(i)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">< </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#B5CEA8">10</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">&&</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#9CDCFE">$var(whileflag)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">!=</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#B5CEA8">1</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">)</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">{</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#9CDCFE">$avp(aline)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">= $(rb{sdp.line,a,</span><span style="font-size:10.5pt;font-family:"Courier New";color:#9CDCFE">$var(i)</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">});</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#C586C0">if</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">(</span><span style="font-size:10.5pt;font-family:"Courier New";color:#9CDCFE">$avp(aline)</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">=~</span><span style="font-size:10.5pt;font-family:"Courier New";color:#CE9178">"a=channel"</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">)</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">{</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">xlog(</span><span style="font-size:10.5pt;font-family:"Courier New";color:#CE9178">"line in the SDP body is $avp(aline)</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D7BA7D">\n</span><span style="font-size:10.5pt;font-family:"Courier New";color:#CE9178">"</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">);</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#9CDCFE">$var(whileflag)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">=</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#B5CEA8">1</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">;</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">}</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#9CDCFE">$var(i)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">=</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#9CDCFE">$var(i)</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">+</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#B5CEA8">1</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">;</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">}</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">xlog(</span><span style="font-size:10.5pt;font-family:"Courier New";color:#CE9178">"var i = $var(i)</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D7BA7D">\n</span><span style="font-size:10.5pt;font-family:"Courier New";color:#CE9178">"</span><span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">);</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">}</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">}</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">}</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4">}</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:14.25pt;background:#1E1E1E;background-attachment:scroll;background-position-x:0%;background-position-y:0%">
<span style="font-size:10.5pt;font-family:"Courier New";color:#D4D4D4"> </span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</body>
</html>