Setting up trunk

hello you all,

i am new with the whole VOIP thing but i’m a fast leaner :).

i have some issues setting up a trunk in freePBX

i used the trunk for many months with X-lite but i can’t seem to get it working on asterisk

the settings for X-lite are:

userID: +3256727391A2
Domain: ims.belgacom.be
password: XXXXXXXXXXX
Display name: BGC
Autorization name: MATCOM_3256727391

currently my outgoing settings are:

username=+3256727391A2
type=peer
secret=XXXXXXXXXX
host=ims.belgacom.be
dtmfmode=inband
fromuser=+3256727391A2
fromdomain=ims.belgacom.be
context=from-trunk
authuser=MATCOM_3256727391
allow=all

and the registry string is: +3256727391A2:[email protected]/+3256727391A2

i’ve tried everrything in the registration string but i keep ketting this error:

in the full log:

[Dec 27 18:40:00] WARNING[5243] chan_sip.c: Forbidden - wrong password on authentication for REGISTER for ‘+3256727391A2’ to ‘ims.belgacom.be

debugging:

— (10 headers 0 lines) —
Responding to challenge, registration to domain/host name ims.belgacom.be
REGISTER 11 headers, 0 lines
Reliably Transmitting (NAT) to 81.247.28.246:5060:
REGISTER sip:ims.belgacom.be SIP/2.0
Via: SIP/2.0/UDP 91.183.44.101:5060;branch=z9hG4bK5a5f5c9c
Max-Forwards: 70
From: sip:[email protected];tag=as3e206328
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 103 REGISTER
User-Agent: FPBX-2.7.0(1.6.2.11)
Authorization: Digest username="+3256727391A2", realm=“ims.belgacom.be”, algorithm=MD5, uri=“sip:ims.belgacom.be”, nonce=“b7c904efa02eb36dbf3054aea940e9703dc8f84c0508”, response=“7da8a088e5c78b21c91440171a0fa4e0”, opaque=“Lss:scsf-stdn.imsgroup0-000.pgmsm.ims.imsp.be:5060”, qop=auth, cnonce=“1f2d6a51”, nc=00000001
Expires: 120
Contact: sip:[email protected]
Content-Length: 0


<— SIP read from UDP:81.247.28.246:5060 —>
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 91.183.44.101:5060;branch=z9hG4bK5a5f5c9c
From: sip:[email protected];tag=as3e206328
To: sip:[email protected];tag=SDfegc599-4e83e514-1325007597459519
Call-ID: [email protected]
CSeq: 103 REGISTER
Date: Tue, 27 Dec 2011 17:39:57 GMT
Server: Alcatel-Lucent-HPSS/3.0.3
Content-Length: 0

i don’t know what else i can try.

did you tried removing plus (+) prefix from the registry string and trunk settings in xlite? try changing your registry string to following along with xlite settings and see if it works.

3256727391A2:[email protected]/3256727391A2

now i get this when i remove the “+” from the registry string

Retransmitting #6 (NAT) to 81.247.28.246:5060:
REGISTER sip:ims.belgacom.be SIP/2.0
Via: SIP/2.0/UDP 91.183.44.101:5060;branch=z9hG4bK5a83f05d
Max-Forwards: 70
From: sip:[email protected];tag=as02a57c4b
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 625 REGISTER
User-Agent: FPBX-2.7.0(1.6.2.11)
Expires: 120
Contact: sip:[email protected]
Content-Length: 0


REGISTER 10 headers, 0 lines
Reliably Transmitting (NAT) to 81.247.28.246:5060:
REGISTER sip:ims.belgacom.be SIP/2.0
Via: SIP/2.0/UDP 91.183.44.101:5060;branch=z9hG4bK507991b5
Max-Forwards: 70
From: sip:[email protected];tag=as38450290
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 626 REGISTER
User-Agent: FPBX-2.7.0(1.6.2.11)
Expires: 120
Contact: sip:[email protected]
Content-Length: 0


Really destroying SIP dialog ‘[email protected]’ Method: REGISTER
Retransmitting #1 (NAT) to 81.247.28.246:5060:
REGISTER sip:ims.belgacom.be SIP/2.0
Via: SIP/2.0/UDP 91.183.44.101:5060;branch=z9hG4bK507991b5
Max-Forwards: 70
From: sip:[email protected];tag=as38450290
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 626 REGISTER
User-Agent: FPBX-2.7.0(1.6.2.11)
Expires: 120
Contact: sip:[email protected]
Content-Length: 0


Retransmitting #2 (NAT) to 81.247.28.246:5060:
REGISTER sip:ims.belgacom.be SIP/2.0
Via: SIP/2.0/UDP 91.183.44.101:5060;branch=z9hG4bK507991b5
Max-Forwards: 70
From: sip:[email protected];tag=as38450290
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 626 REGISTER
User-Agent: FPBX-2.7.0(1.6.2.11)
Expires: 120
Contact: sip:[email protected]
Content-Length: 0


Reliably Transmitting (NAT) to 192.168.10.104:5062:
OPTIONS sip:[email protected]:5062 SIP/2.0
Via: SIP/2.0/UDP 192.168.10.52:5060;branch=z9hG4bK49a7d0c8;rport
Max-Forwards: 70
From: “Unknown” sip:[email protected];tag=as611eacb4
To: sip:[email protected]:5062
Contact: sip:[email protected]
Call-ID: [email protected]
CSeq: 102 OPTIONS
User-Agent: FPBX-2.7.0(1.6.2.11)
Date: Thu, 29 Dec 2011 11:39:17 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Length: 0


<— SIP read from UDP:192.168.10.104:5062 —>
SIP/2.0 200 OK
To: sip:[email protected]:5062;tag=d21a32eb3a652d8ai2
From: “Unknown” sip:[email protected];tag=as611eacb4
Call-ID: [email protected]
CSeq: 102 OPTIONS
Via: SIP/2.0/UDP 192.168.10.52:5060;branch=z9hG4bK49a7d0c8
Server: Cisco/SPA509G-7.4.3a
Content-Length: 0
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER, UPDATE
Supported: replaces

<------------->
— (10 headers 0 lines) —
eally destroying SIP dialog ‘[email protected]’ Method: OPTIONS
Retransmitting #3 (NAT) to 81.247.28.246:5060:
REGISTER sip:ims.belgacom.be SIP/2.0
Via: SIP/2.0/UDP 91.183.44.101:5060;branch=z9hG4bK507991b5
Max-Forwards: 70
From: sip:[email protected];tag=as38450290
To: sip:[email protected]
Call-ID: [email protected]
CSeq: 626 REGISTER
User-Agent: FPBX-2.7.0(1.6.2.11)
Expires: 120
Contact: sip:[email protected]
Content-Length: 0

localhost*CLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
ims.belgacom.be:5060 N 3256727391A2 120 Request Sent
1 SIP registrations.