Error registering to asterisk server

Status
Not open for further replies.

rsvargas

Joined
Dec 22, 2010
Messages
2
Reaction score
0
I'm trying to configure the 3CX phone to use it with an Asterisk server. But I'm receiving "Destination not found" error.

This is my profile configuration:
Code:
[Profile0]
Name=Vargas
Enabled=1
CallerID=Vargas
AuthUser=2916
AuthID=2916
AuthPass=myPassword
PBXAddr=169.254.1.200
PBXRemoteAddr=169.254.1.200
PBXVoicemail=
ServerProxy=169.254.1.200
DtmfRFC2833=1
DtmfInband=0
DtmfSipinfo=0
DtmfPayload=101
SipTransport=0
RegistrationTime=2
Codecs=PCMA;PCMU;GSM;
VideoCodecs=H.263 (ffdshow)
VideoFormats=QCIF;CIF;SQCIF;CIF4;
LocalPBX=1
RTPTransport=0
ProvisioningURL=http://
UseTunnel=0
UseProxy=0
TunnelPass=abc
TunnelRemAddr=169.254.1.200
TunnelPort=5090
PBXPort=0
STUNServer=stun.3cx.com
AutoProvisioning=0
VoicemailConfirmed=0
SoundVolume=0
CLSID={4E74C3EF-AB54-4179-A45C-1F72D847B8AC}

This is the REGISTER message sent to the server (got it using wireshark):
Code:
REGISTER sip:169.254.1.200:5060 SIP/2.0
Via: SIP/2.0/UDP 169.254.1.38:51490;branch=z9hG4bK-d8754z-ad16325069569a69-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:[email protected]:51490;rinstance=60d51e7c4b108961>
To: "Vargas"<sip:[email protected]:5060>
From: "Vargas"<sip:[email protected]:5060>;tag=8566bb15
Call-ID: ZGIwMTkyNjAwYmY5NTdjNTdiYjE3NmUwYjBjODY1NTQ.
CSeq: 1 REGISTER
Expires: 120
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE
Supported: replaces
User-Agent: 3CXPhone 5.0.14900.0
Content-Length: 0

This is the responde from the Asterisk Server:
Code:
SIP/2.0 404 Not found (unknown domain)
Via: SIP/2.0/UDP 169.254.1.38:51490;branch=z9hG4bK-d8754z-ad16325069569a69-1---d8754z-;received=169.254.1.38;rport=51490
From: "Vargas"<sip:[email protected]:5060>;tag=8566bb15
To: "Vargas"<sip:[email protected]:5060>;tag=as7f3eb55f
Call-ID: ZGIwMTkyNjAwYmY5NTdjNTdiYjE3NmUwYjBjODY1NTQ.
CSeq: 1 REGISTER
Server: My PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0

comparing with X-lite REGISTER packet:
Code:
REGISTER sip:169.254.1.200 SIP/2.0
Via: SIP/2.0/UDP 169.254.1.38:56360;branch=z9hG4bK-d8754z-6816ecbab5aed950-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:[email protected]:56360;rinstance=4af49b09ca2d791e>
To: "Vargas"<sip:[email protected]>
From: "Vargas"<sip:[email protected]>;tag=fb15bf30
Call-ID: NzYzY2Q4YmNkZmQ0NjU3ZWUyMjZmNGJkMWZjZGE2YzQ.
CSeq: 1 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite 4 release 4.0 stamp 58832
Content-Length: 0

which the server responds with:
Code:
REGISTER sip:169.254.1.200 SIP/2.0
Via: SIP/2.0/UDP 169.254.1.38:56360;branch=z9hG4bK-d8754z-6816ecbab5aed950-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:[email protected]:56360;rinstance=4af49b09ca2d791e>
To: "Vargas"<sip:[email protected]>
From: "Vargas"<sip:[email protected]>;tag=fb15bf30
Call-ID: NzYzY2Q4YmNkZmQ0NjU3ZWUyMjZmNGJkMWZjZGE2YzQ.
CSeq: 1 REGISTER
Expires: 3600
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
User-Agent: X-Lite 4 release 4.0 stamp 58832
Content-Length: 0

and a 200 OK follows...
Code:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 169.254.1.38:56360;branch=z9hG4bK-d8754z-6816ecbab5aed950-1---d8754z-;received=169.254.1.38;rport=56360
From: "Vargas"<sip:[email protected]>;tag=fb15bf30
To: "Vargas"<sip:[email protected]>;tag=as71dcd7e0
Call-ID: NzYzY2Q4YmNkZmQ0NjU3ZWUyMjZmNGJkMWZjZGE2YzQ.
CSeq: 1 REGISTER
Server: My PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Expires: 120
Contact: <sip:[email protected]:56360;rinstance=4af49b09ca2d791e>;expires=120
Date: Wed, 22 Dec 2010 14:20:56 GMT
Content-Length: 0

Seems to me that the only difference is that the 3CX register message includes the port in the "To:" and "From:" fields... Is there a way to fix this? Or is there a know workaround for the 3CX soft-phone to work with asterisk?
 
On the machine with the PBX go to Start > Run > cmd
and inside the CMD window, type ipconfig and post here what exactly it says.
 
My windows is in Portuguese, but I think everything should be in the same place, but to sum up:

My IP: 169.254.1.38
subnet mask: 255.255.255.0
gateway: 169.254.1.1

C:\Users\Vargas>ipconfig

Configuração de IP do Windows


Adaptador Ethernet Conexão de Rede Bluetooth 3:

Estado da mídia. . . . . . . . . . . . . . : mídia desconectada
Sufixo DNS específico de conexão. . . . . . :

Adaptador Ethernet Conexão local:

Sufixo DNS específico de conexão. . . . . . :
Endereço IPv4. . . . . . . . . . . . . . . : 169.254.1.38
Máscara de Sub-rede . . . . . . . . . . . . : 255.255.255.0
Gateway Padrão. . . . . . . . . . . . . . . : 169.254.1.1

Adaptador de túnel isatap.{3A486E78-41C6-45F0-BD57-E1CE772395C2}:

Estado da mídia. . . . . . . . . . . . . . : mídia desconectada
Sufixo DNS específico de conexão. . . . . . :

Adaptador de túnel Conexão Local* 2:

Sufixo DNS específico de conexão. . . . . . :
Endereço IPv6 . . . . . . . . . . . . . . . : 2001:0:4137:9e76:1c44:3dd4:44be:346c
Endereço IPv6 de link local . . . . . . . . : fe80::1c44:3dd4:44be:346c%13
Gateway Padrão. . . . . . . . . . . . . . . : ::

Adaptador de túnel isatap.{005813BE-5D3F-4621-B1E5-7CE3CF85B875}:

Estado da mídia. . . . . . . . . . . . . . : mídia desconectada
Sufixo DNS específico de conexão. . . . . . :
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
112,018
Messages
590,316
Members
164,964
Latest member
Tomski