<div dir="ltr">Hello,<div><br></div><div>I added the following xlog before function</div><div><br></div><div><div><b>xlog("L_INFO", "[SDPOPS] executing function sdp_remove_codecs_by_id($avp(s:codecs_to_remove)) ID=$ci\n");</b></div><div><br></div></div><div>and if i have set debug=2 I can see the xlog message, if I change it to 3 I cannot see my message, even if I set xlog with L_DBG i cannot see the message in syslog, this is a weird behavior, can be something wrong with my rsyslog service?</div><div><br></div><div><div>I did a test that was edit the c function sdp_remove_codecs_by_id in sdpops_mod.c and i changed the log message from LM_DBG to LM_INFO, then i compiled and ran again the test and i can see the internal log messages from function sdp_remove_codecs_by_id.</div></div><div><br></div><div>syslog:</div><div><br></div><div><div>May 19 15:07:17 ccp2 /usr/local/sbin/kamailio[9068]: INFO: <script>: Call flow id '18' ID=3134333230343038333536373236-i0wa7mreng1w</div><div>May 19 15:07:17 ccp2 /usr/local/sbin/kamailio[9068]: INFO: <script>: Call flow name 'queue test' ID=3134333230343038333536373236-i0wa7mreng1w</div><div>May 19 15:07:17 ccp2 /usr/local/sbin/kamailio[9068]: INFO: <script>: Action Type 'CallQueue' ID=3134333230343038333536373236-i0wa7mreng1w</div><div>May 19 15:07:17 ccp2 /usr/local/sbin/kamailio[9068]: INFO: <script>: Has object left '0' ID=3134333230343038333536373236-i0wa7mreng1w</div><div>May 19 15:07:17 ccp2 /usr/local/sbin/kamailio[9068]: INFO: <script>: Call Queues - R=<a href="mailto:sip%3A400@test.centrex.coditel.be">sip:400@test.centrex.coditel.be</a>;user=phone  ID=3134333230343038333536373236-i0wa7mreng1w</div><div>May 19 15:07:17 ccp2 /usr/local/sbin/kamailio[9068]: INFO: <script>: Relaying request to freeSWITCH, M=INVITE, du='sip:<a href="http://10.0.20.26:5060">10.0.20.26:5060</a>',F=<a href="mailto:sip%3A201@test.centrex.coditel.be">sip:201@test.centrex.coditel.be</a> - R=<a href="mailto:sip%3A400@test.centrex.coditel.be">sip:400@test.centrex.coditel.be</a>;user=phone ID=3134333230343038333536373236-i0wa7mreng1w</div><div><b>May 19 15:07:17 ccp2 /usr/local/sbin/kamailio[9068]: INFO: <script>: [SDPOPS] executing function sdp_remove_codecs_by_id(18) ID=3134333230343038333536373236-i0wa7mreng1w</b></div><div><b>May 19 15:07:17 ccp2 /usr/local/sbin/kamailio[9068]: INFO: sdpops [sdpops_mod.c:331]: sdp_remove_codecs_by_id(): attempting to remove codecs from sdp: [18]</b></div></div><div><br></div><div><br></div><div><br></div><div>BR</div><div>José Seabra</div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-19 12:25 GMT+01:00 Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    can you enable cfgtrace via debugger module or add an xlog just
    before calling the function in configuration file and see if related
    message appears in syslog?<br>
    <br>
    Cheers,<br>
    Daniel<div><div class="h5"><br>
    <br>
    <div>On 19/05/15 11:05, José Seabra wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Hello,
        <div>Thank you for your reply</div>
        <div><br>
        </div>
        <div>I ran kamailio with debug=3 and log_stderror=yes and the
          only thing that i see related with
          function  sdp_remove_codecs_by_id is:</div>
        <div><br>
        </div>
        <div> 0(4707) DEBUG: <core> [route.c:907]: fix_actions():
          fixing sdp_remove_codecs_by_id()<br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>if i set  debug=3 and log_stderror=no then i look for
          syslog file where kamailio is writting logs, and i don't see
          anything related with function sdp_remove_codecs_by_id.</div>
        <div><br>
        </div>
        <div>I'm not using msg_apply_changes function.<br>
        </div>
        <div><br>
        </div>
        <div>Thank you for your support</div>
        <div><br>
        </div>
        <div>BR</div>
        <div>José Seabra<br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2015-05-18 13:26 GMT+01:00
          Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div 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
              <div>
                <div><br>
                  <br>
                  <div>On 18/05/15 12:31, José Seabra wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div>
                    <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 href="mailto:sip%3A401@teste.itcenter.com.pt" target="_blank">sip:401@teste.d</a><a href="http://emo.pt" target="_blank">emo.pt</a>;user=phone
                            SIP/2.0</div>
                          <div>Record-Route: <a><sip:10.0.20.102:5062;r2=on;lr=on;ftag=oztyflbzbx;nat=yes;lb=yes></a></div>
                          <div>Record-Route: <a><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 href="mailto:sip%3A301@teste.itcenter.com.pt" target="_blank">sip:301@teste.demo.pt</a>>;tag=oztyflbzbx</div>
                          <div>To: <<a 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><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 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 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><sip:10.0.20.100;lr=on;ftag=zvjgcz9zs9;proxy=yes;did=441.0eb2></a>.</div>
                          <div>Record-Route: <a><sip:10.0.20.102:5062;r2=on;lr=on;ftag=zvjgcz9zs9;nat=yes;lb=yes></a>.</div>
                          <div>Record-Route: <a><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 href="mailto:sip%3A301@teste.demo.pt" target="_blank">sip:301@teste.demo.pt</a>>;tag=zvjgcz9zs9.</div>
                          <div>To: <<a 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><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 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 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 href="tel:228603317" value="+351228603317" target="_blank">228603317</a> <a 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></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span><font color="#888888">
</font></span></pre>
                <span><font color="#888888"> </font></span></blockquote>
              <span><font color="#888888"> <br>
                  <pre cols="72">-- 
Daniel-Constantin Mierla
<a href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a href="http://www.kamailioworld.com" target="_blank">http://www.kamailioworld.com</a></pre>
                </font></span></div>
            <br>
            _______________________________________________<br>
            SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
            mailing list<br>
            <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
            <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br clear="all">
      <div><br>
      </div>
      -- <br>
      <div>Cumprimentos
        <div>José Seabra</div>
      </div>
    </blockquote>
    <br>
    <pre cols="72">-- 
Daniel-Constantin Mierla
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a href="http://www.kamailioworld.com" target="_blank">http://www.kamailioworld.com</a></pre>
  </div></div></div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cumprimentos<div>José Seabra</div></div>
</div></div>