[Asterisk-Users] ASTCC Apllication
Karl H. Putz
karlp at fortephones.com
Fri Feb 4 07:18:00 MST 2005
-----Original Message-----
>From: asterisk-users-bounces at lists.digium.com
>[mailto:asterisk-users-bounces at lists.digium.com]On Behalf Of Daniel Eboa
>Sent: Friday, February 04, 2005 4:50 AM
>To: Asterisk Users Mailing List - Non-Commercial Discussion
>Subject: [Asterisk-Users] ASTCC Apllication
>
>
>Hello,
>I have some problem using ASTCC application. I've installed the application
and everything works
>well. I've created card numbers, routes trunk and others. When I dial the
desired number (77) in
>my case, I'm prompted to enter my card number. All goes well till I'm
prompted to enter the
>destination number. When I enter a destination number, the system says it's
not a recognized
>number and the call doesn't go through. Can any one help me out with this
issue? Is there a file
>where I can define extensions like in extensions.conf?
Daniel,
It sounds like the problem is the pattern you are trying to use in the
"routes" table. The pattern should be a REGEX for matching the dialed
number to the appropriate cost for that call. Take a look at
http://dev.mysql.com/doc/mysql/en/pattern-matching.html for more specifics
on MySQL REGEX matching.
In the US, for example, I would use the pattern: '^1312' to match for calls
to Chicago or '^01149' for calls to Germany. You can also match for city
codes or especially Cellular "exchanges" in specific countries where the
termination costs are much higher than land-line termination.
The SQL statement in astcc returns all the matched patterns with the
longest, most specific match first and uses only that first match in its
processing. So you could also use the pattern: '.' to match any dialed
number not already matched as a default BUT BE SURE to set that cost high
enough to cover yourself.
Good luck!
Karl Putz
>
>
>Thanks.
>
>Daniel.
More information about the asterisk-users
mailing list