Koozali.org: home of the SME Server

SAIL - a couple of thoughts

WillKemp

SAIL - a couple of thoughts
« Reply #30 on: May 23, 2006, 01:07:55 PM »
Oh, and something else i just discovered - since i wrote that last msg...

Transformation Mask:

The doc says:
Quote
Masks are sequentially applied from left to right.

That doesn't appear to be true. I've got two masks: 8888:8888 and 8:028 and if i dial a number starting with 8888, it adds an 02 in front of it, whether the 8888 mask is to the right or to the left of the 8:028 mask.

Also, these masks are a little bit clumsy and limited in their usefulness, i reckon. It would be nice to have masks that work like Sipura dialplans...

And... While i'm writing. Is there a way of changing the codes for keypad operations? Have you seen the web config pages for the SPA841 phone? There's a whole stack of those sorts of codes that you can customise. Something like that would be neat!

By the way, i'm not mentioning all this stuff because i'm requesting it - just observations and thoughts about things that could possibly be useful to consider.

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
SAIL - a couple of thoughts
« Reply #31 on: May 23, 2006, 01:17:24 PM »
Quote
Secondly, and more flexible, would be to have a separate menu item where you define groups of phones in something like a ring group - which could appear in the Inbound Route dropdown menu in the Trunklines config.


This may help:
TRUNK CALLING RING GROUP
It's easy to use, you just create a speed-dial number but instead of pointing it at one extension you can code as many as you like separated by whitespace - like this .... 5003 5002 5004 5006

set speedial #1 = 5001 5002
Insert speedial number in trunk Astratel
Tried with Astratel - OK, but does not go to voicemail.  Rings 21 times for caller. Plenty of time to rush from the dunny.  javascript:emoticon(';-)')
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

WillKemp

SAIL - a couple of thoughts
« Reply #32 on: May 23, 2006, 01:24:47 PM »
Quote from: "burnat"
This may help:
TRUNK CALLING RING GROUP

Yeah, it does. It's not obvious you can do that with it from the name "Speed Dial". Thanks

Not going to voicemail's a problem though - and makes it useless for me really.

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
SAIL - a couple of thoughts
« Reply #33 on: May 23, 2006, 01:30:45 PM »
Quote
Not going to voicemail's a problem though - and makes it useless for me really.

Same here, but then again, there may be a way to get it working - I did not spent much time checking it, so do not take my word for it...
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

WillKemp

SAIL - a couple of thoughts
« Reply #34 on: May 23, 2006, 01:32:40 PM »
Quote from: "burnat"
Quote
But i can't find any other references to the stats package. What is it and where can i get it?

http://mybox/stat/

That URL redirects to http://megairc.free.fr/ - which is entirely in French. Et j'entends pas bien le Français! But if that stats stuff is on that page somewhere, it's certainly not obvious to me.

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
SAIL - a couple of thoughts
« Reply #35 on: May 23, 2006, 02:08:33 PM »
Quote
That URL redirects to http://megairc.free.fr/ - which is entirely in French

if your box is 192.168.0.10  ---> http://192.168.0.10/stat/ brings you to the CDR panel if you have enabled mysql.  It does for me...
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

WillKemp

SAIL - a couple of thoughts
« Reply #36 on: May 23, 2006, 09:42:54 PM »
Quote from: "burnat"
if your box is 192.168.0.10  ---> http://192.168.0.10/stat/ brings you to the CDR panel if you have enabled mysql.

So it does! Thanks.

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
SAIL - a couple of thoughts
« Reply #37 on: May 23, 2006, 11:23:52 PM »
Hi guys,

In no particular order.  

Ring Group time-out - going in as we speak.  Should have been there already really.  We're just figuring out how it should dovetail with IVR timeouts, hunt groups (also going in) and so forth.  At the moment it will ring until the caller loses patience and hangs up!

Anyhoo, you'll have a solution shortly.  Worst interim case;  you will be able to invoke a ring group with timeout from a custom app and then force it to Vmail or into an IVR.  

Speed dial  - yup, guilty as charged;  it's a dumb name.  Watch this space.


Soft feature codes.  Agreed.  They should have been soft coded from the beginning.   We  will do it but it may be a release or two away.

Best

Selintra

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
SAIL - a couple of thoughts
« Reply #38 on: May 24, 2006, 12:54:23 AM »
Quote
I've got two masks: 8888:8888 and 8:028 and if i dial a number starting with 8888, it adds an 02 in front of it, whether the 8888 mask is to the right or to the left of the 8:028 mask.


Will,

Have a look at this...

http://selintra.com/docs/cgi-bin/view/Main/DocChapter095#Transformation_mask

In particular, look at example #3.

Now, to your example cases.

