PDA

View Full Version : Simple play message and transfer



NevisComputers
10-16-2009, 06:02 AM
What we want the AA to do is play a message then automatically direct the call to an extension (4100 in this case). This plays the message but they doesn't do much else. Could someone point me in the right direction please ? :



<?xml version="1.0" encoding="UTF-8" ?>
<vxml version="2.0">

<form id="mainform">
<block>
<prompt bargein="true">
<audio src="sorry_no_one_here.wav"/>
</prompt>
<goto nextitem="field2"/>
</block>
<object name="field2" classid="connect">
<param name="extension" value="4100"/>
</object>
</form>
</vxml>

Vahan
10-19-2009, 01:54 PM
The script looks ok, so please ensure that you have extension 4100 and an appropriate call routing rule to call it. You can try to call 4100 from one of the phones directly to see if this work for first.

NevisComputers
10-20-2009, 03:22 AM
Yeah it looks ok but like all my other VXML scripts it doesn't work!

I set up a call route so putting 4??? in front of a number does NDS1 and goes to PBX Voice mail. So 4100 dialled from any extension goes to voice mail for 100. That works fine.

However when I create a custom AA on ext 401 for the above put the script in above it reads the message then just doesn't do anything else, call doesn't drop but it doesn't go to the Voice mail either. Anyone any ideas ?

NevisComputers
10-20-2009, 03:46 AM
Ok after some forum trawling and RTFMing the issue is the <param name line.

What works is as follows :



<?xml version="1.0" encoding="UTF-8" ?>
<vxml version="2.0">

<form id="mainform">
<block>
<prompt bargein="true">
<audio src="sorry_no_one_here.wav"/>
</prompt>
<goto nextitem="field2"/>
</block>
<object name="field2" classid="dial">
<param name="pattern" value="4100"/>
</object>
</form>
</vxml>


My error was "extension" which of course didn't exist. Once switched to pattern and value it worked. Cheers!

davrays
10-21-2009, 02:45 PM
Hmm... actually the problem was not in the "<param name" line, but more on the "object" you have used for the call. For the call through the routing table only the "dial" method should be used, not the "connect"... "Connect" is for calling directly to extensions (using that is more secure when you give IVR users the freedom to enter a number, but want to restrict them from dialing anything other than the extensions numbers...

Anyway, I am happy that reading the forum helped you :) BTW, manual on this is also not bad :)

darylp
08-24-2011, 11:23 PM
This script does exactly what I want, but I want to dial an IP-PSTN number which is not possible as an external call hits on the AA and upon attempting to dial the number, the call-routing table says, hey, you're not a local extension:- NO!

Good from a security point of view, but need to dial an external mobile.
Could just have the 3 mobile numbers explicitly in the call routing table allowed from any source. That would be O.K. any hacker would only be able to dial the bosses :)

Is there a better way to do this?
Say some way to get an external call via an VXML script to be mapped to an extension, then it would go out on an unmodified Call Routing Table.