Incoming Direct SIP Calls Fail with Authentication Error

Status
Not open for further replies.

ITWorks

Joined
Apr 7, 2007
Messages
121
Reaction score
0
3CX Phone System Version5.1.4393.0
X-Lite Softphone Version 3.0

I have configure 3CX and DNS per 3CX Support instructions, however incoming direct SIP calls fail since upgrading 3CX version unless I configure an extension ID and password in 3CX and configure the same on the remote softphone. This was not necessary prior to upgrading 3CX and is rather impractical in implementation.

[CM102001]: Authentication failed for SipReq: INVITE [email protected] tid=fb69d548f9339a49 cseq=INVITE [email protected]:17990 / 2 from(wire); Reason: Credentials don't match, check that authorization-ID and password match the ones in extension settings.

222.111.22.11 is the outside IP address of my VOIP gateway. I have tried various Source Identification settings for the gateway with no success. Should an incoming Direct SIP call be required to authenticate?

Thanks, Mark
 
Please try to set source identification rule to:
Contact: Host/Port = Custom value 222.111.22.11:17990
 
Thank you for the suggestion Archie. Yes I had tried that configuration but same results. Everything works fine as long as the outside phone is configured as an extension. Anything else fails with the authentication error. To help eliminate gateway problems I made calls within the LAN but from different subnets by dialing a SIP URI to the IP address of the 3CX server. Are incoming direct SIP URI calls working fine for everyone else? If so, I think my settings for Direct SIP calls set under General Settings are not actually taking affect and I may need to reinstall.

Mark
 
Hello Mark, I´m actually having the same problem it was working on a previous version and just upgraded to 5.1. I tried different softphones and different network configurations but no luck.

Regards
Alex
 
that is the same error message i was getting.
 
I am also having the same problem. I was looking at the DNS configuration on the support section and I think thats for outgoing direct sip calls only (correct me if I am wrong) so I left that alone. I just created a sub domain to my sbs server which re routes sip calls to my 3CX server. The calls from my softphone (SJPhone) seem to be reaching the server but I also get the authentication problem.

14:42:56.542 AuthMgr::onAuthFailure [CM102001]: Authentication failed for SipReq: INVITE [email protected] tid=0a7127700000005b48454a6d000075470000001e cseq=INVITE contact=10.113.39.112 / 2 from(wire); Reason: Credentials don't match, check that authorization-ID and password match the ones in extension settings
14:42:56.385 evt::CheckAuth::not_handled [CM500002]: Unidentified incoming call. Review INVITE and adjust source identification:
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 10.113.39.112;branch=z9hG4bK0a7127700000005b48454a6d000075470000001e;rport=54707;received=82.132.136.198
Max-Forwards: 70
Contact: [sip:10.113.39.112]
To: [sip:[email protected]]
From: "unknown"[sip:10.113.39.112];tag=1d9f19255093
Call-ID: F854D57882124080A5EA8F7A008195480x0a712770
CSeq: 2 INVITE
Proxy-Authorization: Digest username="",realm="3CXPhoneSystem",nonce="12856974174:5586ebb36031550f05dd1978f710c001",uri="sip:[email protected]",response="a447dd63f8d87bc266b925abed4befc3",algorithm=MD5
Supported: replaces, norefersub, timer
User-Agent: SJphone/1.65.377a (SJ Labs)
Content-Length: 0
 
vale said:
Proxy-Authorization: Digest username="",realm="3CXPhoneSystem",nonce="12856974174:5586ebb36031550f05dd1978f710c001",uri="sip:[email protected]",response="a447dd63f8d87bc266b925abed4befc3",algorithm=MD5

As you can see in bold selection - username is empty. In this case PBX will never authorize such INVITE. Username should be the same as your extension number.
And to be treated as incoming direct SIP call you should address it to SIP ID, not extension number.
So, if you have ext.208 - define a SIP ID for it (let say - 'vale'). After that if your invite has To: <sip:[email protected]> and sip.mydomain.co.uk is defined as your SIP Domain -- it will be accepted as Direct SIP call (without athentication at all).
 
Hmmm in my General Settings -> Direct SIP Calls I have the domain set to sip.mydomain.co.uk

On my sip phone I am typing [email protected]
The sip phone then dials and I am getting that authentication problem. How do I get my SIP ID into that username field like you mentioned? Is there something I have not done?

EDIT: I have got it working now it would seem I was typing James with a lower case j hence why it was not authenticating. Thanks for your help.
 
In extension settings under 'Other options' you will find 'SIP ID' field. It should be filled with 'James' if that extension should receive direct SIP calls addressed as [email protected].
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
111,891
Messages
589,582
Members
164,756
Latest member
maurin.roffler