Koozali.org: home of the SME Server

[Announce] SAIL-2.1.11-142 Beta

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
[Announce] SAIL-2.1.11-142 Beta
« Reply #30 on: April 01, 2006, 10:32:28 PM »
Quote
These 02 numbers probably account for well over 90% of the calls.


No problem Lloyd, we'll have a look at it for you.  Sorry you've had to mess about with this mate. We know from the work we did with Stephen and Chris that these two-digit short codes are important in Aus.   We've got a maintenance/bug-fix minor release due for next week.  We'll try to get it into that for you.  :-)

Kind Regards

Selintra

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
[Announce] SAIL-2.1.11-142 Beta
« Reply #31 on: April 01, 2006, 11:46:42 PM »
ldkeen

That setup only works for the SPA3000 ... I haven't got it to work for the asterisk setup ... I've had a look at a few different plans for asterisk but I can't get any thing like that to work.

At the moment I have this setup ... prob can be simplified but it works ...
Astratel Line  Rout = "Primary Voip Out"
_0[23478]XXXXXXXX _8888XXXX _0011+ZXX.

PSTN Line ... Rout = "PSTN Rout"
_000 _13XXXX _1300XXXXXX _1800XXXXXX _190XXXXXXX _1[12]XX

There is supposed to be something similar but it doesn't work either ... would be nice though it's a pain to dial 07 or in your case 02 for local calls all the time when your used to just dialing the number without the area code.

I will keep searching though ... there has to be a way.

Regards,

Tib.

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
[Announce] SAIL-2.1.11-142 Beta
« Reply #32 on: April 01, 2006, 11:55:15 PM »
Hell again,

Here are some helpfull guides for plans

The various patterns you can enter are similar to Asterisk's definition of them:

·         X — Refers to any digit between 0 and 9

·         N — Refers to any digit between 2 and 9

·         Z — Any digit that is not zero. (E.g. 1 to 9)

·         [Various] — Match only one character that matches any of the one in the square brackets. (E.g. [02-68*#] would match 0, any number between 2 and 6 inclusive, 8, * and #. Or, another way of saying this would be 'Match * or #, or a number that isn't 1,7 or 9') –Avoid using this notation in your Trunk Dial Rule as it does not seem to work. Use this only in your Outgoing Route Dial Pattern.

·         . — Wildcard. Match any number of anything. Must match *something*.

·         | — This lets you use a '0 to dial out' (or '9' in the US) by matching anything before the line, but not sending it to the trunk.

Go here and check out some explanations etc ...

http://members.optusnet.com.au/~bsharif/asterisk/AsteriskDumbMeGuide.htm#_Trunks_and_Outbound

Regards,

Tib

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
[Announce] SAIL-2.1.11-142 Beta
« Reply #33 on: April 02, 2006, 12:46:25 AM »
ok

I tried trunk :07 as well as just 07 and route _3XXXXXXX then dial a local number ... no go

I do 0:07 and in route _0XXXXXXXX then dial local number with a 0 infront of it eg:  0337XXXXX .... XXXXX being numbers ... it works

I see salintra is looking into this ....

So close but not quite there yet ... is this a bug then?

Regards,

Tib

Offline JonB

  • *
  • 351
  • +0/-0
[Announce] SAIL-2.1.11-142 Beta
« Reply #34 on: April 02, 2006, 03:44:58 AM »
Tib,

The transform mask is working exactly as it should.

0:07 replaces the first 0 with 07.

I believe the object of the exercise is to dial an 8 digit local number without having to dial any extra digits and have the area code prepended to the number.


There are a couple of ways to do it.

Jeff needs to change the selintra agi so that if you use 02+ as the mask it prepends 02 to the dialled digits.

The other option is to create a custom app.

First you need to create a route that will use the provider you are using for your local service. In the example below I have named this route local. Make it internal and you do not need to create a dial plan.

Next create a custom app [custom-local]

Code: [Select]
exten => _NXXXXXXX,1,Goto(02${EXTEN},1)
exten => _02NXXXXXXX,1,agi(selintra,OutRoute,local)


where _NXXXXXXX is the number of digits to dial a local number,02 is the area code and local is the name of the route you set up.

Save it and it should all work. Just dial your local number.

Jon
...

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
[Announce] SAIL-2.1.11-142 Beta
« Reply #35 on: April 02, 2006, 05:09:19 AM »
JonB

That worked perfectly .... thanks.

When I was trying all the different ways I was just trying it with 0 infront for testing purposes ... that wasn't that way I wanted to call local numbers.

I was still using the full 10 digit to call even local till now.

Thanks again.

Tib.

Offline ldkeen

  • *
  • 401
  • +0/-0
[Announce] SAIL-2.1.11-142 Beta
« Reply #36 on: April 02, 2006, 05:16:27 AM »
<That worked perfectly .... thanks.>

Sounds good. I'll try it when I get home from work tonight. Thanks for the tip JonB
Lloyd

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
[Announce] SAIL-2.1.11-142 Beta
« Reply #37 on: April 02, 2006, 08:40:02 AM »
Quote
Next create a custom app [custom-local]



Respect Jon.  We'll try to fix the transform this week, but in the meantime, this is a very nice solution.  It's also a pretty cool example of how to use Routes from a custom app.  We'll also try to find time to properly document the agi.  Sam (Mr agi), is snowboarding in Switzerland at the moment, so it will have to wait until he gets back.

Kind Regards

Jeff

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
[Announce] SAIL-2.1.11-142 Beta
« Reply #38 on: April 02, 2006, 01:25:34 PM »
Fantastic package!
Experiencing a small bit of bother with Engin - unmonitored status in peers:
Name/username              Host            Dyn Nat ACL Port     Status
astratel1/88884121         210.8.40.188                5060     OK (61 ms)
koala1/71783               203.122.248.173             5060     OK (88 ms)
engin1/0282124358          202.61.12.166               5060     Unmonitored <<<----HERE
5000/5000                  192.168.0.21     D          5060     OK (151 ms)

What have I done wrong?  And does it matter?  Any assistance would be appreciated.
I am attaching below relevant portions of sip.conf

[engin1]
type=peer
host=syd.byo.engin.com.au
insecure=very
auth=md5    
qualify=no
canreinvite=no
username=0282124358
fromuser=0282124358
secret=XXXXX
disallow=all
allow=g729
allow=gsm
allow=alaw
allow=ulaw

Edited:  Found the problem,
change qualify=no to qualify=3000

Name/username              Host            Dyn Nat ACL Port     Status
engin1/0282124358          202.61.12.166               5060     OK (158 ms)

OK now.  Jeff, you may wish to pick this up in next maintenance upgrade.
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.

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
[Announce] SAIL-2.1.11-142 Beta
« Reply #39 on: April 03, 2006, 05:37:57 PM »
Hi

Regarding Astratel and Sydney area prefixes .  This transform in the astratel local trunk will handle...

 In the Local Route include a dialplan of

 _[98]XXXXXXX

 In the Astratel trunk(s)

 set the transform field to

 9:029 8:028

 That's it,  now you need only dial the 7 figure number.  

 Thanks to Chris Burnat for staying up into the wee small hours testing this with us.


Regards

Selintra

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
[Announce] SAIL-2.1.11-142 Beta
« Reply #40 on: April 04, 2006, 01:57:38 AM »
Code: [Select]
That's it, now you need only dial the 7 figure number.

The 8 figure number?
- 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.

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
[Announce] SAIL-2.1.11-142 Beta
« Reply #41 on: April 04, 2006, 04:09:51 AM »
Got myself into a couple of hitches, so I'll flag them:

1) Had allocated Trunk Preselects in the range 90 to 95, avoiding 91.  Then modified the system to dial AUS number using only the 8 digit method.  This morning, I tried to dial number 921844nn and ended up in all sorts of strife - Asterisk was dialing to my trunk #92 (Koala)...  Moved all Trunk Preselects in range 50-55, and now all is well.  

2) Just installed an SPA-841 on my SAIL box.  This phone has its own internal dialplan tailored for the US.  Resulted in some interesting moments. I could modify this dialplan for AUS conditions, but for the time being, given that Asterisk is dealing with dialplans, I have entered [*0-9]. in both extensions, and things are much better now (thank you Will!).

