Asterisk to Asterisk communication

30 views
Skip to first unread message

ramudu

unread,
May 10, 2007, 10:53:00 AM5/10/07
to VoIP Discussion
Hi,

I'm working on a VoIP project and am new to Asterisk. I'm wondering if
it is possible for two Asterisk machines to communicate with each
other - in the sense, have VoIP communication between two machines
with Asterisk. Is there any special setup required for this?

Thanks!

- Sri

Gid Green

unread,
May 11, 2007, 3:29:28 PM5/11/07
to VoIP Discussion
Hello Sri,

Asterisk communication is pretty easy to get rolling.
I'll give you some examples. Say you have a local Asterisk box and a
remote Asterisk box.
And you want to place a call to the remote asterisk box from the
local.

On the local machine change your extensions.conf add the following to
your dialplan
exten => s,n,Dial(IAX2/username:password@remoteipaddress)

On the remote box edit iax.conf to something similar to this:
[username]
type = friend
host = dynamic
context = test
username = username
password = password
disallow = all ; Only allow codecs specified below, ordered by
preference
allow = gsm ; Allow the GSM codec. (Uses less bandwidth than most
others)
allow = ulaw ; Allow the ULAW codec. (Uses alot more bandwidth, but
nicer voice quality)

Note that the context specified above dumps the user into that context
of your extensions.conf. So here is an example extensions.conf
[test]
exten => s,1,Answer
exten => s,n,Playback(all-your-base)
exten => s,n,Playback(vm-goodbye)
exten => s,n,Hangup

Hope this helps. Reply if you need more help.

Reply all
Reply to author
Forward
0 new messages