Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to send and Receive DTMF in Freeswitch ESL client
    primarykey
    data
    text
    <p>I am working with Freeswitch ESL client, I worked on originating call and establishing connection between two applications and making them communicate with each other. I have tried playing sound at one end and recording at the other, It is working fine now my requirement is to send dtmf at one end receiving at other end, I have tried following</p> <pre><code>private void sendDtmf(Channel channel) { SendMsg senDtmf = new SendMsg(); senDtmf.addCallCommand("execute"); senDtmf.addExecuteAppName("send_dtmf"); senDtmf.addExecuteAppArg("2174"); EslMessage response = sendSyncMultiLineCommand( channel,senDtmf.getMsgLines() ); if (response.getHeaderValue(Name.REPLY_TEXT).startsWith("+OK")) { System.out.println(this.getClass().getName() + " &gt;&gt; DTMF Send"); System.out.println("Resp: " + response.toString()); log.info(this.getClass().getName() + " &gt;&gt; DTMF Send"); } else { log.error(this.getClass().getName() + " &gt;&gt; DTMF failed :" + response.getHeaderValue(Name.REPLY_TEXT)); System.out.println(this.getClass().getName() + " &gt;&gt; DTMF failed :" + response.getHeaderValue(Name.REPLY_TEXT)); } } private void getdtmf( Channel channel, VoxtaMsg voxmsg) { SendMsg getDtmf= new SendMsg(); getDtmf.addCallCommand( "execute" ); getDtmf.addExecuteAppName( "play_and_get_digits" ); getDtmf.addExecuteAppArg("4 4 3 7000 # /tmp/sounds/test.wav /tmp/sounds/test1.wav dtmf \\d+"); EslMessage response = sendSyncMultiLineCommand( channel,getDtmf.getMsgLines() ); if ( response.getHeaderValue( Name.REPLY_TEXT).startsWith( "+OK" ) ) { System.out.println(this.getClass().getName()+" &gt;&gt; DTMF Received"); log.info( this.getClass().getName()+" &gt;&gt; DTMF Received" ); } else { log.error( this.getClass().getName() + " &gt;&gt; DTMF failed: [{}}" + response.getHeaderValue( Name.REPLY_TEXT )); System.out.println(this.getClass().getName() + " &gt;&gt; DTMF failed: [{}}" + response.getHeaderValue( Name.REPLY_TEXT ) ); log.debug("----------------------done-------------------------"); } } </code></pre> <p>but could not get any result, Do I need to configure any thing in dial plans, or my total approach is wrong?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload