How to Create Channel Type for IAX2 in Asterisk
Asterisk is open source software which converts a computer into a communication server. Asterisk supports IP PBX systems, VOIP gateways and conference servers. IAX2 protocol is used by the Asterisk VOIP PBX (private branch exchange) and FreeSwitch Softswitch. IAX2 is also known as RFC 5456. IAX2 uses a single UDP port 4569. IAX2 protocol connects Asterisk servers together. A channel is a connection which brings in a call to the Asterisk PBX. A channel may be a connection to a land line or an Internet phone call. There are various channel types in Asterisk: Agent, Console, H.323 and IAX and IAX2. IAX and IAX2 are the Inter-Asterisk Exchange protocol.
Instructions
-
-
1
Open your IAX configuration file “iax.conf” with a notebook. This file includes the Asterisk configuration information, and you can use the configuration setting to create and manage new IAX protocol channels.
-
2
Allow channels via allow or disallow statements:
disallow=all
allow=ulaw
allow=gsm
allow=ilbc
This will allow three channels and disallow the others. -
-
3
Set the language for the channels:
Language=en -
4
Send all messages to the user by setting the mailboxdetail to yes:
Mailboxdetail=yes -
5
Configure Asterisk to conduct numerous actions when a peer registers to your server through defining the context:
regcontext=registered-phones -
6
Create new IAX channel through code:
[guest]
type=user
context=incoming
callerid="Incoming IAX Guest"You have set up a guest channel which allows you to accept anonymous IAX calls.
-
1
References
- Photo Credit George Doyle/Stockbyte/Getty Images