<div dir="ltr">Thanks, Michael, for prompting me to do some homework<div><br></div><div>I made some tests and the conclusions are:</div><div><br></div><div style>1. You don't need to answer the call in the dialplan before calling into httapi</div>
<div style>Both extensions below will make httapi requests to my application:</div><div style><br></div><div style><div><extension name="test1"></div><div> <condition field="destination_number" expression="^6622$"></div>
<div> <action application="httapi" data="{url=<a href="http://localhost/simver/FSHttApi/Test">http://localhost/simver/FSHttApi/Test</a>}" /></div><div> </condition></div><div>
</extension></div><div> </div><div> <extension name="test2"></div><div> <condition field="destination_number" expression="^6621$"></div><div> <action application="answer" /></div>
<div> <action application="httapi" data="{url=<a href="http://localhost/simver/FSHttApi/Test">http://localhost/simver/FSHttApi/Test</a>}" /></div><div> </condition></div><div>
</extension></div><div><br></div><div style>2. You don't need to answer the call in the httapi script</div><div style>This one looks quite strange but I think I finally understood it - I can play back sounds or 'say' something without explicitly 'answerring' the call. But the call is 'pre-answerred' only and in this state you won't be able to collect dtmf, for example. I don't know what is the exact difference between a pre-answerred and answerred call but one nice thing is that when you <hangup /> or <break /> in this state the call will be rejected and the caller will hear a 'busy' signal.</div>
<div style><br></div><div style>3. Answerring the call</div><div style>You can answer the call with </div><div style><application name="answer"/> <br></div><div style>but by default there's no permission to run the 'answer' application from httapi script so you need to enable it in httapi.conf.xml</div>
<div style>From now on the call is answerred and everything runs as usual.</div><div style><br></div><div style>Best regards</div><div style>Rafal</div><div style><br></div><div style><br></div><div><br></div></div><div style>
<br></div></div>