SIP trunk with Kamailio

Hello all,
my scenario is next :

so I have Asterisk connected to a cloud, and I have a trunk towards SIP provider which I am using to make phone calls, and there is a Kamalio server with public IP which is dedicated to exchange audio with a SIP enabled audio devices. So I tried to make a trunk to place a call to a Kamailio user, and here are my outgoing settings for trunk:

host=sip.aeq.es
username=john
secret=aeq
type=peer
disallow=all
allow=ulaw&alaw
nat=yes
canreinvite=yes
qualify=yes
fromdomain=sip.aeq.es

Registration string:
john:[email protected]

I am registrating with Kamailio but when I try to place a call I get 407 Proxy Authentication Required 2 times, ok I know that the first time is normal, than I am sending INVITE with authentication:
From: “6002” sip:[email protected];tag=as01a3bdb0
To: sip:[email protected]
Contact: sip:[email protected]:5060
Call-ID: [email protected]
CSeq: 104 INVITE
User-Agent: FPBX-12.0.76.2(11.18.0)
Proxy-Authorization: Digest username=“john”, realm=“sip.aeq.es”, algorithm=MD5, uri=“sip:[email protected]”, nonce=“VnOxYVZzsDWvbrBYQdEgEPS5rYpCUUJ9”, response=“a8d8d1a525e0f7ccc7cf668450d73703”
Date: Fri, 18 Dec 2015 07:05:26 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 258
Can anybody tell me what am I doing wrong? How should I configure this trunk in order to make a call to Kamailio user? Thanks
Best regards
Dalibor