Koozali.org: home of the SME Server

Strange problem

Offline peterpan746

  • ***
  • 55
  • +0/-0
Strange problem
« on: June 18, 2008, 03:11:29 AM »
I have added a Skype trunk (via Sisky).

When I use carrier preselect it works like a charm, but when I try to use the route the nice girl on the Sisky tells me that the call has failed.

Both should pick up the same trunk and pass on the same call information or am I wrong?

Edit:

I have added a FWD trunk as well and getting the same.  I'm thinking it must be the dial plan which looks like this:

Code: [Select]
        exten => _0XXXXXXXXXXXXX,1,agi(selintra,OutRoute,International)
exten => _2XXXXX,1,agi(selintra,OutRoute,USA)


Any help will be appreciated
« Last Edit: June 18, 2008, 03:37:19 AM by peterpan746 »

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Strange problem
« Reply #1 on: June 18, 2008, 07:46:21 AM »
Hard to tell because you don't tell me what you are actually dialling.  However, 2 comments...

The first dial plan ( International) looks intrinsically wrong because it is looking for dialled numbers of EXACTLY 13 digits beginning with a zero.  International numbers, by their very nature, are variable in length.  A better plan would be _0XXXXXXXXX.  (Notice the dot - denotes variable length, this plan looks for numbers of 10 digits or more).

Same goes for your second dial plan which looks like a local plan (only 7 digits).  I don't know of any VoIP carrier who will accept 7 digits. Local plans are usually only good for analogue or digital phone lines.


 

Offline peterpan746

  • ***
  • 55
  • +0/-0
Re: Strange problem
« Reply #2 on: June 18, 2008, 08:21:59 AM »
The first dialplan is for Skype you have to dial 00 before the number so the number is 00- 1-888-2719672, but I will do what you showed me.

The second dialplan is for FWD and although my account is 6 digits there are a company here with a five digit.

Right now I don't have any PSTN lines connected, so I'm trying everything over the VoIP trunks.

The thing that confuses me is why if I use carrier preselect am I able to reach my destination, but with using routes I get errors.

Also I want to clarify if what I'm thinking the actual way is that the dial plan works:

_2XXXXX  means that any number starting with a 2 will use this trunk and can dial a 5 digit number

Is this correct?

I'm a legacy PBX technician doing the crossover therefore I'm very thankfull for your help.

Offline peterpan746

  • ***
  • 55
  • +0/-0
Re: Strange problem
« Reply #3 on: June 18, 2008, 08:33:28 AM »
Ok I think I have figured it out, and I have to start thinking differently on how the VoIP systems work.  With a legacy system you always dial a digit for a "Line" but not so with the IP systems.  That is where I went wrong.  I was seeing the digit after the "_ " as my "line" digit.

On FWD you must add a "*" before the number.  How will you go about this?  Create an alias, or do it in the dial plan?  I will play some and see if I can get it working.

Thank you very much for your patience.
« Last Edit: June 18, 2008, 08:39:21 AM by peterpan746 »

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Strange problem
« Reply #4 on: June 18, 2008, 10:52:11 AM »
It might help to do a bit of basic research on asterisk itself...

have a look here...

http://www.voip-info.org/wiki/index.php?page=Asterisk+Dialplan+Patterns

This will show you basic pattern matching - SAIL routes and trunks use exactly the same syntax.

Quote
With a legacy system you always dial a digit for a "Line"

Asterisk is a soft switch.  There is no shared TDM backbone and hence no need for line seize.  If you want to have your customers dial a 9 to get a "line" then just let them do it and strip the 9 before giving it to the channel.  In your trunk transformation mask simply put 9:  then you can dial 9, or not dial 9.  Doesn't matter, both will work.  This is one of the benefits of a soft switch, you can pretty much do what you want. 

Quote
On FWD you must add a "*" before the number.

I'm not familiar with FWD but I'd be surprised if they used an * as part of the dial.  I'm also unsure why you want to dial your 6 digit account number? 

If you really MUST add an * before the dial (and I don't think you do) then do it in the trunk transformation mask, by typing a colon( : ) followed by an asterisk ( * ), like this :*.

Best