Koozali.org: home of the SME Server

Asterisk/Sail - Local Routing *** Noob Alert.

Offline llandry

  • ***
  • 69
  • +0/-0
    • http://www.lhrc.net
Asterisk/Sail - Local Routing *** Noob Alert.
« on: May 28, 2007, 04:19:16 AM »
Hi Folks...

First Things first.... Koodos to Selintra for a great package..

I've installed 2.1.15-443 without incident.

First... I'm new to asterisk and Sail, I've RTFMed but either don't get it, or couldn't find the info I'm looking for..

I've got Sail running with 1 Soft phone and a Cisco 7940 with 2 Lines defined.

All three can make outbound calls and receive inbound calls  on IAX to my DID provider.

I've got a single route to my provider with a crude DialPlan  ( _X. ) which accepts everything...

I'd like to be able to call the other extensions... Can someone point me to a doc, or enlighten me so that I can define a dialplan which would allow for internal call ( ie, between local extentions ) , right now dialing 5000 or 5001 or 5003 generates and "invalid" message. ( also, where do the dialplan go? one the route or the extension? )

Thanks in advance...

Again... Great contrib..


L2

Offline del

  • *
  • 765
  • +0/-0
Asterisk/Sail - Local Routing *** Noob Alert.
« Reply #1 on: May 28, 2007, 05:50:26 AM »
I don't think that you have a dial plan problem, you should be able to call ext to ext even if you don't have any trunks :D  AFAIK the dial plans are related to the trunks. Can you tell us the exact message you get when dialing a ext?

Regards,
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline hervep

  • ***
  • 70
  • +0/-0
Re: Asterisk/Sail - Local Routing *** Noob Alert.
« Reply #2 on: May 28, 2007, 08:30:08 AM »
Quote from: "llandry"
Hi Folks...

First Things first.... Koodos to Selintra for a great package..

I've installed 2.1.15-443 without incident.

First... I'm new to asterisk and Sail, I've RTFMed but either don't get it, or couldn't find the info I'm looking for..

I've got Sail running with 1 Soft phone and a Cisco 7940 with 2 Lines defined.

All three can make outbound calls and receive inbound calls  on IAX to my DID provider.

I've got a single route to my provider with a crude DialPlan  ( _X. ) which accepts everything...

I'd like to be able to call the other extensions... Can someone point me to a doc, or enlighten me so that I can define a dialplan which would allow for internal call ( ie, between local extentions ) , right now dialing 5000 or 5001 or 5003 generates and "invalid" message. ( also, where do the dialplan go? one the route or the extension? )

Thanks in advance...

Again... Great contrib..


L2


Hi llandry,

The route you defined sounds strange ... you send everything to your trunk.
The fact you cannot reach another 'internal' extension sounds logical, since all digits are sent to the outside world via your trunk.

Try modifying your 'route' dialplan using something more accurate.

Example : _0. ( Everything that begins with '0' will be sent to the trunk, all the rest remains 'internal' ).

Best,

Herve

Offline llandry

  • ***
  • 69
  • +0/-0
    • http://www.lhrc.net
Asterisk/Sail - Local Routing *** Noob Alert.
« Reply #3 on: May 28, 2007, 02:04:45 PM »
Herve,

I've change the dialplan on my route to _0. as you suggested...

Here's what I get now...

I can successfully call other internal extensions, but now can no longer get an "outside line"..

If I dial 0xxx-xxx-xxxx I get:

"We're sorry, please hang up and try again"

Thanks.... getting closer :)

Ultimately this system is going into a small office. I'd like to replicate the "dial 9 to get out" and "Dial 8 for long distance" kind of scenario that is common today with commercial switches.  I've got a basic understanding of "context" and dial plans from my readings, but since I can't directly edit the "extensions.conf" file in Sail (Not sure if editing the template is the solution here.), I'm at a lost as to where to implement the dialplan..

Anyhoo, If i can get past the first hurdle, I'll attack the rest later..


Again, Thanks in advance for all your help... It is indeed appreciated.

L2

Offline del

  • *
  • 765
  • +0/-0
Asterisk/Sail - Local Routing *** Noob Alert.
« Reply #4 on: May 28, 2007, 02:58:17 PM »
Hi,

Quote
If I dial 0xxx-xxx-xxxx I get:

"We're sorry, please hang up and try again"

 Can you give examples of local numbering , area codes etc. This will help in getting a correct dial plan. I had similar problems at first. But once I got my head around the local, national and international dialing scheme I was OK.
Quote
This is my dial plan for the US: _011X. _1NXXXXXXXXX _NXXXXXXXXX _NXXXXXX


Rgards,
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline llandry

  • ***
  • 69
  • +0/-0
    • http://www.lhrc.net
Asterisk/Sail - Local Routing *** Noob Alert.
« Reply #5 on: May 28, 2007, 04:26:55 PM »
Del,

Being in Canada, my dial scheme is the same as that of the US.

I implemented the dialplan you provided and Shazam! we're in business.

Thanks to both you and Herve for all your help...

Now... to get more acquainted with the technology... Can you recommend a good site or sites that would help me develop IVR menus, queues and Long Distance "access Codes" and auditing?  I'm no stranger to computers and programming, but this telephony stuff is all new to me.

L2

Offline del

  • *
  • 765
  • +0/-0
Asterisk/Sail - Local Routing *** Noob Alert.
« Reply #6 on: May 29, 2007, 01:19:58 PM »
Hi llandry,

I am glad it works OK :D  I have found these sites good reading for Asterisk:
http://nerdvittles.com and http://www.selintra.com/docs/cgi-bin/view a search on google will find you many more. :wink:

Regards,
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown