how to catch the value of dialpads pressed button?

一笑奈何 提交于 2019-12-25 08:10:15

问题


I am developing a SIP application for making and receiving a call. For that purpose I did analysis on open source project SipDroid. in that project how they catch the value of dialpads pressed button which is sent to the particular method for making a SIP call.

I tried to find the code for that task but I didn't get anything.in which file the code is resides to catch that value in SipDroid project?


回答1:


The calls in SipDroid are handled by the SipdroidEngine:

org.sipdroid.sipua.SipdroidEngine

The method that handles the initial operation is with signature public boolean call(String target_url,boolean force) - it transfers the call to the SipDroid UserAgent class and so on, until it reaches the network transport layer. Just check the references of this call method in the whole project and see where it's used.




回答2:


The dialpad values are called DTMF (Dual-tone multi-frequency signaling).

Most of SipDroid's DTMF stuff is in dtmf.h.

You can search through the source code to see where it is used.



来源:https://stackoverflow.com/questions/10011029/how-to-catch-the-value-of-dialpads-pressed-button

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!