Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Unable to pass arguments to phrase for pl


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
juanbackson at gmail.com
Guest





PostPosted: Fri Nov 21, 2008 1:53 am    Post subject: [Freeswitch-users] Unable to pass arguments to phrase for pl Reply with quote

Hi,

I tried to use the Phrase API for playAndGetDigits, but it only works if the phrase does not take any input. When an input is specified, it gives error:

2008-11-21 22:42:55 [ERR] switch_ivr_play_say.c:201 switch_ivr_phrase_macro() Can't find macro ivr_prompt,welcome.
2008-11-21 22:42:55 [WARNING] switch_ivr_play_say.c:360 switch_ivr_phrase_macro() Macro [ivr_prompt,welcome] did not match any patterns

Here is the lua script:

playAndGetDigits(1 5 3 10000 # phrase:ivr_prompt,welcome:menu /mnt/app/prompt/wav/unvailable.wav 9|8|7|6|5|4|3|2|1|100|805|102|103|506|128)

Is this something wrong with my lua script?

Thanks,
JB
Back to top
anthony.minessale at g...
Guest





PostPosted: Fri Nov 21, 2008 8:50 am    Post subject: [Freeswitch-users] Unable to pass arguments to phrase for pl Reply with quote

it should be phrase:<phrase_name>:<args>



On Fri, Nov 21, 2008 at 12:50 AM, Juan Backson <juanbackson@gmail.com (juanbackson@gmail.com)> wrote:
Quote:
Hi,

I tried to use the Phrase API for playAndGetDigits, but it only works if the phrase does not take any input. When an input is specified, it gives error:

2008-11-21 22:42:55 [ERR] switch_ivr_play_say.c:201 switch_ivr_phrase_macro() Can't find macro ivr_prompt,welcome.
2008-11-21 22:42:55 [WARNING] switch_ivr_play_say.c:360 switch_ivr_phrase_macro() Macro [ivr_prompt,welcome] did not match any patterns

Here is the lua script:

playAndGetDigits(1 5 3 10000 # phrase:ivr_prompt,welcome:menu /mnt/app/prompt/wav/unvailable.wav 9|8|7|6|5|4|3|2|1|100|805|102|103|506|128)

Is this something wrong with my lua script?

Thanks,
JB



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services