Friday, September 17, 2010

Asterisk Digit Manipulation

Pattern Matching
To be able to allow people dial through Asterisk and have connect the caller to an outsite resources.

Pattern Matching Syntax
Pattern with underscore (_), tells the asterisk that we're matching on a pattern. After the underscore, we can use one or more of the following characters

X = Matches any single digit from 0 to 9.
Z = Matches any single digit from 1 to 9.
N = Matches any single digit from 2 to 9.
[15-7] = Matches a single digit from the range of digits specified. In this case, the pattern
matches a single 1, 5, 6, or 7.
. (period) = Wildcard match; matches one or more characters, no matter what they are.
! (bang) = Wildcard match; matches zero or more characters, no matter what they are.

Samples
_NXXXXXX = This pattern would match any seven-digit number, as long as the first digit was two or higher. This pattern would be compatible with any North American Numbering Plan
local seven-digit number.

_1NXXNXXXXXX = This one is slightly more difficult. This would match the number 1, followed by an area code between 200 and 999, then any 7-digit number. In the NANP calling area, you
would use this pattern to match any long-distance number

_011. = This pattern matches any number that starts with 011 and has at least one
more digit. In the NANP, this indicates an international phone number.

Outbound Dialing Capabilities in Dialplan
exten => _XXX,1,SayDigits(${EXTEN}) = SayDigits() application will read back to you the three-digit extension you dialed.

${EXTEN:x} = where x is where you want the returned string to start, from left to right.
exten => _XXX,1,SayDigits(${EXTEN:1}) = the SayDigits() application would start at the second digit, and thus read back only the last two digits of the dialed extension

Thursday, April 29, 2010

Web Callback Online CDR












CDR's Page

Web Callback Customer's page











Customer's Page

Web Callback

How it works
  • Log into your account page
  • Specify your telephone number you are on.
  • Specify the number you wish to call
  • Click " click here to Place Calll".
  • The number you are calling will then ring in the usual way.
  • Your telephone will ring.
  • Answer it.
What A beauty of Web CallBack
  • Ability to use it from anywhere to anywhere
  • Cheap call rates
  • Easy to use - No require head set or additional softphone installed, no cards
  • User can manage account on line
  • Show up online telephone bill

Friday, January 22, 2010

How to Interconnect with others #2


1. Above also solution diagram that can be use by user. Some good advantages is user will be enjoyed call Inter- branch for free.
2. But when people from Company make outsite call, we will pass the call to Asterisk2billing (A2B) engine for rating and etc.
3. Then, A2B passing the call to ITSP for call termination.
4. A2B keep CDRs and administrator at each Company can view his own CDRs
5. I'll will show some GUI on what administrator and user/customer can view at A2b later

Thursday, January 21, 2010

How to Interconnect with others #1


There is a few ways you can interconnect with other system using Asterisk. In this method, since I don't have E1/FXO/FXS card at my Asterisk system. Thus I am deciding to you my existing Cisco Gateway AS5XXX to interact with Asterisk via SIP protocol.

Listed below are the major call feature has been tested by using this kind of setup.
1. Fax to Email (Using E1 DID)
2. IVR (Time Base Routing)
3. Faxing out using Hylafax

Thursday, December 24, 2009

A2Billing with Webmin

1. Get the debian package( since i am using deb)
-> dpkg --install webmin_1.500_all.deb

2. Install dependencies
-> apt-get install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl libmd5-perl

3. Once completed, try login your webmin using below URL
-> https://X.X.X.X:10000/

4. Done

Note: You need to change access port (10000) to something else, because 10000 also being use by Asterisk for RTP. That step must be done to prevent post clashing between those application

5. How to change??? edit below file
vi /etc/webmin/miniserv.conf

My g729 codec proven working

This is when my elastix IPPBX passing g729 codec to my a2billing and my a2b finally can accept it. Otherwise a2billing will provide below error

[Dec 24 10:15:50] NOTICE[2706] chan_iax2.c: Rejected connect attempt from X.X.X.X, requested/capability 0x4/0xc incompatible wit
h our capability 0xe100.


debiana2b*CLI> iax2 show channels
Channel Peer Username ID (Lo/Rem) Seq (Tx/Rx) Lag Jitter JitBuf Format
IAX2/7425593609-1355 X.X.X.X 7425593609 13557/02718 00015/00016 00040ms -0001ms 0000ms g729

Tuesday, December 22, 2009