[Spce-user] Unable to register subscriber

Daniel Grotti dgrotti at sipwise.com
Sun Aug 11 11:59:24 EDT 2013


Hi,
Did the 401 reach your PBX? After 401 the PBX should send the second register with auth credentials.

Check also kamailio-proxy.log rather than lb.

Daniel


Lorenzo Mangani <lorenzo.mangani at gmail.com> wrote:

Martin,

401 is the correct answer to the first unauthenticated REGISTER - is the
UA/PBX using sm1 following with an authenticated REGISTER?
If you need anyone to help you troubleshoot a SIP session, especially the
client side, you should share the SIP session rather than logs (you should
look at the logs on the other end most likely tho)

Lorenzo Mangani

HOMER DEV TEAM
QXIP - Capture Engineering



On Sun, Aug 11, 2013 at 5:34 PM, Martin Wong <
martin.wong at binaryelements.com.au> wrote:

> Hi, I've got this weird case where a subscriber cannot subscribe to the
> SPCE server. The reply is a 401 unauthorized.
>
> I've checked all the passwords, banned IP/subscriber (which shouldn't be
> there anyway as I have disabled it). Did a ngrep-sip to see the sip
> messages but all it said was 401.
>
> The subscriber is a freeswitch PBX server with the subscriber as one of
> their outgoing trunks.
>
> The logs didn't say much so I was wondering if I can engage someone to
> direct me here. Here's something from the kamailio-lb.log
>
> Aug 12 01:22:02 besp1 /usr/sbin/kamailio[18606]: INFO: <script>: New
> request - M=REGISTER R=sip:102.28.65.116;transport=udp F=
> sip:sm1 at 102.28.65.116 T=sip:sm1 at 102.28.65.116 IP=udp:49.156.17.129:5080ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
> Aug 12 01:22:02 besp1 /usr/sbin/kamailio[18606]: INFO: <script>: Relaying
> request, du='sip:127.0.0.1:5062', fs='udp:127.0.0.1:5060' -
> R=sip:102.28.65.116;transport=udp ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
> Aug 12 01:22:02 besp1 /usr/sbin/kamailio[18615]: INFO: <script>: Reply
> from Inbound - S=100 - Trying M=REGISTER IP=udp:127.0.0.1:5062ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
> Aug 12 01:22:02 besp1 /usr/sbin/kamailio[18615]: INFO: <script>: Forcing
> outbound socket 'udp:102.28.65.116:5060' recovered from P-Out-Socket -
> R=<null> ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
> Aug 12 01:22:02 besp1 /usr/sbin/kamailio[18615]: INFO: <script>: Sending
> reply, fs='udp:102.28.65.116:5060' -
> ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
> Aug 12 01:22:02 besp1 /usr/sbin/kamailio[18616]: INFO: <script>: Reply
> from Inbound - S=401 - Unauthorized M=REGISTER IP=udp:127.0.0.1:5062ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
> Aug 12 01:22:02 besp1 /usr/sbin/kamailio[18616]: INFO: <script>: Forcing
> outbound socket 'udp:102.28.65.116:5060' recovered from P-Out-Socket -
> R=<null> ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
> Aug 12 01:22:02 besp1 /usr/sbin/kamailio[18616]: INFO: <script>: Sending
> reply, fs='udp:102.28.65.116:5060' -
> ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
> Aug 12 01:22:03 besp1 /usr/sbin/kamailio[18607]: INFO: <script>: New
> request - M=REGISTER R=sip:102.28.65.116;transport=udp F=
> sip:sm1 at 102.28.65.116 T=sip:sm1 at 102.28.65.116 IP=udp:49.156.17.129:5080ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
> Aug 12 01:22:03 besp1 /usr/sbin/kamailio[18607]: INFO: <script>: Relaying
> request, du='sip:127.0.0.1:5062', fs='udp:127.0.0.1:5060' -
> R=sip:102.28.65.116;transport=udp ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
> Aug 12 01:22:03 besp1 /usr/sbin/kamailio[18617]: INFO: <script>: Reply
> from Inbound - S=100 - Trying M=REGISTER IP=udp:127.0.0.1:5062ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
> Aug 12 01:22:03 besp1 /usr/sbin/kamailio[18617]: INFO: <script>: Forcing
> outbound socket 'udp:102.28.65.116:5060' recovered from P-Out-Socket -
> R=<null> ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
> Aug 12 01:22:03 besp1 /usr/sbin/kamailio[18617]: INFO: <script>: Sending
> reply, fs='udp:102.28.65.116:5060' -
> ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
> Aug 12 01:22:03 besp1 /usr/sbin/kamailio[18618]: INFO: <script>: Reply
> from Inbound - S=401 - Unauthorized M=REGISTER IP=udp:127.0.0.1:5062ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
> Aug 12 01:22:03 besp1 /usr/sbin/kamailio[18618]: INFO: <script>: Forcing
> outbound socket 'udp:102.28.65.116:5060' recovered from P-Out-Socket -
> R=<null> ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
> Aug 12 01:22:03 besp1 /usr/sbin/kamailio[18618]: INFO: <script>: Sending
> reply, fs='udp:102.28.65.116:5060' -
> ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
> Aug 12 01:22:05 besp1 /usr/sbin/kamailio[18608]: INFO: <script>: New
> request - M=REGISTER R=sip:102.28.65.116;transport=udp F=
> sip:sm1 at 102.28.65.116 T=sip:sm1 at 102.28.65.116 IP=udp:49.156.17.129:5080ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
> Aug 12 01:22:05 besp1 /usr/sbin/kamailio[18608]: INFO: <script>: Relaying
> request, du='sip:127.0.0.1:5062', fs='udp:127.0.0.1:5060' -
> R=sip:102.28.65.116;transport=udp ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
> Aug 12 01:22:05 besp1 /usr/sbin/kamailio[18619]: INFO: <script>: Reply
> from Inbound - S=100 - Trying M=REGISTER IP=udp:127.0.0.1:5062ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
> Aug 12 01:22:05 besp1 /usr/sbin/kamailio[18619]: INFO: <script>: Forcing
> outbound socket 'udp:102.28.65.116:5060' recovered from P-Out-Socket -
> R=<null> ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
> Aug 12 01:22:05 besp1 /usr/sbin/kamailio[18619]: INFO: <script>: Sending
> reply, fs='udp:102.28.65.116:5060' -
> ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
> Aug 12 01:22:05 besp1 /usr/sbin/kamailio[18620]: INFO: <script>: Reply
> from Inbound - S=401 - Unauthorized M=REGISTER IP=udp:127.0.0.1:5062ID=c4f9cdac-0299-11e3-a5fd-2329bc64aa54
>
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/listinfo/spce-user
>
>

_______________________________________________
Spce-user mailing list
Spce-user at lists.sipwise.com
http://lists.sipwise.com/listinfo/spce-user



More information about the Spce-user mailing list