Viewing 6 posts - 1 through 6 (of 6 total)
  • Migrated from old forum
    Participant
    Post count: 327
    #5973 |

    Hello and Happy Christmas!

    I have a simple question I hope someone can help me explaining the hows.
    I want an IF statement for a recording when a person calls between 2 dates in this case 1/20/2012 and 2/5/2012
    it pretty much play 2 different recordings, once if you are inside the range and when you are outside the range. I can do it in SQL but i would like to avoid another query to SQL for this.

    thank you in advance for any help you can give me.

    Cesar

    Migrated from old forum
    Participant
    Post count: 327
    #5974 |

    Merry Christmas to you too santa

    I think you are looking for GotoIfTime block. This block is very similar to the GoToIf block.
    When the specified time is matched by the current time then the call will be directed to a specific context or extension or priority.

    Razor117

    Migrated from old forum
    Participant
    Post count: 327
    #5975 |

    Hello and Happy new year.

    thank you for your recomendation. I tried it:
    GotoIfTime(*,*,20-5,Jan-Feb?)
    and i tried
    GotoIfTime(0:00-23:59,Mon-Sun,20-5,Jan-Feb?)
    both always going to true port after deployment.

    it should go to false since the dates don’t apply.

    cheers,
    Cesar

    Migrated from old forum
    Participant
    Post count: 327
    #5976 |

    It seems that date periods in GotoIfTime block are not working in the same way as time periods.
    Try with this one GotoIfTime(0:00-23:59,Mon-Sun,,Jan/20-Feb/5?).

    Razor117

    Migrated from old forum
    Participant
    Post count: 327
    #5977 |

    I tried that and i get Month is not valid x2
    any ideas?
    not letting me type Jan/20 in that format in that box.

    Migrated from old forum
    Participant
    Post count: 327
    #5978 |

    Yes, you may use variables, for example create the following variables interval1= Jan/20 and interval2=Feb/5, then choose this variables from the Month drop down box.

    Razor117

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.