Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DTMFs not recognized on Freeswitch #49

Open
krakatoa opened this issue Dec 6, 2013 · 8 comments
Open

DTMFs not recognized on Freeswitch #49

krakatoa opened this issue Dec 6, 2013 · 8 comments

Comments

@krakatoa
Copy link

krakatoa commented Dec 6, 2013

Hi guys, I've compiled the following scenario:

SippyCup::Scenario.new("Test", opts) do |s|
  s.invite
  s.wait_for_answer
  s.ack_answer

  s.sleep 5
  s.send_digits "1"
  s.sleep 20

  s.wait_for_hangup                                                                                                                                                                   
end

Tried it against a Freeswitch (v1.2.15) instance, and it seems FS does not recognize the media into DTMFs. SippyCup is at v0.3.0. FS profile has liberal-dtmf=true.
I've made a SIPp run by using this DTMFs RFC2833 pcaps https://code.osso.nl/projects/sipp/browser/pcap (provided by SIPp), and that way FS did recognize the DTMFs.

@benlangfeld
Copy link
Member

@bklang Could you clarify the way SippyCup generates DTMF? Is it 2833?

@bklang
Copy link
Member

bklang commented Dec 8, 2013

Yes, the goal is to be RFC2833 compliant. I've not looked at RFC4733 yet, but my understanding is that 4733 is mostly(?) backward compatible.

I would appreciate further information on what liberal-dtmf=true does on FreeSWITCH so I can fix any errors in teh DTMF generation. My guess is that FS is either unhappy about something in the packets themselves, or possibly with the SDP.

@benlangfeld
Copy link
Member

@krakatoa Could you please provide working and non-working PCAPs, as well as high verbosity freeswitch logs of both scenarios?

@bklang liberal-dtmf=true tells FreeSWITCH to accept both 2833 and INFO.

@bklang
Copy link
Member

bklang commented Dec 9, 2013

We most definitely are not sending DTMF in SIP INFO. @krakatoa is it possible that the SIP peers you have configured are not set for RFC2833?

@krakatoa
Copy link
Author

@benlangfeld the working PCAPs were these (you can download them from that page): https://code.osso.nl/projects/sipp/browser/pcap. And the non-working PCAPs were the ones genererated by SippyCup 0.3.0. Is that helpful ?

@krakatoa
Copy link
Author

@bklang Freeswitch is set to use RFC2833.. As far as I know, FS has no current support for RFC4733, however, it worked by running those "2833" PCAPs downloaded from the SIPp page...

@chewi
Copy link
Contributor

chewi commented Jan 13, 2014

I'm having this trouble too with 1.2.17 and sippy_cup develop. I have implemented sending DTMF via SIP INFO instead (using a dtmf_mode option) and this works. I'll submit a pull request soon. As it turns out, I think I'll need to use SIP INFO anyway because it seems like you can't repeatedly send RFC2833 DTMF in response to incoming SIP messages due to the timings in the pcap file being fixed. You would need to break it up into multiple pcap files, if that's even possible.

@chewi
Copy link
Contributor

chewi commented Jan 16, 2014

This obviously still needs addressing but if @krakatoa wants an easy workaround, check out #59.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants