# Can not connect with sip client

**URL:** <https://wazo-platform.discourse.group/t/can-not-connect-with-sip-client/1197>\
**Category:** Installation/Configuration\
**Created:** [January 29, 2023, 12:54pm UTC](https://wazo-platform.discourse.group/t/can-not-connect-with-sip-client/1197 "2023-01-29T12:54:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsl400](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@dsl400](https://wazo-platform.discourse.group/u/dsl400)\
**Post date:** [January 29, 2023, 12:54pm UTC](https://wazo-platform.discourse.group/t/can-not-connect-with-sip-client/1197/1 "2023-01-29T12:54:10Z")

</div>

This is my first attempt at using wazo platform and I have no prior experience on other related projects.

After fresh install on self hosted debian buster I followed the steps in the sparrow-build quick-start tuttorial [Quick start | Sparrow Builds](https://sparrow.b5.pm/docs/quick-start) and created a user but I can not connect with any sip client.

I tried Linphone from linux, MicroSip from windows, Zoiper from android and sipsak, see the log below

```auto
sipsak -U -s sip:agent1@10.1.1.162 --password secret1234 --auth-username=agent1
request:
REGISTER sip:10.1.1.162 SIP/2.0
Authorization: Digest username="agent1", uri="sip:10.1.1.162", algorithm=MD5, realm="asterisk", opaque="3ccfa39545d2fb59", nonce="1674999743/a1a8f5a5a7ad3b6caf38896cc5a38e43", qop=auth, nc=00000001, cnonce="3ed1b2df", response="b204b3f6bdebbf478908ca69ef198d99"
Via: SIP/2.0/UDP 127.0.1.1:57558;branch=z9hG4bK.15d83164;rport;alias
From: sip:agent1@10.1.1.162;tag=5eeb83e0
To: sip:agent1@10.1.1.162
Call-ID: 1592493024@127.0.1.1
CSeq: 2 REGISTER
Content-Length: 0
Max-Forwards: 70
User-Agent: sipsak 0.9.7
Expires: 15
Contact: sip:agent1@127.0.1.1:57558

response:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 127.0.1.1:57558;rport=50400;received=10.1.1.154;branch=z9hG4bK.15d83164;alias
Call-ID: 1592493024@127.0.1.1
From: <sip:agent1@10.1.1.162>;tag=5eeb83e0
To: <sip:agent1@10.1.1.162>;tag=z9hG4bK.15d83164
CSeq: 2 REGISTER
WWW-Authenticate: Digest realm="asterisk",nonce="1674999743/a1a8f5a5a7ad3b6caf38896cc5a38e43",opaque="0d3bd68948fc7011",algorithm=MD5,qop="auth"
Server: Wazo PBX
Content-Length: 0

error: authorization failed
       request already contains (Proxy-) Authorization, but received 40[1|7], see above

```

---

<div class="post-metadata">

**Author:** ![quintana](https://yyz2.discourse-cdn.com/free1/user_avatar/wazo-platform.discourse.group/quintana/32/916_2.png) [@quintana](https://wazo-platform.discourse.group/u/quintana)\
**Post date:** [January 31, 2023, 11:23pm UTC](https://wazo-platform.discourse.group/t/can-not-connect-with-sip-client/1197/2 "2023-01-31T23:23:58Z")

</div>

Hello,

Looks like you user is not configured correctly. You need to use your line username and password in your softphone.

Sylvain

---

<div class="post-metadata">

**Author:** ![dsl400](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@dsl400](https://wazo-platform.discourse.group/u/dsl400)\
**Post date:** [February 1, 2023, 5:55pm UTC](https://wazo-platform.discourse.group/t/can-not-connect-with-sip-client/1197/3 "2023-02-01T17:55:06Z")

</div>

where are the users stored ?  
`/etc/asterisk/sip.conf` and `/etc/asterisk/sip.d/01-wazo.conf` are empty even after the user is created

![image](https://global.discourse-cdn.com/free1/uploads/wazo_platform/original/1X/7be7c30560189d4003f943d2e4458672a4350e38.png)

```auto
dsl400@VoipBuster:~$ sudo cat /etc/asterisk/sip.conf
; This file is part of the Wazo packaging and should not be modified.
; Add files to the sip.d directory if you wish to modify your sip.conf
#include sip.d/*.conf
dsl400@VoipBuster:~$ 

dsl400@VoipBuster:~$ sudo cat /etc/asterisk/sip.d/01-wazo.conf 
; autogenerated from wazo-confgend
#exec /usr/bin/wazo-confgen asterisk/sip.conf

dsl400@VoipBuster:~$ 

```

---

<div class="post-metadata">

**Author:** ![quintana](https://yyz2.discourse-cdn.com/free1/user_avatar/wazo-platform.discourse.group/quintana/32/916_2.png) [@quintana](https://wazo-platform.discourse.group/u/quintana)\
**Post date:** [February 1, 2023, 11:52pm UTC](https://wazo-platform.discourse.group/t/can-not-connect-with-sip-client/1197/4 "2023-02-01T23:52:37Z")

</div>

The sip.conf is autogen by wazo-confgend. Just execute the command to have the output.

---

<div class="post-metadata">

**Author:** ![dsl400](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@dsl400](https://wazo-platform.discourse.group/u/dsl400)\
**Post date:** [February 8, 2023, 6:59pm UTC](https://wazo-platform.discourse.group/t/can-not-connect-with-sip-client/1197/5 "2023-02-08T18:59:36Z")

</div>

pjsip show endpoints lists 3 endpoints however agent1 and agent2 are not present on this list.

and the password for the listed endpoints are different from what I used when creating the users.

a “hello world” guide would help a lot of people !!!

---

<div class="post-metadata">

**Author:** ![quintana](https://yyz2.discourse-cdn.com/free1/user_avatar/wazo-platform.discourse.group/quintana/32/916_2.png) [@quintana](https://wazo-platform.discourse.group/u/quintana)\
**Post date:** [February 9, 2023, 9:43pm UTC](https://wazo-platform.discourse.group/t/can-not-connect-with-sip-client/1197/6 "2023-02-09T21:43:42Z")

</div>

The sip username and password are generated, this is not the same as the user. Check the line of your user and you will find the same information. A user can have multiple lines.

---

<div class="post-metadata">

**Author:** ![quintana](https://yyz2.discourse-cdn.com/free1/user_avatar/wazo-platform.discourse.group/quintana/32/916_2.png) [@quintana](https://wazo-platform.discourse.group/u/quintana)\
**Post date:** [February 9, 2023, 9:45pm UTC](https://wazo-platform.discourse.group/t/can-not-connect-with-sip-client/1197/7 "2023-02-09T21:45:36Z")

</div>

I checked the guide you have been used and this information is described.

> To use this user with a SIP telephone, you can go to the `🔁 line` menu, edit your user’s line and retriver the auto-generated `Username` and the `Password`.

---

<div class="post-metadata">

**Author:** ![dsl400](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@dsl400](https://wazo-platform.discourse.group/u/dsl400)\
**Post date:** [February 10, 2023, 8:10am UTC](https://wazo-platform.discourse.group/t/can-not-connect-with-sip-client/1197/8 "2023-02-10T08:10:41Z")

</div>

yep, you are 100% right!  
it somehow slipped.  
Thank you very much for taking time to point that out!
