Can't match peer by IP

Hello guys,

I switched over to 1.6 recently and I’m having a problem that’s driving me crazy.

I created a sip peer like this:

[cisco1]
type=peer
context=home
host=1.2.3.4
allow=all
insecure=invite
progressinband=yes
qualify=no
dtmfmode=rfc2833
nat=yes
canreinvite=no

[david]
type=peer
context=home
host=192.168.1.109
allow=all
insecure=invite,port
qualify=yes

and the extensions:

[default]

exten => _X.,1,Hangup

[home]

exten => _X.,1,Progress()
exten => _X.,n,Dial(DAHDI/g1/${EXTEN})
exten => _X.,n,Hangup

Then I make the call but the calls always go to default!

Why? calling from the peers I set up with IP don’t seem to match with the sip.conf…

Any help!?

Thanks!

Firstly - 1.6 is absolete. Switch to 1.8 (long term support) or 1.10 (brand new, but short term support).

Are the phones registering OK? Can you provide some console debugs?