Asterisk 1.8+freepbx 2.9.
Appel sortant aucun soucis,mon context perso est bien pris en compte.
Pa contre sur les appels depuis l'exterieur ca ne passe pas:

chan_sip.c:13698 check_auth: username mismatch, have <4PVS_Lines_Out>, digest has <9999>
[Jun 1 08:20:56] NOTICE[1738]: chan_sip.c:21515 handle_request_invite: Failed to authenticate device <sip:672910274@10.0.1.152>;tag=a0001b8-179

A force de modifier mes trunk et je ne sais pas pourquoi les appels externe se mettent à passer avec comme log :

[Jun 1 08:17:22] ERROR[2289]: chan_sip.c:14065 register_verify: Peer '9999' is trying to register, but not configured as host=dynamic
[Jun 1 08:17:22] NOTICE[2289]: chan_sip.c:23772 handle_request_register: Registration from '<sip:9999@10.0.1.152>' failed for '10.0.1.184:5060' - Peer is not supposed to register
[Jun 1 08:17:22] ERROR[2289]: chan_sip.c:14065 register_verify: Peer '9999' is trying to register, but not configured as host=dynamic

Par contre apres un reboot je reviens dans la 1ere situation.

Mon trunk est configuré comme ca :

Trunk Name: 4PVS_Lines_Out
Outbound Caller ID: "PVS" <xxxxxxxxxx>
CID Options:
Maximum Channels: 8

Trunk Name: 4PVS_Lines_Out
PEER Details:
username=9999
type=friend
secret=9999
host=10.0.1.184&dynamic
disallow=all
context=pvs-ipphone
canreinvite=yes
call-limit=50
allow=alaw

Incoming Settings
USER Context: 9999
USER Details:
username=9998
type=friend
secret=9999
host=10.0.1.184
disallow=all
context=from-pays-external
canreinvite=yes
call-limit=50
allow=alaw

Je sais que point de vu securité un type peer-friend serait meilleur mais pour le moment je cherche à gerer mes appels entrant et friend-friend m'enleve des contrainte.

Merci de votre aide