I'm not sure what the 8888:8888 is doing.  You're instructing it to replace 8888 with 8888. So... here are your 2 cases;

case #1 - 8888:8888 8:028
dial 8888xxxx
Code: [Select]
step 1 - the 8888 will be replaced by 8888 - output 8888xxxx

step 2 - the first 8 will be replaced by 028 - output 028888xxxx



case #2 - 8:028 8888:8888
dial 8888xxxx
Code: [Select]
step 1 - the first 8 will be replaced with 028 - output 028888xxxx

step 2 - 8888 will not be found at the left hand side of the string so nothing will happen - output 028888xxxx



The masks are applied from left to right but they only work on a left-hand match on the target string.  

Best

Jeff

WillKemp

SAIL - a couple of thoughts
« Reply #39 on: May 24, 2006, 01:30:22 AM »
Quote from: "selintra"

I'm not sure what the 8888:8888 is doing.  You're instructing it to replace 8888 with 8888.

I was under the misapprehension that it will find a match and then stop looking - like my Sipura phone does and like Asterisk does with extension numbers. So the 8888:8888 was to prevent it from ever getting to the 8:028. There doesn't appear to be any way of achieving that. (Hence my other suggestion, to make these transformation masks work like Sipura's dialplans).

Some NSW local numbers begin with an '8' and i want to be able to dial them without the '02' prefix - like i can on a landline phone. But Astratel's user numbers start with 8888 and i don't want an '02' to be added to the front of that. Currently, i can dial a prefix for Astratel numbers (configured in Custom Apps, because i want that prefix to start with a '*' and have 2 digits after it - which i can't do with the 2 digit Trunk Pre-select in the Trunklines config).

By the way how about allowing more than two digits in the Trunk Preselect? And how about allowing it to start with *any* digit (i.e., '*' or '#') rather than just 0-9 (and summarily stripping '*' or '#')?

Quote
case #1 - 8888:8888 8:028
dial 8888xxxx
Code: [Select]
step 1 - the 8888 will be replaced by 8888 - output 8888xxxx

step 2 - the first 8 will be replaced by 028 - output 028888xxxx



Yeah, that can't achieve what i want to do.

Will

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
SAIL - a couple of thoughts
« Reply #40 on: May 24, 2006, 03:39:48 AM »
Quote
But Astratel's user numbers start with 8888 and i don't want an '02' to be added to the front of that.


For Astratel, as a workaround, Jeff had provided:
For Sydney:
9:029 8:028 028888:8888
It works for me.

In your case, this should do it:
8:028 028888:8888
rgds. chris.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

WillKemp

SAIL - a couple of thoughts
« Reply #41 on: May 24, 2006, 06:31:26 AM »
Quote from: "burnat"
In your case, this should do it:
8:028 028888:8888

Yeah, it should, shouldn't it. I didn't think of that! It's too bizzarrely illogical to occur to me - put '02' on the front, and take it off again! ;-)

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
SAIL - a couple of thoughts
« Reply #42 on: May 24, 2006, 07:28:49 AM »
Quote
It's too bizzarrely illogical


Good, isn't it?  

It's also blindingly fast at execution time because it translates almost directly to machine code.  No bloody silly regex processing in our runtime logic that takes a lifetime to load and forever to run  ;-) .

Best

WillKemp

SAIL - a couple of thoughts
« Reply #43 on: May 24, 2006, 07:49:25 AM »
Quote from: "selintra"
It's also blindingly fast at execution time because it translates almost directly to machine code.  No bloody silly regex processing in our runtime logic that takes a lifetime to load and forever to run  ;-) .

Ah well, i like things that convert easily to machine code  mate - i can understand stuff like that! I worked as an assembler programmer back in the very early 80s, and nothing converts to machine code like assembly language! ;-)

So that's reasonable, i guess. But couldn't parsing stop when a match is found? Or does that reduce its ability to do some things?

WillKemp

SAIL - a couple of thoughts
« Reply #44 on: May 24, 2006, 11:27:14 PM »
Oh, and another thing.... (You must be getting sick of me by now! ;-) )

I think it's a bad thing that Asterisk answers incoming calls before either the extension answers or voicemail kicks in.

There are two reasons for this - 1) incoming calls from automated calling systems (e.g., an ITSP's system for verifying your DID number for use in CLID) don't work properly, as they register the call as having been answered and the announcement starts before your phone's even started ringing. And 2) it costs the caller money, without them being connected to anything.

I've tried setting VoIP Ring Delay to '0', but it won't have it, so i have to use '1', to minimise the delay. I don't understand why the default is 5 seconds, as it seems crazy to make all callers wait 5 seconds, listening to an imaginary phone ringing, for no reason.

Anyway, couldn't a value of '0' in this field in Globals disable this behaviour?