>>> Michael, I tried what you suggest and it just plays conf-pin.wav then goes right to bad-pin.wav then hangups without actually putting me in conference.before i tried this i tried using "read" instead of pagd and it accepted
the pin and put me into the conference but didn't allow me any
conference options or the ability to back out to main ivr. I am still stuck :( . my system is ivr based incoming calls only so this feature is essential. all help is appreciated.
condition destination_number ^3001$
action answer
action play_and_get_digits 4 4 3 # 2000 conf-pin.wav conf-bad-pin.wav \d+
action conference ${digits}-${domain}@default
I believe you just need to call play_and_get_digits (PAGD) prior to dropping them into the conference. If I understand the question correctly, the four-digits that the caller enters represents the "conference number" or whatever you call it. You could do this:
<action application="play_and_get_digits" data="4 4 3 # plz_enter_conf.wav invalid.wav digits \d+ 2000"/>
<action application="conference" data="${digits}-${domain}@default"/>
naturally you'll need to read up on PAGD so that you understand what all that stuff is doing. Also, be sure to specify real sound files, not the fake ones that I used. The ${digits} value is what the caller actually dials. In a production environment you'll need to handle the scenario where the caller never actually enters a valid 4-digit number.
-MC
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:
http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org