Easy, use Read() to capture the incoming DTMF from Server-B<div><br></div><div>Server-A <============> Server-B</div><div>Initiate-Call ---------------------> AnswerCall()</div><div>SendDTMF(5)------------------> Read()</div>
<div>Read()<-----------------------------SendDTMF(4)</div><div><div>SendDTMF(3)------------------> Read()</div><div>Read()<-----------------------------SendDTMF(2)</div><div><div>SendDTMF(1)------------------> Read()</div>
<div><br></div></div><div><br></div><div>Put proper GOTOIFs after reads if you like.</div><div><br></div><div>--</div><div>Regards,</div><div>Sammy</div><div><br></div><div class="gmail_quote">On Thu, Dec 29, 2011 at 12:34 PM, virendra bhati <span dir="ltr"><<a href="mailto:virbhati@gmail.com">virbhati@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I originate calls from .call file and 1 channel I have at A server A and another channel at B server.<br>
<br><b>A server code is below:-</b><br clear="all"><br>exten => 43689956,1,Answer()<br> same => n,Wait(5)<br>
same => n,SendDTMF(1)<br> same => n,NoOp(== ${CHANNEL(state)}==> state)<br> same => n,wait(2)<br> same => n,SendDTMF(123456789012345#)<br> same => n,NoOp(== ${CHANNEL(state)}==> state)<br>
same => n,Hangup()<br><br> _________ _________<br>
| A server | _______DTMF Send_____=> | B server |<br>
|_________| <=------- Responce --------- |_________|<br><br><b>B server code is below:-</b><br>At B server call come to 201 extension which is mention here..<br><br>exten => _20[1-6],1,Answer()<br> same => n,Ringing()<br>
same => n,wait(2)<br> same => n,ExecIf($[$[${EXTEN}=201] || $[${EXTEN}=203]] ?<b>AGI(/home/applications/ivr/nono2ivr/ivr/index_mvl.php))</b><br>
same => n,ExecIf($[${EXTEN}=202 || $[${EXTEN}=204] ||
$[${EXTEN}=205] ||
$[${EXTEN}=206]]?AGI(/home/applications/ivr/nono2ivr/ivr/index.php))<br> same => n,Hangup()<br><br>Now
I can send the DTMF from A to B. But How I will get the responce at
server A. I checked all the channels variable but they didn't reply
status of B server channel. All information I will get of server A. Main
problem is that control reach to AGI and then I don't have any rights
to do any update or modification on AGI. So if I can work on request and
responce then it will be the last solution as per my knowledge. <br>
<br>
Is this possible with the dialplan or I am just westing time?<div><div class="h5"><br>
<br><br>On Wed, Dec 28, 2011 at 10:29 PM, Paul Belanger <span dir="ltr"><<a href="mailto:pabelanger@digium.com" target="_blank">pabelanger@digium.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On 11-12-28 03:25 AM, virendra bhati wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
Hi list,<br>
<br>
Is there any way in asterisk by which I make a call from server and then<br>
dialplan(IVR system) gets DTMF from it. I mean to say that automatically<br>
DTMF is sended by channels as per user defined,<br>
<br>
I read there is an application sendDTMF but I don't know how we can used it?<br>
<br>
like A script make the call by using localdail, .call file or any method.<br>
And after landing the call we send dtmf to IVR system automatically as per<br>
my script..<br>
<br>
<br></div>
*extensions.conf:-*<div><br>
<br>
exten => 1234,1,Answer()<br>
same => n,Read(value,<u></u>pleasePress1forSupportPress2fo<u></u>rHelp,1,,10)<br>
same => n,NoOp(${value})<br>
same => n,ExecIf($[${value}=1]?Goto(<u></u>suppot,1))<br>
same => n,ExecIf($[${value}=2]?Goto(<u></u>help,1))<br>
same => n,Hangup()<br>
<br>
exten=> support,1,Answer()<br>
same => n,NoOp(you are at support section)<br>
same => n,Hangup()<br>
<br>
exten=> help,1,Answer()<br>
same => n,NoOp(you are at help section)<br>
same => n,Hangup()<br>
<br>
</div></blockquote>
We have DTMF based tests for the testsuite[1] that you could use.<br>
<br>
[1] <a href="http://svn.asterisk.org/svn/testsuite/asterisk/trunk/" target="_blank">http://svn.asterisk.org/svn/<u></u>testsuite/asterisk/trunk/</a><br><font color="#888888">
-- <br>
Paul Belanger<br>
Digium, Inc. | Software Developer<br>
twitter: pabelanger | IRC: pabelanger (Freenode)<br>
Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a></font><div><div></div><div><br>
<br>
--<br>
______________________________<u></u>______________________________<u></u>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/<u></u>mailman/listinfo/asterisk-<u></u>users</a><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div><div class="im">-- <br><div dir="ltr"><br>Thanks and regards<br><br> Virendra Bhati<br><a href="tel:%2B91-8885268942" value="+918885268942" target="_blank">+91-8885268942</a><br>
Software Engineer<br></div><br>
</div></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>