Hélas, ce n'est peut-être pas la bonne piste. J'utilise habituellement X-Lite sur mon Asterisk local, et dans ce cas-là ça fonctionne bien avec la trace suivante : (le numéro de device est 2002 en local, et le serveur Asterisk est en 192.168.0.51)
<--- SIP read from UDP:192.168.0.33:14624 --->
REGISTER sip:192.168.0.51 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.33:14624;branch=z9hG4bK-d8754z-0d0ac3267333d23f-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:2002@192.168.0.33:14624;rinstance=4a0921ef793 4f44a>
To: <sip:2002@192.168.0.51>
From: <sip:2002@192.168.0.51>;tag=1546dc73
Call-ID: YTViYmJiOGEyYzFmN2ViMWYxY2VmMWZjN2U1OWM1MTU
CSeq: 2 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite release 4.5.4 stamp 70866
Authorization: Digest username="2002",realm="asterisk",nonce="308fbcb1", uri="sip:192.168.0.51",res
ponse="508c398c5f18ed587b511d05a69abf6b",algorithm =MD5
Content-Length: 0
<------------->
--- (13 headers 0 lines) ---
Sending to 192.168.0.33:14624 (NAT)
-- Registered SIP '2002' at 192.168.0.33:14624
Reliably Transmitting (no NAT) to 192.168.0.33:14624:
OPTIONS sip:2002@192.168.0.33:14624;rinstance=4a0921ef7934 f44a SIP/2.0
Via: SIP/2.0/UDP 192.168.0.51:5060;branch=z9hG4bK0aaf24fd
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.168.0.51>;tag=as7eb79b79
To: <sip:2002@192.168.0.33:14624;rinstance=4a0921ef793 4f44a>
Contact: <sip:Unknown@192.168.0.51:5060>
Call-ID: 18e983fb10eae50862b43667612c3054@192.168.0.51:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-2.11.0(11.5.1)
Date: Fri, 22 Nov 2013 15:34:27 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
---
<--- Transmitting (NAT) to 192.168.0.33:14624 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.33:14624;branch=z9hG4bK-d8754z-0d0ac3267333d23f-1---d8754z-;received=19
2.168.0.33;rport=14624
From: <sip:2002@192.168.0.51>;tag=1546dc73
To: <sip:2002@192.168.0.51>;tag=as54e2068f
Call-ID: YTViYmJiOGEyYzFmN2ViMWYxY2VmMWZjN2U1OWM1MTU
CSeq: 2 REGISTER
Server: FPBX-2.11.0(11.5.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Expires: 3600
Contact: <sip:2002@192.168.0.33:14624;rinstance=4a0921ef793 4f44a>;expires=3600
Date: Fri, 22 Nov 2013 15:34:27 GMT
Content-Length: 0
Par ailleurs, j'utilise couramment un autre client (CSipSimple) avec plusieurs trunks différents, mais je rencontre exactement le même exactement le même problème quand je tente le register sur cet Asterisk 37.a.b.c :-(
Par acquis de conscience, j'ai tout de même tenté de mettre 8677@37.a.b.c (au lieu de 8677) dans le User ID du client X-Lite, sans plus de succès...