Hey all, I’m new to asterisk and can’t seem to get my ip phone to accept a call from a pstn did on our pri.
My sip.conf file contains:
[general]
; only allow registered users and registered users use default context
allowguest=no
context=agi
externip=[my externip]
localnet=[my gateway]/255.255.255.0
; deny access from all
;deny=0.0.0.0/0.0.0.0
disallow=all
allow=ulaw
allow=alaw
allow=g729
allow=gsm
port=5060
[2001]
type=friend
host=dynamic
permit=[my ip phone’s ip]
username=2001
secret=password
callerid="Roger 2001"
dtmfmode=inband
canreinvite=yes
;nat=yes
My phone is connect to the same lan as my asterisk server and my phone is configured on the ext 1 page to match the user id and password as specified in my sip.conf. When I press the ext1 key on my ip phone I do get dialtone.
My extensions.conf contains:
exten => _5191233,1,Answer()
exten => _5191233,n,Dial(SIP/2001,20)
exten => _5191233,n,hangup()
Where 5191233 is the DID that lands on the pri.
When I dial that DID expecting it to land on my sip phone, I get the error:
spawn extension (from-pstn, 5191233, 3) exited non-zero on dahdi/2-1
1)How do I get it to ring on my ip phone?
2)What is the command to record all incoming calls?
3)If I’m on the call with a caller and a second caller calls in, can I get to ring on ext2 on my ip-phone?
4)Can I put the first caller on hold while getting the second caller?
We are running custom software on this box and I can’t download freepbx or other software solutions that will alter the .conf files. I would like to be able to add the appropriate commands myself.
Any help would be much appreciated, thank you.