Legacy Dev Forum Posts

 View Only

Sign Up

Number plans and Outbound Routes need more time to be created

  • 1.  Number plans and Outbound Routes need more time to be created

    Posted 06-05-2025 18:17

    igkouv | 2020-06-15 07:27:57 UTC | #1

    Hello,

    I am trying to automate the construction of a site with its number plans and outbound routes. Although I can do it, I must wait ( around 2 seconds ) between the creation of the site and the creation of a number plan. So the steps are something like this:

    • Create site
    • Wait 2 seconds (Thread.sleep(2000))
    • Create Number Plan
    • Create Outbound Route

    I want to ask if the time I have to wait is mandatory or if I am doing something wrong with my implementation.


    tim.smith | 2020-06-15 19:39:06 UTC | #2

    igkouv, post:1, topic:8015
    I must wait ( around 2 seconds ) between the creation of the site and the creation of a number plan

    What has brought you to this conclusion?


    igkouv | 2020-06-16 09:22:09 UTC | #3

    I have tried many things including restructure of the code etc but the only way to make it work is to wait 2 seconds.


    system | 2020-07-17 09:22:09 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 8015