CVP randomly functions

Hi,
I am experiencing a strange problem in a CVP (VXML server standalone model) setup. The setup consists of a gateway (used both as PSTN and VXML gateway), a VXML server, a TTS server and an ASR server. Call scenario: When a customer calls, he will hear a welcome prompt (through TTS server) and will be asked to spell the called party's name and surname (ASR integration). Afterwards he will be transferred to the corresponding DN.
To test the TTS integration works fine, I created a simple call flow (that is attached) and originate several calls that ingress the gateway from the FXO port. The correct dial peer is matched and the customhelloworld1 script gets called. There comes the problem: The caller sometimes hears the welcome prompt and sometimes not. When I check the activity logs of the VXML server I see that it works randomly. (It sometimes executes the "digits_01" element and sometimes not. (logs are attached)
To make sure that the problem is not caused by the TTS server, I used a local audio file as the source of the prompt but get the same result.
I used two different routers with no change in the result.
I have also attached the running config of the gw.
Has anybody had such a problem? Where may the problem be?
Thanks in advance,
Levent

Hi David,
Thanks for your attention.
Today I used a new router with only basic voip and routing configuration on it and CVP + TTS worked properly. Some routing configuration may have caused the issue on the first two routers. (They had similar routing configs)
Levent

Similar Messages

  • Query regarding random function

    I am doing a random function this is what i hv done
    static Random svcRand;
    a=svcRand.nextInt();
    its working perfectly but every time a random number is generated its a huge number......How can I keep it within a limit say between 1 and 100 always

    showstopper wrote:
    I am doing a random function this is what i hv done
    static Random svcRand;
    a=svcRand.nextInt(); This code would generate a NullPointerException, but I guess you initialize this somewhere.
    >
    its working perfectly but every time a random number is generated its a huge number......How can I keep it within a limit say between 1 and 100 alwaysThere are two ways
    1. Easy: a = svcRand.nextInt(100) + 1; // number between 1 and 100
    2. More general:
    double start = ...;
    double span = ...;
    double val = svcRand.nextDouble() * span + start;

  • Memory game random function

    Hello,
    I made a memory game with a tutorial. My knowledge of AS3 is not that good so I have to following question.
    There is a function like Math.Random to random generate number and put them on stage. I made a memory game and the cards are on the same place every time I play the "movie".
    I want them to shuffle every time I restart the game. How can I write a good random function in AS3?
    Thank you.
    Joep van Dongen

    So you still cant open my files?
    I can post code:
    Fla file = Memory.fla
    DocumentClass = MemoryGame
    This is MemoryGame.as :
    package
        import flash.display.MovieClip;
        import flash.events.MouseEvent;
        import Card;
        import Computer;
        import Muis;
        import Radio;
        import Iphone;
        import Beamer;
        import Platenspeler;
        public class MemoryGame extends MovieClip
            private var _card:Card;
            private var _computer:Computer;
            private var _muis:Muis;
            private var _radio:Radio;
            private var _iphone:Iphone;
            private var _beamer:Beamer;
            private var _platenspeler:Platenspeler;
            private var _cardX:Number;
            private var _cardY:Number;
            private var _firstCard:*;
            private var _totalMatches:Number;
            private var _currentMatches:Number;
            public function MemoryGame()
                _totalMatches = 6;
                _currentMatches = 0;
                createCards();
            private function createCards():void
                _cardX = 45;
                _cardY = 31;
                for(var i:Number = 0; i < 2; i++)
                _card = new Card();
                addChild(_card);
                _computer = new Computer();
                _card.setType(_computer);
                _card.x = _cardX;
                _card.y = _cardY;
                _cardX += _card.width + 50;
                _card.addEventListener(MouseEvent.CLICK, checkCards);
                for(var j:Number = 0; j < 2; j++)
                _card = new Card();
                addChild(_card);
                _muis = new Muis();
                _card.setType(_muis);
                _card.x = _cardX;
                _card.y = _cardY;
                _cardX += _card.width + 50;
                _card.addEventListener(MouseEvent.CLICK, checkCards);
                _cardX = 45;
                _cardY += _card.height + 50;
                for(var k:Number = 0; k < 2; k++)
                _card = new Card();
                addChild(_card);
                _radio = new Radio();
                _card.setType(_radio);
                _card.x = _cardX;
                _card.y = _cardY;
                _cardX += _card.width + 50;
                _card.addEventListener(MouseEvent.CLICK, checkCards);
                for(var l:Number = 0; l < 2; l++)
                _card = new Card();
                addChild(_card);
                _iphone = new Iphone();
                _card.setType(_iphone);
                _card.x = _cardX;
                _card.y = _cardY;
                _cardX += _card.width + 50;
                _card.addEventListener(MouseEvent.CLICK, checkCards);
                _cardX = 45;
                _cardY += _card.height + 50;
                for(var m:Number = 0; m < 2; m++)
                    _card = new Card();
                    addChild(_card);
                    _beamer = new Beamer();
                    _card.setType(_beamer);
                    _card.x = _cardX;
                    _card.y = _cardY;
                    _cardX += _card.width + 50;
                    _card.addEventListener(MouseEvent.CLICK, checkCards);
                for(var n:Number = 0; n < 2; n++)
                    _card = new Card();
                    addChild(_card);
                    _platenspeler = new Platenspeler();
                    _card.setType(_platenspeler);
                    _card.x = _cardX;
                    _card.y = _cardY;
                    _cardX += _card.width + 50;
                    _card.addEventListener(MouseEvent.CLICK, checkCards);
            private function checkCards(event:MouseEvent):void
                event.currentTarget.removeEventListener(MouseEvent.CLICK, checkCards);
                if(_firstCard == undefined)
                    _firstCard = event.currentTarget;
                else if(String(_firstCard._type) == String(event.currentTarget._type))
                    _firstCard = undefined;
                    _currentMatches ++;
                    if(_currentMatches >= _totalMatches)
                else
                    _firstCard.gotoAndPlay("flipBack");
                    event.currentTarget.gotoAndPlay("flipBack");
                    _firstCard.addEventListener(MouseEvent.CLICK, checkCards);
                    event.currentTarget.addEventListener(MouseEvent.CLICK, checkCards);
                    _firstCard = undefined;
    This is the Card.as:
    package
        import flash.display.MovieClip;
        import flash.events.MouseEvent;
        public class Card extends MovieClip
            public var _type:*;
            public function Card()
                this.buttonMode = true;
                this.addEventListener(MouseEvent.CLICK, onClick);
            private function onClick(event:MouseEvent):void
                if(this.currentFrame == 1)
                this.play();
            public function setType(type:*):void
                _type = type;
                loader_mc.addChild(_type);
    This is the how its put on screen:
    So you can see its quiet easy to do this memory game ;-)
    I'm really desperate right now because I was really happy how far I got with this game:-)
    But now I know my AS3 isnt that good at all.

  • "Enhanced" random function

    I have a slideshow with 25 pics using random(25) function.
    How can I randomize the order so that one image won't be shown
    again until all the images are shown once?

    Create a list of the cast member names. Use the random
    function to pick a number between 1 and the number of items in the
    list. Use that cast member, and delete the name from the list.
    Repeat until there's nothing left in the list.

  • Distribution Type in Numbers generated by Random function

    Hello,
    I am using the built-in Random() function in TestStand for generating random numbers with seed value of 0.
    I was wondering about it's distribution. Does the built-in function use Normal or Uniform distribution?
    Thanks

    Uniform.

  • Random Function

    Hi All!
    I am making a software which require Random numbers in the Text Field. Is facality available in Oracle Forms 6i for Random numbers.
    If yes then How?
    Help me....

    Hi,
    I used this package for generate a limited random number for a simple poker game.
    Next time use Google, I found it with it not in forum :)
    bye
    PACKAGE BODY PKG_RANDOM IS
    /* Linear congruent random number generator */
    m constant number:=100000000; /* initial conditions */
    m1 constant number:=10000; /* (for best results) */
    b constant number:=31415821; /* */
    a number; /* seed */
    the_date date; /* */
    days number; /* for generating initial seed */
    secs number; /* */
    /*-------------------------- mult ---------------------------*/
    /* Private utility function */
    function mult(p in number, q in number) return number is
    p1 number;
    p0 number;
    q1 number;
    q0 number;
    begin
    p1:=trunc(p/m1);
    p0:=mod(p,m1);
    q1:=trunc(q/m1);
    q0:=mod(q,m1);
    return(mod((mod(p0*q1+p1*q0,m1)*m1+p0*q0),m));
    end; /* mult */
    /*-------------------------- rndint --------------------------*/
    /* Returns random integer between [0, r-1] */
    function rndint (r in number) return number is
    begin
    /* generate a random number and set it to be the new seed */
    a:=mod(mult(a,b)+1,m);
    /* convert it to integer between [0, r-1] and return it */
    return(trunc((trunc(a/m1)*r)/m1));
    end; /* rndint */
    BEGIN
    the_date:=sysdate;
    days:=to_number(to_char(the_date, 'J'));
    secs:=to_number(to_char(the_date, 'SSSSS'));
    a:=days*24*3600+secs;
    END;

  • Math.random() function in Java

    My computer doesn't gives enough good random numbers with this function. Does it need any improvement?

    Define "enough good random numbers"

  • Random Function Not Truly Random!

    I have thousands of songs on my ipod nano 4g and i have the shuffle function turned on.The ipod Plays the same songs again and agian and most of the times it plays the same song,more than 3-4 times.Thats not Random at all!
    if it were random then i wouldnt be hearing the same song twice the same day!
    if anybody knows how to solve please let me know.
    Thanks!

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Gints Plivna ([email protected]):
    Check for package dbms_random <HR></BLOCKQUOTE>
    Thanks for answering the question.
    But there is another question for this is
    In which version of ORACLE does this function is.
    null

  • Question about random function

    Is there a way to get 6 random numbers that not the same? I need this because I'm making a lottery from numbers 1-20. I need to make sure I don't get duplicate numbers. Will I need to make a nested loop statement? Thx for whoever answers my questions.

    Two things:
    1) That's a very bad attitude on your prof's part, I think: "use what you know". First, on general principles, he should encourage students to learn new things to solve problems. But more importantly, part of the everyday work of being a programmer (both in industry and academia) is doing research, learning how to solve a problem, and applying what you've learned. If you can't look in the API to see what it offers and try to use what it offers, then you're no good as a programmer.
    2) My guess is that he's thinking the two loops will be:
    outer loop: until you have found 6 numbers, keep trying to find new random ones, which means
         selecting a random number and then:
    inner loop: look through the existing list of selected random numbers; if you don't find the one you
         selected above add it to the end of the list; otherwise break this loop and go on to do another
         iteration of the outer loop.But who knows what he's thinking of? I hate it when the assignment is "read the teacher's mind." You also get a lot of this on job interviews: the interviewer asks a question that actually has several perfectly good responses, but you have to choose the one he likes best, because in fact the interviewer (often the "technical guy" at the business who isn't talented enough to be too busy to interview) isn't as smart as he thinks he is and only knows part of the answer.
    Anyway, see where the above takes you. If I told you any more it would be cheating.

  • Generating unique no.'s using random function

    Hi,
    I'm trying to generate unique values for row and column say from 0-3
    and I read some where that if we use random.nextInt() we will get unique values but I'm getting repeated values.I'll appreciate if anyone can help me in this matter.Here's the code:
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    public class random{
    public static void main(String args[])
    int b[]=new int[4];
    int c[]=new int[4];
    int i;
    Date date;
    Random random;
    date=new Date();
    random = new Random(date.getTime());
    for(i=0;i<4;i++)
    digit = random.nextInt(4);
    b=digit;
    for(i=0;i<4;i++)
    digit = random.nextInt(4);
    c[i] = digit;
    for(i=0;i<4;i++)
    System.out.println("column array is" + c[i]);
    for(i=0;i<4;i++)
    System.out.println("row array is" + b[i]);
    }//end main
    }//end class
    Thanks
    Suneetha.

    here is my code for generating a random number but not a unique number. with a big enough number the possibility getting a unique is high so you may modify it to suit you need:
      private void initial_node()
        float Qxyd = -1, Qyzd = -1, Cxyd = -1, Cyzd = -1;
        long seed;
        Q_table = new float[row][col];
        seed = (long)( Math.random() * System.currentTimeMillis() * 100000000 );
        Random rand1 = new Random( seed );
        seed = (long)( Math.random() * System.currentTimeMillis() * 100000000 );
        Random rand2 = new Random( seed );
        seed = (long)( Math.random() * System.currentTimeMillis() * 100000000 );
        Random rand3 = new Random( seed );
        seed = (long)( Math.random() * System.currentTimeMillis() * 100000000 );
        Random rand4 = new Random( seed );
        for( int i = 0; i < row; i++ )
          do
            Qxyd = (float)( rand1.nextFloat() + (float)rand1.nextFloat() / 3 );
          while( Qxyd < 0.35 || Qxyd == -1 );
          Q_table[5] = Math.abs( Qxyd );
    do
    Qyzd = (float)( rand2.nextFloat() + (float)rand2.nextFloat() / 7 );
    while( Qyzd < 0.45 || Qyzd == -1 );
    Q_table[i][3] = Math.abs( Qyzd );
    do
    Cxyd = (float)( rand3.nextFloat() + (float)rand3.nextFloat() / 9 );
    while( Cxyd > 0.15 || Cxyd == -1 );
    Q_table[i][8] = Math.abs( Cxyd );
    do
    Cyzd = (float)( rand4.nextFloat() + (float)rand4.nextFloat() / 11 );
    while( Cyzd > 0.10 || Cyzd == -1 );
    Q_table[i][9] = Math.abs( Cyzd );

  • Random functions

    Ice had my phone for about half a year now, and I've been having a few issues more so lately than usual.
    My phone, when locked, will shut itself off and takes up to five minutes to restart it.
    While watching videos the phone will go to the search function
    attempting to use the home, search, and back buttons they will either be unresponsive, or activate their secondary functions.
    I thought it was a software issue, yet after updating it still refuses to work properly, what should I do?

    You should always provide the details of your Device. Anyways, back-up your important data and Soft Reset the phone by dialing *#7370# followed by 12345 (default code unless changed by you) when prompted.Be warned that this will erase all data from the phone memory and bring the phone back to its Out-of-Box state. Also note that the Soft Reset will  / will not work depending upon the model. 
    If this doesn't solve the issue then you may have to get it inspected at Nokia Care ...

  • Still random function of bluetooth mouse and keyboard

    Help please somebody!
    I really need my French keyboard to work properly, I'm totally used to my mouse, and I don't want to get wierd tendon dysfunction because I'm forced to work unergonomically.
    Is it a lost cause? Will bluetooth ever work? Should I give up and get usb equipement instead?
    I've tried the flippy thing removing the battery and rebooting. Random. (Ha, now I have the mouse but no keyboard... til it goes bye bye again). I have the Preferences window open all the time now to see what's going on. Sometimes it just goes away. Sometimes (like now) only one is "connected". Sometimes I can work happily for hours and sometimes not at all or ... random.
    The little check just came back on but the mouse & keyboard still won't connect. I also get a window a million times a day (also random) saying that bluetooth can't connect to the internet. I never wanted it to. Where did that come from?
    What can I do? As a freelance translator and zebsite editor, I NEED this equipement!
    Thank you!
    Sari
    PS Currently "No information found." in "About this Mac" in the Apple menu... But suddenly they both are working!!!!! Just now; like that; HUP now gone along with the little check in the "on" box ?????? Talk about real time commentary...

    That they both quit working at the same time suggests a Bluetooth or software problem in the computer. You'll need to borrow (or get) a wired mouse and keyboard to troubleshoot this.

  • How can i get the random values from database?

    Hi,
    i want to get random values from database.
    I try my best find no solution
    plz give solution in either sql query or java method.
    thanks in advance.

    try this:
    Give a numeric row-id to each row of database.
    say (1-100) for 100 rows
    In the program use random function to get random number between 0 and 1. this value u multiply with 100(or total number of rows) and take integer value of it . u then perform sql query to select the a row which matches randomly genarated value with row-id assigned to each row of database
    madhu

  • Random selection from a list

    I’m setting up a multiple-choice question, and I want to re-arrange the position of the button sprites representing the correct answer and distractors.
    I can randomly select one of the sprites via gDistractorLoc = random(4). The random function fails me after that.
    Is there a means of randomly selecting one of the entries from a list, e.g. gDistractorList = [1, 2, 4] or [1, 4]?
    I realize that I am perhaps complicating the process, and I'd be grateful for a simpler approach.

    I don't know if this is simpler or not, but here is a method for grabbing a random item from a list:
    gDistractorList = [1, 2, 4]
    put gDistractorList.getAt(random(gDistractorList.count))

  • Why can I not use random in my CS3 JS

    I'm working on my Thesis and building a graphic design engine in InDesign. I've done something similar in VB on Windows, but as I use a Mac now, I'm trying to work in Javascript. Still getting my footing though.
    A big thing in my engine will be using random numbers. In the CS3 scripting guide there is a script that uses the Math.Random function. I'll reproduce it at the end.
    My problem is:I've copied the script line by line and it fails silently and nothing is created. I feel like maybe the Math.random functions aren't working. If anybody has any ideas as to why this script isn't working.
    Or, more importantly, could anybody suggest anything to get random functions working at all? Even when I try to pare this script down to it's simplest two lines, I get nothing.
    Thanks!
    var myDocument = app.documents.add();
    var myPage = myDocument.pages.item(0);
    var myPageWidth = myDocument.documentPreferences.pageWidth;
    var myPageHeight = myDocument.documentPreferences.pageHeight;
    //Create 10 random page items.
    //for(var myCounter = 0; myCounter < 10; myCounter++){
    myRectangle = myPage.rectangles.add;
    myRectangle.geometricBounds = [0,0,5,5];
    myX1 = myGetRandom(0, myPageWidth, false);
    myY1 = myGetRandom(0, myPageHeight, false);
    myX2 = myGetRandom(0, myPageWidth, false);
    myY2 = myGetRandom(0, myPageHeight, false);
    myRectangle.geometricBounds=[myY1, myX1, myY2, myX2];
    // if(myGetRandom(0, 1, true)){
    // myRectangle.label = "myScriptLabel";
    //var myPageItems = myPage.pageItems.item("myScriptLabel");
    //if(myPageItems.getElements().length != 0){
    // alert("Found " + myPageItems.getElements().length + " page items with the label.");
    function myGetRandom(myStart, myEnd, myInteger){
    var myRandom;
    var myRange = myEnd - myStart;
    if(myInteger == true){myRandom = myStart = Math.round(Math.random());}
    else{myRandom = myStart + Math.floor(Math.random()*myRange); return myRandom;}
    return myRandom;

    This appears to be working fine on Windows, CS3, JS:
    var myPageHeight = app.activeDocument.documentPreferences.pageHeight;
    myY1 = myGetRandom(0, myPageHeight, false);
    alert (myY1);
    Every time I run the script it returns a different value. Perhaps someone can try the same on a Mac?
    [Edit]
    Ha ha ha! Brilliant!
    After copying the entire script it also failed. Took me a few minutes to find the cause.
    myRectangle = myPage.rectangles.add();
    -- you forgot the parentheses (it's a function).
    I saw nothing in the "Undo" after running the script, and it ought to say something like "Undo Add Rectangle". Then a simple
    alert (myRectangle)
    said it was 'native code', rather than "Object [Rectangle]'.

Maybe you are looking for