voiceip / tinyphone

Minimalist Windows / OSx / Linux SIP Softphone with API Control
GNU General Public License v3.0
114 stars 36 forks source link

getting dtmf #93

Open thiva7 opened 3 months ago

thiva7 commented 3 months ago

Hey , i have install and running the app and is work perfect , but i would like to ask is possible to get dtmf from caller?not send but receive it so to able to show calls based on caller selection?

Thanks

kingster commented 3 months ago

Hi @thiva7

How would you be using that? What do you mean by displaying it?

A softphone is for calling purpose, whereas dtmf is meant for an ivr system. If I guess you want to have dynamic forwarding based on user input it needs to be done at an ivr which can then appropriately forward.

thiva7 commented 3 months ago

Hi @thiva7

How would you be using that? What do you mean by displaying it?

A softphone is for calling purpose, whereas dtmf is meant for an ivr system. If I guess you want to have dynamic forwarding based on user input it needs to be done at an ivr which can then appropriately forward.

Hey thanks for you reply a very simple example.

in call center when call come i have this "for this press 1 for other press 2" etc

i want based on dtmf to show or not the caller from my app . now as it is , when i have incoming call is open same time notification window to all users .

Thanks

kingster commented 3 months ago

in call center when call come i have this "for this press 1 for other press 2" etc

This is something that needs to be done in ivr/pbx. Once the call comes you can have this as handling, and based on the response you can route it to 2 different queues on which you have different set of people answering.

Doing this on softphone is not even possible since it doesn't have call routing control.

thiva7 commented 3 months ago

control

Hey thanks for reply Im not asking for adding routing to calls. But to get dtmf input while call is active.

Thanks for your time.

kingster commented 3 months ago

Unfortunately that is not supported currently. The way to implement this would be to start a AudioMedia transmit to a listener which would continue to detect dtmf tunes, once detected it can raise those events. Have a look at how conference is implemented and you can start from there.

kingster commented 3 months ago

Here's the link to pjsip documentation with guidance to implement inband dtmf detection

https://docs.pjsip.org/en/latest/specific-guides/sip/dtmf.html#implementing-inband-dtmf-detector

thiva7 commented 3 months ago

Unfortunately that is not supported currently. The way to implement this would be to start a AudioMedia transmit to a listener which would continue to detect dtmf tunes, once detected it can raise those events. Have a look at how conference is implemented and you can start from there.

Here's the link to pjsip documentation with guidance to implement inband dtmf detection

https://docs.pjsip.org/en/latest/specific-guides/sip/dtmf.html#implementing-inband-dtmf-detector

Hey , Thanks for reply

i will give a try.

Thank you