hi everyone. can anyone provide me concrete examples on how to use the GotoIf application? can't figure out how to use it in my dialplan coz im having errors....thanks! : ) __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050905/73dc1d83/attachment.htm
exten => 1111,1,GotoIf($["${CALLERIDNUM}" = "2000"]?3) exten => 1111,2,GotoIf($["${CALLERIDNUM}" = "2001"]?4:5) exten => 1111,3,WaitExten(10) exten => 1111,4,WaitMusicOnHold(60) exten => 1111,5,Hangup() If the caller ID of the caller is 2000 then run WaitExten(10) if it's not 2000 and it's 2001 put the person on hold, if it's neither Hangup. Hope that helps. On Mon Sep 05, 2005 at 03:19:20AM -0700, ryan nalupa wrote:> hi everyone. can anyone provide me concrete examples on how to use the GotoIf application? can't figure out how to use it in my dialplan coz im having errors....thanks! : ) > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
http://www.voip-info.org/wiki-asterisk+cmd+gotoif On 9/5/05, ryan nalupa <ryanalupa@yahoo.com.ph> wrote:> hi everyone. can anyone provide me concrete examples on how to use the > GotoIf application? can't figure out how to use it in my dialplan coz im > having errors....thanks! : ) > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > >
On 9/5/05, ryan nalupa <ryanalupa@yahoo.com.ph> wrote:> > hi everyone. can anyone provide me concrete examples on how to use the > GotoIf application? can't figure out how to use it in my dialplan coz im > having errors....thanks! : ) >http://www.voip-info.org/tiki-index.php?page=Asterisk%20cmd%20GotoIf -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050906/536d46e5/attachment.htm