Question: Is there any benefit using dialplan in the Sipura when used as an extension on SAIL/Asterisk?
Thanks.
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.

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
[Announce] SAIL-2.1.11-142 Beta
« Reply #42 on: April 04, 2006, 05:56:30 AM »
Code: [Select]
Regarding Astratel and Sydney area prefixes . This transform in the astratel local trunk will handle... In the Local Route include a dialplan of _[98]XXXXXXX
In the Astratel trunk(s) set the transform field to 9:029 8:028


Hmmm. Works like a charm except that after putting the transform into the Astratel Trunk, I cannot dial direct to another Astratel number.  Here how it goes;

dialing 88884070
-- Executing AGI("SIP/5001-ccbb", "selintra|OutRoute|ASTRATEL2") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script Executing Application: (SetCallerID) Options: (88884121)
    -- AGI Script Executing Application: (Dial) Options: (SIP/0288884070@astratel1)
    -- Called 0288884070@astratel1

Note: ASTRATEL2 is a route for astratel to astratel: _8888XXXX
 
dialing 5088884070
-- Executing AGI("SIP/5001-997a", "selintra|OutTrunk|88884121") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script Executing Application: (SetCallerID) Options: (88884121)
    -- AGI Script Executing Application: (Dial) Options: (SIP/0288884070@astratel1)
    -- Called 0288884070@astratel1

Note: Prefix 50 is the trunk preselect for Astratel
- 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.

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
[Announce] SAIL-2.1.11-142 Beta
« Reply #43 on: April 04, 2006, 07:01:00 AM »
burnat

I didn't put anything in the trunk ... This is my setup atm and works fine ...

Astratel Line Route = "Primary Voip Out"
_0[23478]XXXXXXXX _8888XXXX _0011+ZXX.

PSTN Line ... Route = "PSTN Rout"
_000 _13XXXX _1300XXXXXX _1800XXXXXX _190XXXXXXX _1[12]XX

Custom App=
[custom-local]
exten => _NXXXXXXX,1,Goto(07${EXTEN},1)
exten => _07NXXXXXXX,1,agi(selintra,OutRoute,local)

Now I can call numbers with 8 digits or 10 digits they all go no probs.

All my other settings are on default as in extentions .... 5000, 5001 etc

[edit]
I'm in QLD of course so you will have to change your to suit eg:
exten => _NXXXXXXX,1,Goto(08${EXTEN},1)
exten => _08NXXXXXXX,1,agi(selintra,OutRoute,local)
For WA, SA or NT
[Edit]

Regards,

Tib

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
[Announce] SAIL-2.1.11-142 Beta
« Reply #44 on: April 04, 2006, 11:12:19 AM »
Quote
Hmmm. Works like a charm except that after putting the transform into the Astratel Trunk, I cannot dial direct to another Astratel number.


Hi Chris,

We've been sitting in the office looking at this mate and we've come to the conclusion that we don't understand  :-?

Do you mean that the call doesn't go through or that SAIL doesn't dial it without the prefix?  Or... something different.

From the Asterisk logs it looks like the calls are completing.

Quote
Question: Is there any benefit using dialplan in the Sipura when used as an extension on SAIL/Asterisk?


Wow! That's a big question Chris.  Here's what we think...
Unless/untill we put automatic provisioning into SAIL (and we probably will at some point), we would recommend leaving the Sipura dial plans (on all their terminal devices; phones and ATA'a), set to "(*|*xx*.|x.)" which effectively means they allow anything through.   Having said that, SAIL is a very young platform and there may be cases where  the Sipura plan can compensate for a shortcoming within SAIL so it's nice to have (you could have used it to solve your Sydney "02" code problem).  However, most folk have mixed phone types (sipura and non-sipura) so it's better to have SAIL/Asterisk do the work if at all possible.  

Best

Selintra