<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    can you run with debug=3 and see if the function is actually
    executed?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 18/05/15 12:31, José Seabra wrote:<br>
    </div>
    <blockquote
cite="mid:CAEVZRWtPhe2PKWVyeYQ-MLqYG1YGmd3VJbgSNzj6_PACf_1ETQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div>I'm using the function sdp_remove_codecs_by_id from sdpops
          module in order to remove some codecs in INVITE request before
          send  it to freeswitch, but the function doesn't remove the
          codec, and it doesn't give any error message.</div>
        <div><br>
        </div>
        <div>I'm using this function in request route.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Kamailio version is 4.2.2.</div>
        <div><br clear="all">
          <div><br>
          </div>
          <div>INVITE that kamailio receives from phone:</div>
          <div><br>
          </div>
          <div>
            <div>INVITE <a moz-do-not-send="true"
                href="mailto:sip%3A401@teste.itcenter.com.pt"
                target="_blank">sip:401@teste.d</a><a
                moz-do-not-send="true" href="http://emo.pt"
                target="_blank">emo.pt</a>;user=phone SIP/2.0</div>
            <div>Record-Route:
              <a class="moz-txt-link-rfc2396E" href="sip:10.0.20.102:5062;r2=on;lr=on;ftag=oztyflbzbx;nat=yes;lb=yes"><sip:10.0.20.102:5062;r2=on;lr=on;ftag=oztyflbzbx;nat=yes;lb=yes></a></div>
            <div>Record-Route:
              <a class="moz-txt-link-rfc2396E" href="sip:100.64.250.4;r2=on;lr=on;ftag=oztyflbzbx;nat=yes;lb=yes"><sip:100.64.250.4;r2=on;lr=on;ftag=oztyflbzbx;nat=yes;lb=yes></a></div>
            <div>Via: SIP/2.0/UDP
              10.0.20.102:5062;branch=z9hG4bKecf3.3ff3f7e77d2abc0fd3f74c61eeb68a0b.0</div>
            <div>Via: SIP/2.0/UDP
192.168.10.147:5060;received=100.64.250.254;branch=z9hG4bK-f0jm82qox75w;rport=5060</div>
            <div>From: "301" <<a moz-do-not-send="true"
                href="mailto:sip%3A301@teste.itcenter.com.pt"
                target="_blank">sip:301@teste.demo.pt</a>>;tag=oztyflbzbx</div>
            <div>To: <<a moz-do-not-send="true"
                href="mailto:sip%3A401@teste.itcenter.com.pt"
                target="_blank">sip:401@teste.demo.pt</a>;user=phone></div>
            <div>Call-ID: 3c3a58a25d63-ghfc5xdg1sn0</div>
            <div>CSeq: 1 INVITE</div>
            <div>Max-Forwards: 69</div>
            <div>Contact:
<a class="moz-txt-link-rfc2396E" href="sip:301@192.168.10.147:5060;alias=100.64.250.254~5060~1;line=c1r2c8u6"><sip:301@192.168.10.147:5060;alias=100.64.250.254~5060~1;line=c1r2c8u6></a>;reg-id=1</div>
            <div>X-Serialnumber: 000413262FA0</div>
            <div>P-Key-Flags: resolution="31x13", keys="4"</div>
            <div>User-Agent: snom370/8.4.35</div>
            <div>Accept: application/sdp</div>
            <div>Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS,
              NOTIFY, SUBSCRIBE, PRACK, MESSAGE, INFO, UPDATE</div>
            <div>Allow-Events: talk, hold, refer, call-info</div>
            <div>Supported: timer, 100rel, replaces, from-change</div>
            <div>Call-Info: <sip:<a moz-do-not-send="true"
                href="http://teste.itcenter.com.pt" target="_blank">teste.demo.pt</a>>;appearance-index=1</div>
            <div>Session-Expires: 3600;refresher=uas</div>
            <div>Min-SE: 90</div>
            <div>Content-Type: application/sdp</div>
            <div>Content-Length: 391</div>
            <div>v=0</div>
            <div>o=root 24935823 24935823 IN IP4 192.168.10.147</div>
            <div>s=call</div>
            <div>c=IN IP4 192.168.10.147</div>
            <div>t=0 0</div>
            <div>m=audio 19410 RTP/AVP 0 8 9 99 3 18 4 101</div>
            <div>a=rtpmap:0 PCMU/8000.</div>
            <div>a=rtpmap:8 PCMA/8000</div>
            <div>a=rtpmap:9 G722/8000</div>
            <div>a=rtpmap:99 G726-32/8000</div>
            <div>a=rtpmap:3 GSM/8000</div>
            <div>a=rtpmap:18 G729/8000</div>
            <div>a=fmtp:18 annexb=no</div>
            <div>a=rtpmap:4 G723/8000</div>
            <div>a=rtpmap:101 telephone-event/8000</div>
            <div>a=fmtp:101 0-16</div>
            <div>a=ptime:20</div>
            <div>a=sendrecv</div>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>INVITE that kamailio send to freeswitch after execute
             sdp_remove_codecs_by_id("18"):</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>
            <div>INVITE <a moz-do-not-send="true"
                href="mailto:sip%3A401@teste.demo.pt" target="_blank">sip:401@teste.demo.pt</a>;user=phone
              SIP/2.0.</div>
            <div>Record-Route:
              <a class="moz-txt-link-rfc2396E" href="sip:10.0.20.100;lr=on;ftag=zvjgcz9zs9;proxy=yes;did=441.0eb2"><sip:10.0.20.100;lr=on;ftag=zvjgcz9zs9;proxy=yes;did=441.0eb2></a>.</div>
            <div>Record-Route:
              <a class="moz-txt-link-rfc2396E" href="sip:10.0.20.102:5062;r2=on;lr=on;ftag=zvjgcz9zs9;nat=yes;lb=yes"><sip:10.0.20.102:5062;r2=on;lr=on;ftag=zvjgcz9zs9;nat=yes;lb=yes></a>.</div>
            <div>Record-Route:
              <a class="moz-txt-link-rfc2396E" href="sip:100.64.250.4;r2=on;lr=on;ftag=zvjgcz9zs9;nat=yes;lb=yes"><sip:100.64.250.4;r2=on;lr=on;ftag=zvjgcz9zs9;nat=yes;lb=yes></a>.</div>
            <div>Via: SIP/2.0/UDP
              10.0.20.100;branch=z9hG4bK8711.bb31396197409170b2c1bd05b24e7f36.0.</div>
            <div>Via: SIP/2.0/UDP
              10.0.20.102:5062;branch=z9hG4bK8711.07ffcc13fb96f90f6b4dbe4b2dfd0fa5.0.</div>
            <div>Via: SIP/2.0/UDP
