<div dir="ltr">Hi Patrick ,<div><br></div><div>    I think in my case , the length of c line is varying . not constant in all cases . so I need a general solution for this . </div><div>Of course your syntax is giving me actual result in this case . But i cant be dependent on the length . </div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><b><i>Thanks &amp; Regards</i></b><div><i>Sasmita Panda</i></div><div><i>Network Testing and Software Engineer</i></div><div><i>3CLogic , ph:07827611765</i></div></div></div></div>
<br><div class="gmail_quote">On Wed, Dec 2, 2015 at 4:25 PM, Patrick Wakano <span dir="ltr">&lt;<a href="mailto:pwakano@gmail.com" target="_blank">pwakano@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br><div>Maybe you can perform a string transformation to extract the substring with only the IP.</div><div>Should be something like this:</div><div>$var(c_line) = $(rb{sdp.line,c,1}{s.substr,9,0}); #skips the &quot;c=IN IP4 &quot; characters</div><div><br></div><div>You can also play with the s.select transformation to do something similar.</div><div>Check: <a href="http://www.opensips.org/Documentation/Script-Tran-1-11#toc1" target="_blank">http://www.opensips.org/Documentation/Script-Tran-1-11#toc1</a></div><div><br></div><div>Patrick</div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Dec 2, 2015 at 6:20 AM, Sasmita Panda <span dir="ltr">&lt;<a href="mailto:spanda@3clogic.com" target="_blank">spanda@3clogic.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi All ,<div><br></div><div><br></div><div>      I am trying to find the C line of the sdp of a INVITE request . </div><div>    </div><div><span style="color:rgb(102,102,102);font-family:&#39;Lucida Console&#39;,&#39;Andale Mono&#39;,&#39;Courier New&#39;,Courier;font-size:0.9em;line-height:21.5933px;background-color:rgb(251,254,250)">if (is_method(&quot;INVITE&quot;))</span></div><pre style="font-size:0.9em;font-family:&#39;Lucida Console&#39;,&#39;Andale Mono&#39;,&#39;Courier New&#39;,Courier;margin-top:0px;margin-bottom:0px;padding:6px;border:1px solid rgb(235,235,235);color:rgb(102,102,102);line-height:21.5933px;background-color:rgb(251,254,250)">   {
      $var(aline) = $(rb{sdp.line,a,1});
      xlog(&quot;The second a line in the SDP body is $var(aline)\n&quot;);
    }</pre><div>        I got the entire C line in this case as &quot;c=IN IP4  x.x.x.x&quot;. But if I wanted to get the IP of the C line then what should I do . Is there any comparison to get get the IP only . Please help me . Any kind of help is appreciated . </div><div><br></div><div><br clear="all"><div><div><div dir="ltr"><b><i>Thanks &amp; Regards</i></b><span><font color="#888888"><div><i>Sasmita Panda</i></div><div><i>Network Testing and Software Engineer</i></div><div><i>3CLogic , ph:07827611765</i></div></font></span></div></div></div>
</div></div>
<br></div></div>_______________________________________________<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" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>