The telephone-event negotiation used to work in earlier versions.
The problem is the fmtp comparison in 
sipXsdpLib/src/sdp/SdpCodecList.cpp:getCodec()
fmtp = "0-15" while foundFmtp is empty.

There is the following comment:

             // If the mime type matches
             // and if the mime subtype, sample rate, number of channels
             // and fmtp match.
             // TODO:: checking for fmtp match must be made intelligent, e.g. by
             //        defining isCompatible(fmtp) method for SdpCodec. Checking
             //        by string comparison leads to errors when there are two
             //        or more parameters and they're presented in random order.



"2008-11-07T15:01:22.844033Z":29018:INCOMING:INFO:mcs.adomo.local:SipClient-6:028CEBA0:sipXtapi:"Read
 SIP message:
----Remote Host:10.2.0.163---- Port: 1071----
INVITE sip:[EMAIL PROTECTED] SIP/2.0
From:<sip:[EMAIL PROTECTED]:5060>;vnd.pimg.port=22;tag=34F132463135364104717381
To:<sip:[EMAIL PROTECTED]>
Diversion: <tel:6361>;reason=no-answer
Content-Type:application/sdp
Supported:replaces,100rel
Allow:INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,COMET,PRACK,REFER,SUBSCRIBE,NOTIFY,MESSAGE
Expires:120
Call-ID:[EMAIL PROTECTED]
CSeq:1 INVITE
Max-Forwards:70
User-Agent:PBX-IP Media Gateway
Contact:sip:[EMAIL PROTECTED]:5060
Via:SIP/2.0/UDP 10.2.0.163:5060;branch=z9hG4bK1754C428549F3B2A65EB94F24D3401C8
Content-Length:298

v=0
o=phone 2212 0 IN IP4 10.2.0.163
s=-
c=IN IP4 10.2.0.163
t=0 0
m=audio 49096 RTP/AVP 0 8 101 13
a=rtpmap:0 PCMU/8000/1
a=rtpmap:8 PCMA/8000/1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
m=image 0 udptl t38
a=T38FaxRateManagement:transferredTCF
a=T38FaxUdpEC:t38UDPRedundancy
====================END====================
"


> Hi,
> 
> I am having trouble getting DTMF to work with the latest 3.2 branch.
> It looks like the telephone-event codec is no longer negotiated,
> although it's offered in the INVITE.
> 
> Any help would be greatly appreciated. 

_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to