192.168.10.147:5060;received=100.64.250.254;branch=z9hG4bK-aq7e0puz8p6o;rport=5060.</div>
            <div>From: "301" <<a moz-do-not-send="true"
                href="mailto:sip%3A301@teste.demo.pt" target="_blank">sip:301@teste.demo.pt</a>>;tag=zvjgcz9zs9.</div>
            <div>To: <<a moz-do-not-send="true"
                href="mailto:sip%3A401@teste.demo.pt" target="_blank">sip:401@teste.demo.pt</a>;user=phone>.</div>
            <div>Call-ID: 3c3a7c84e065-pr2hm0uk9yfz.</div>
            <div>CSeq: 2 INVITE.</div>
            <div>Max-Forwards: 68.</div>
            <div>Contact:
<a class="moz-txt-link-rfc2396E" href="sip:301@192.168.10.147:5060;alias=100.64.250.254~5060~1;line=ttnfv9c7"><sip:301@192.168.10.147:5060;alias=100.64.250.254~5060~1;line=ttnfv9c7></a>;reg-id=1.</div>
            <div>X-Serialnumber: 000413262FA0.</div>
            <div>P-Key-Flags: resolution="31x13", keys="4".</div>
            <div>User-Agent: snom370/<a moz-do-not-send="true"
                href="http://8.4.35." target="_blank">8.4.35.</a></div>
            <div>Accept: application/sdp.</div>
            <div>Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS,
              NOTIFY, SUBSCRIBE, PRACK, MESSAGE, INFO, UPDATE.</div>
            <div>Allow-Events: talk, hold, refer, call-info.</div>
            <div>Supported: timer, 100rel, replaces, from-change.</div>
            <div>Call-Info: <sip:<a moz-do-not-send="true"
                href="http://teste.itcenter.com.pt" target="_blank">teste.itcenter.com.pt</a>>;appearance-index=1.</div>
            <div>Session-Expires: 3600;refresher=uas.</div>
            <div>Min-SE: 90.</div>
            <div>Content-Type: application/sdp.</div>
            <div>Content-Length: 403.</div>
            <div>.<br>
            </div>
            <div>v=0.</div>
            <div>o=root <a moz-do-not-send="true" href="tel:228603317"
                value="+351228603317" target="_blank">228603317</a> <a
                moz-do-not-send="true" href="tel:228603317"
                value="+351228603317" target="_blank">228603317</a> IN
              IP4 100.64.250.4.</div>
            <div>s=call.</div>
            <div>c=IN IP4 100.64.250.4.</div>
            <div>t=0 0.</div>
            <div>m=audio 49404 RTP/AVP 0 8 9 99 3 18 4 101.</div>
            <div>a=rtpmap:0 PCMU/8000.</div>
            <div>a=rtpmap:8 PCMA/8000.</div>
            <div>a=rtpmap:9 G722/8000.</div>
            <div>a=rtpmap:99 G726-32/8000.</div>
            <div>a=rtpmap:3 GSM/8000.</div>
            <div>a=rtpmap:18 G729/8000.</div>
            <div>a=fmtp:18 annexb=no.</div>
            <div>a=rtpmap:4 G723/8000.</div>
            <div>a=rtpmap:101 telephone-event/8000.</div>
            <div>a=fmtp:101 0-16.</div>
            <div>a=ptime:20.</div>
            <div>a=sendrecv.</div>
            <div>a=rtcp:49405.</div>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>SDP body has no changes related with codecs.</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>Anyone call help please.</div>
          <div><br>
          </div>
          Thank you</div>
        <div>BR</div>
        <div>José Seabra<br clear="all">
          <div>-- <br>
          </div>
          <div>Cumprimentos
            <div>José Seabra</div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
  </body>
</html>