Hello people,
I’m new to Asterisk but after reading about it for some time now, I decided to take a change and try it myself.
As far as i know the installation is completed successfully.
I entered to sip phones in sip.conf (and some others to test):
[ul]
[general]
context=default
port=5060
bindaddr=0.0.0.0
srvlookup=yes
disallaw=all
allow=ulaw
allow=alaw
nat=yes
domain=192.168.1.100
[1003]
type=friend
callerid=“mark”<1003>
port=5060
username=mark
secret=XXX
host=dynamic
mailbox=1003
nat=route
[1004]
type=friend
callerid=“Elias”<1004>
port=5060
username=elias
secret=XXX
host=dynamic
mailbox=1004
nat=route
canreinvite=no
[/ul]
That I edited the extensions.conf like this:
[ul]
[general]
static=yes
writeprotect=yes
[default]
exten => 1003,1,Ringing
exten => 1003,2,wait,2
exten => 1003,3,Dial(SIP/1003,20,t,r)
exten => 1004,1,Ringing
exten => 1004,2,wait,2
exten => 1004,1,Dial(SIP/1004,20,t,r)
exten => 1000,1,Answer
exten => 1000,2,playback(tt-monkeys)
exten => 1000,3,Hangup
exten => 1001,1,Answer
exten => 1001,2,playback(welcome)
exten => 1001,3,playback(demo-echotest)
exten => 1001,4,echo
exten => 1001,5,Hangup
[/ul]
I can dial 1000 and 1001 from both phones (1003 and 1004) and the applications like playback and echo do function. But when I try to call 1004 from 1003 (or visa versa) I see on the asterisk CLI that a connection is made but I can’t hear anything on both phones.
Can somebody point me in the right direction please?
BTW: It’s Asterisk 1.2.2 compiled on Debian Stable.