<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Mitja,<div><br></div><div>I've been looking through that bit of code as well the last few days as we're having problems with a host that negotiates no telephone-event, but wants it anyway.</div><div><br></div><div>But for your case, if you want to force SIP INFO, isn't it good enough to just set a channel variable dtmf_info=true on the channel towards your snom phones ?</div><div><br></div><div>regards,</div><div><br></div><div>Leon</div><div><br></div><div><br></div><div><br><div><div>On Aug 23, 2011, at 10:02 AM, Mitja Thomas wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    we are experiencing problems with DTMF between Snom Sip Phones and
    FS. The DMTF Type is set to SIP INFO (sip info only on Snom Phones).
    We could nail it down to a missing "telephone-event" parameter in
    sip sdp:<br>
    <small><small><span class="messageIn">INVITE sip<span style="POSITION: absolute; VISIBILITY: hidden"></span>:***6@spklw.x;user:phone

          SIP/2.0<br>
          Via: SIP/2.0/UDP ip:5060;branch=z9hG4bK-15eyqwai33r1;rport<br>
          From: "Test" <a class="moz-txt-link-rfc2396E" href="mailto:sip:8000@spklw.x">&lt;sip:8000@spklw.x&gt;</a>;tag=qqnbrunjmq<br>
          To: &lt;<a class="moz-txt-link-freetext" href="sip:***6@spklw.x;user:p">sip:***6@spklw.x;user:p</a><span style="POSITION:
            absolute; VISIBILITY: hidden"></span>hone&gt;<br>
          Call-ID: 3c33e6c729b3-t9yol2613q6v<br>
          CSeq: 1 INVITE<br>
          Max-Forwards: 70<br>
          Contact: <a class="moz-txt-link-rfc2396E" href="mailto:sip:8000@85.16.245.234:5060;line=9lwqdnrx">&lt;sip:8000@ip:5060;line=9lwqdnrx&gt;</a>;reg-id=1<br>
          X-Serialnumber: 000413262C33<br>
          P-Key-Flags: resolution="31x13", keys="4"<br>
          User-Agent: snom370/8.4.32<br>
          Accept: application/sdp<br>
          Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY,
          SUBSCRIBE, PRACK, MESSAGE, INFO, UPDATE<br>
          Allow-Events: talk, hold, refer, call-info<br>
          Supported: timer, 100rel, replaces, from-change<br>
          Session-Expires: 3600;refresher=uas<br>
          Min-SE: 90<br>
          Content-Type: application/sdp<br>
          Content-Length: 244<br>
          <br>
          v=0<br>
          o=root 334284706 334284706 IN IP4 phoneip<br>
          s=call<br>
          c=IN IP4 phoneip<br>
          t=0 0<br>
          m=audio 12610 RTP/AVP 8 9<br>
          a=direction:b<span style="POSITION: absolute; VISIBILITY:
            hidden"></span>oth<br>
          a=rtpmap:8 PCMA/8000<br>
          a=rtpmap:9 G722/8000<br>
          a:p<span style="POSITION: absolute; VISIBILITY: hidden"></span>time:20<br>
          a=rtcp-xr:s<span style="POSITION: absolute; VISIBILITY:
            hidden"></span>tat-summary=loss,dup,jitt<br>
          a=sendrecv</span></small></small><br>
    <br>
    That resulted in sofia_glue.c disabling DTMF. A slight change in
    sofia_glue.c (Line 4839 in commit
    71964f61ac4817ecfc516edaf4b643f41236868d) did the trick for us:<br>
    <small>if (tech_pvt-&gt;dtmf_type == DTMF_INFO) { //EWETEL<br>
      } else {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //EWETEL<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session),
      SWITCH_LOG_DEBUG, "Disable 2833 dtmf\n");<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; switch_channel_set_variable(tech_pvt-&gt;channel,
      "dtmf_type", "none");<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tech_pvt-&gt;dtmf_type = DTMF_NONE;<br>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; te = tech_pvt-&gt;recv_te = 0;<br>
      } //EWETEL</small><br>
    <br>
    Now the question is: <br>
    Is this a too restrictive behaviour in FS or a shortcoming from the
    Snom phones (which would mean we have to submit a bug, wait, wait,
    wait and then hopefully someday it gets fixed :) )?<br>
    <br>
    Regards,<br>
    Mitja<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Mitja Thomas
Vertrieb Geschäftskunden

Branchenlösungen / Service Entwicklung

Telefon:         +49 (0) 441 -  8000-4916
E-Mail:         <a class="moz-txt-link-abbreviated" href="mailto:mitja.thomas@ewe.de">mitja.thomas@ewe.de</a>


EWE TEL GmbH 
Cloppenburger Straße 310
26133 Oldenburg
E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:info@ewe.de">info@ewe.de</a>
Internet: <a class="moz-txt-link-abbreviated" href="http://www.ewe.de/">www.ewe.de</a>

Handelsregister Amtsgericht Oldenburg HRB 3723
Vorsitzender des Aufsichtsrates: Dr. Werner Brinker 
Geschäftsführung: Konrad Meier (Vorsitzender), Dirk Brameier, Ulf Heggenberger, Norbert Westfal</pre>
  </div>

<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></body></html>