Dial Plan: Embedded Spaces?

Discussion in 'UK VOIP' started by (PeteCresswell), Feb 21, 2011.

  1. Is there any downside to pasting my dial plan into a SPA3102's
    "Dial Plan" field like this:

    (
    911<:mad:gw0>S0 |
    1800xxxxxxx<:mad:gw0>S0 |
    1855xxxxxxx<:mad:gw0>S0 |
    1866xxxxxxx<:mad:gw0>S0 |
    1877xxxxxxx<:mad:gw0>S0 |
    1888xxxxxxx<:mad:gw0>S0 |
    <:1>800xxxxxxx<:mad:gw0>S0 |
    <:1>855xxxxxxx<:mad:gw0>S0 |
    <:1>866xxxxxxx<:mad:gw0>S0 |
    <:1>877xxxxxxx<:mad:gw0>S0 |
    <:1>888xxxxxxx<:mad:gw0>S0 |
    1xxx[2-9]xxxxxxS0 |
    <:1>[2-9]xx[2-9]xxxxxxS0|
    011[2-9]x.
    )

    Instead of this:

    (911<:mad:gw0>S0|1800xxxxxxx<:mad:gw0>S0|1855xxxxxxx<:mad:gw0>S0|1866xxxxxxx<:mad:gw0>S0|1877xxxxxxx<:mad:gw0>S0|1888xxxxxxx<:mad:gw0>S0|<:1>800xxxxxxx<:mad:gw0>S0|<:1>855xxxxxxx<:mad:gw0>S0|<:1>866xxxxxxx<:mad:gw0>S0|<:1>877xxxxxxx<:mad:gw0>S0|<:1>888xxxxxxx<:mad:gw0>S0|1xxx[2-9]xxxxxxS0|<:1>[2-9]xx[2-9]xxxxxxS0|011[2-9]x.)



    Seems like the first format is easier to read in the backup copy
    and less error-prone.
    --
    PeteCresswell
    (PeteCresswell), Feb 21, 2011
    #1
    1. Advertising

  2. (PeteCresswell)

    Graham. Guest

    "(PeteCresswell)" <> wrote in message news:p...
    > Is there any downside to pasting my dial plan into a SPA3102's
    > "Dial Plan" field like this:
    >
    > (
    > 911<:mad:gw0>S0 |
    > 1800xxxxxxx<:mad:gw0>S0 |
    > 1855xxxxxxx<:mad:gw0>S0 |
    > 1866xxxxxxx<:mad:gw0>S0 |
    > 1877xxxxxxx<:mad:gw0>S0 |
    > 1888xxxxxxx<:mad:gw0>S0 |
    > <:1>800xxxxxxx<:mad:gw0>S0 |
    > <:1>855xxxxxxx<:mad:gw0>S0 |
    > <:1>866xxxxxxx<:mad:gw0>S0 |
    > <:1>877xxxxxxx<:mad:gw0>S0 |
    > <:1>888xxxxxxx<:mad:gw0>S0 |
    > 1xxx[2-9]xxxxxxS0 |
    > <:1>[2-9]xx[2-9]xxxxxxS0|
    > 011[2-9]x.
    > )
    >
    > Instead of this:
    >
    > (911<:mad:gw0>S0|1800xxxxxxx<:mad:gw0>S0|1855xxxxxxx<:mad:gw0>S0|1866xxxxxxx<:mad:gw0>S0|1877xxxxxxx<:mad:gw0>S0|1888xxxxxxx<:mad:gw0>S0|<:1>800xxxxxxx<:mad:gw0>S0|<:1>855xxxxxxx<:mad:gw0>S0|<:1>866xxxxxxx<:mad:gw0>S0|<:1>877xxxxxxx<:mad:gw0>S0|<:1>888xxxxxxx<:mad:gw0>S0|1xxx[2-9]xxxxxxS0|<:1>[2-9]xx[2-9]xxxxxxS0|011[2-9]x.)
    >
    >
    >
    > Seems like the first format is easier to read in the backup copy
    > and less error-prone.
    > --
    > PeteCresswell


    I certainly keep variants of my dial plan stored as text documents with each functional element on a
    separate line, exactly as in your example.

    It has never occurred to me to paste them into the dialplan field without painstakingly removing CRs
    But now I have tried it I see it seems to works flawlessly despite it putting spaces where the CRs were.

    --
    Graham.

    %Profound_observation%
    Graham., Feb 21, 2011
    #2
    1. Advertising

  3. Per Graham.:
    >I certainly keep variants of my dial plan stored as text documents with each functional element on a
    >separate line, exactly as in your example.
    >
    >It has never occurred to me to paste them into the dialplan field without painstakingly removing CRs
    >But now I have tried it I see it seems to works flawlessly despite it putting spaces where the CRs were.


    I'm thinking in the context of compiler, no run-time errors....

    ....and something just silently going South at some random time.

    Couple people chime in that they've been doing it for years with
    no problem and I'll become a believer.
    --
    PeteCresswell
    (PeteCresswell), Feb 22, 2011
    #3
  4. "(PeteCresswell)" <> wrote:
    > I'm thinking in the context of compiler, no run-time errors....
    >
    > ...and something just silently going South at some random time.


    I just have a shell script:

    #!/bin/sh
    echo -n '('
    echo -n '999S0'
    echo -n '|00<:mad:gw1>'
    echo -n ')'

    (or whatever, syntax is probably wrong)

    Then just cut and paste the output into the web config form.
    (Even better, pipe the output to something that will do the 'cut' for me.
    xcb might do it)

    Theo
    Theo Markettos, Feb 22, 2011
    #4
  5. In article <gjz*>,
    Theo Markettos <> wrote:
    > #!/bin/sh
    > echo -n '('
    > echo -n '999S0'
    > echo -n '|00<:mad:gw1>'
    > echo -n ')'


    Perhaps this would be slightly easier?

    #! /bin/sh
    tr -d '\n\t ' <<EOF
    (
    999S0
    |00<:mad:gw1>
    )
    EOF

    - river.
    River Tarnell, Feb 22, 2011
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jim
    Replies:
    4
    Views:
    18,618
    Leonidas Jones
    Dec 11, 2004
  2. John DH

    Dial voipcheap from dial plan

    John DH, Feb 1, 2006, in forum: UK VOIP
    Replies:
    6
    Views:
    2,642
    John DH
    Feb 1, 2006
  3. Phil

    Dial Plan Quick Dial Numbers??

    Phil, May 3, 2007, in forum: UK VOIP
    Replies:
    4
    Views:
    707
    PhilÅ
    May 4, 2007
  4. Mike Sun
    Replies:
    4
    Views:
    790
    Mike Sun
    Dec 7, 2007
  5. Marc Zirnheld

    How NOT to dial with Sipura's dial plan ?

    Marc Zirnheld, Mar 25, 2008, in forum: UK VOIP
    Replies:
    3
    Views:
    1,568
    Marc Zirnheld
    Mar 26, 2008
Loading...

Share This Page