Phones can log in, but cant call

Hello, I’ve managed to edit the sip.conf so that my phones can log in. But i am un sure as to how i edit this in the extensions.conf. Would anyone be able to give me the code if i provided the sip.conf details?

You can post your sip.conf here and we’ll try to help you.

You can read the post “Call failed: 404 Not Found”, maybe you will find the answer.

[phone2]
type=friend
regexten=1850
username=phone2
secret=test
host=dynamic
dtmfmode=rfc2833 ; Choices are inband, rfc2833, or info
mailbox=1000 ; Mailbox for message waiting indicator
context=incoming
callerid=“Phone 2” <1850>

[phone1]
type=friend
regexten=1234 ; When they register, create extension 1234
callerid=“Nick Edwards” <5678>
host=dynamic ; This device needs to register
username=phone1
secret=test
;disallow=all
allow=gsm ; GSM consumes far less bandwidth than ulaw
allow=ulaw
allow=alaw
context=incoming
mailbox=1234@default,1233@default ; Subscribe to status of multiple mailboxes

I’m not sure what i should have in extensions.conf

You should have in extensions.conf a context named incoming (the same one you declared in sip.conf (context=incoming)). So your extensions.conf should have:

[incoming]

exten => 1234,1,Dial(SIP/phone1)
exten => 1850,1,Dial(SIP/phone2)

The numbers 1234 and 1850 are from sip.conf declarations (regexten=1234 and regexten=1850).

I think you should also put in sip.conf, for phone2:

allow=gsm
allow=ulaw
allow=alaw