Skip to content

how to generate REGISTER Challege response? #8

@liangguohao66

Description

@liangguohao66

when I try to send REG to Freeswitch, got 401 Challege as below. How to generate a response, please?

SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.12:5060;branch=z9hG4bK-p985iy;rport=5060
From: "fake" sip:fake@192.168.1.12;tag=as2e95fad1
To: sip:1004@192.168.1.171:5060;line=kutixubf;tag=6F5pBm4y1NSjK
Call-ID: fqyh1k@fake
CSeq: 0 REGISTER
User-Agent: FreeSWITCH-mod_sofia/1.10.6-release+git20210325T131609Z1ff9d0a60e~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
WWW-Authenticate: Digest realm="192.168.1.12", nonce="07c7027a-db52-413c-92e0-1c0bb8e14ca2", algorithm=MD5, qop="auth"
Content-Length: 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions