Go Back   Wireless and Wifi Forums > News > Newsgroups > uk.telecom.voip
Register FAQ Forum Rules Members List Calendar Search Today's Posts Advertise Mark Forums Read

 
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-21-2011, 08:12 PM
(PeteCresswell)
Guest
 
Posts: n/a
Default Dial Plan: Embedded Spaces?

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

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

Instead of this:

(911<:@gw0>S0|1800xxxxxxx<:@gw0>S0|1855xxxxxxx<:@g w0>S0|1866xxxxxxx<:@gw0>S0|1877xxxxxxx<:@gw0>S0|18 88xxxxxxx<:@gw0>S0|<:1>800xxxxxxx<:@gw0>S0|<:1>855 xxxxxxx<:@gw0>S0|<:1>866xxxxxxx<:@gw0>S0|<:1>877xx xxxxx<:@gw0>S0|<:1>888xxxxxxx<:@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

Reply With Quote
  #2 (permalink)  
Old 02-21-2011, 10:15 PM
Graham.
Guest
 
Posts: n/a
Default Re: Dial Plan: Embedded Spaces?


"(PeteCresswell)" <x@y.Invalid> wrote in message news:p6l5m6hjdkkbtctjhq18lsv5n24h5bb8l8@4ax.com...
> Is there any downside to pasting my dial plan into a SPA3102's
> "Dial Plan" field like this:
>
> (
> 911<:@gw0>S0 |
> 1800xxxxxxx<:@gw0>S0 |
> 1855xxxxxxx<:@gw0>S0 |
> 1866xxxxxxx<:@gw0>S0 |
> 1877xxxxxxx<:@gw0>S0 |
> 1888xxxxxxx<:@gw0>S0 |
> <:1>800xxxxxxx<:@gw0>S0 |
> <:1>855xxxxxxx<:@gw0>S0 |
> <:1>866xxxxxxx<:@gw0>S0 |
> <:1>877xxxxxxx<:@gw0>S0 |
> <:1>888xxxxxxx<:@gw0>S0 |
> 1xxx[2-9]xxxxxxS0 |
> <:1>[2-9]xx[2-9]xxxxxxS0|
> 011[2-9]x.
> )
>
> Instead of this:
>
> (911<:@gw0>S0|1800xxxxxxx<:@gw0>S0|1855xxxxxxx<:@g w0>S0|1866xxxxxxx<:@gw0>S0|1877xxxxxxx<:@gw0>S0|18 88xxxxxxx<:@gw0>S0|<:1>800xxxxxxx<:@gw0>S0|<:1>855 xxxxxxx<:@gw0>S0|<:1>866xxxxxxx<:@gw0>S0|<:1>877xx xxxxx<:@gw0>S0|<:1>888xxxxxxx<:@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%



Reply With Quote
  #3 (permalink)  
Old 02-21-2011, 11:27 PM
(PeteCresswell)
Guest
 
Posts: n/a
Default Re: Dial Plan: Embedded Spaces?

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

Reply With Quote
  #4 (permalink)  
Old 02-22-2011, 02:04 PM
Theo Markettos
Guest
 
Posts: n/a
Default Re: Dial Plan: Embedded Spaces?

"(PeteCresswell)" <x@y.invalid> 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<:@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

Reply With Quote
  #5 (permalink)  
Old 02-22-2011, 02:24 PM
River Tarnell
Guest
 
Posts: n/a
Default Re: Dial Plan: Embedded Spaces?

In article <gjz*Dqpwt@news.chiark.greenend.org.uk>,
Theo Markettos <theom+news@chiark.greenend.org.uk> wrote:
> #!/bin/sh
> echo -n '('
> echo -n '999S0'
> echo -n '|00<:@gw1>'
> echo -n ')'


Perhaps this would be slightly easier?

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

- river.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
AT&T ends Unlimited Data on iPhone and iPad, will allow iPhone tetheringfor $20 a month. SMS alt.cellular.attws 60 06-26-2010 12:56 AM
Call for Papers with Extended Deadline of Mar. 10, 2008: The 2008International Conference on Embedded Systems and Applications (ESA'08), USA,July 2008 A. M. G. Solo comp.security.misc 0 03-05-2008 07:28 PM
Call for Papers with Extended Deadline: 2007 International Conference on Embedded Systems and Applications (ESA'07), June 25-28, 2007, USA A. M. G. Solo comp.security.misc 0 02-26-2007 08:38 PM
SPA-3000 Dial Plan with Asterisk@Home Sparks uk.telecom.voip 5 08-06-2005 01:54 PM
Re: UK Dial plan Nigel D uk.telecom.voip 1 07-21-2005 07:30 PM


All times are GMT. The time now is 03:45 PM.



Powered by vBulletin® Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 PL2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45