Call Progress Detection

Dear All,

I’ve been learning asterisk for six months now and have a project about OutBound Calls (IVR), but I am having problem about the call progress. I can’t play the IVR properly for outbound because i do not know when the customer answers the phone.

Here’s the scenario. I have two asterisk Server. One is for IVR (Asterisk1) and the Other one (Asterisk2) has the SIP Provider that will do the actual call to the customer.

Step 1. Asterisk1 will do the initiate call for outbound and pass the call to Asterisk2.
code: exten => s,1,Dial(SIP/peer-to-Asterisk2/714xxxx,60,torgU(OutboundClient))
Step 2. Asterisk2 will do the actual call to customer base on the initiation from Asterisk1
code:
exten => s,1,Answer
same => n,Dial(SIP/Provider/${EXTEN})
same => n,Hangup()
Step 3. Here comes now the problem. After the Step2, the IVR of Asterisk1 plays the Prompt even if the Asterisk2 is still ringing the customer.

Kindly help me solve this problem, I did lots of process/steps but none works. I did use AMD, etc.

Here’s the dialplan/context of OutboundClient (from top).
exten => s,1,Background(silence/3)
exten => s,n,AMD()
exten => s,n,NoOp(STATUS: ${AMDSTATUS})
exten => s,n,GotoIf($[${AMDSTATUS}=HUMAN ]?humn:mach);
exten => s,n(mach),WaitForSilence(20)
exten => s,n,Goto(OutboundClient,s,1)
exten => s,n,Hangup
exten => s,n(humn),WaitForSilence(20)
exten => s,n,Goto(StartLSCheck,s,1)
exten => s,n,Hangup

If i will not use the AMD the prompt will play right away. How will i solve this? The prompt should only play if the customer answers the call.

thanks,

Wrong forum: use Asterisk Support.

Your problem is the first line on the second system. Replace it by Noop, or delete it and renumber the other lines.

Check out the A option of the Dial application :wink:

Asterisk plays the prompt because you Answer the call on your second system.

[quote]
Your problem is the first line on the second system. Replace it by Noop, or delete it and renumber the other lines.[/quote]