VoIP - no response to OPTIONS request

Dimych
Posts: 7
Joined: Tue Feb 05, 2019 6:09 am

VoIP - no response to OPTIONS request

Postby Dimych » Tue Oct 06, 2020 1:22 pm

Hello,
the response to the option request by the SIP server does not occur
ADF 2.1 last
IDF 4.1 last
board: ESP32_LyraT V4.3

used original example: esp-adf\examples\advanced_examples\voip\main\voip_app.c

Code: Select all

I (137580) SIP: Conecting...
W (137580) SIP: CHANGE STATE FROM 0, TO 1, :func: sip_connect:1564
I (137580) SIP: [1970-01-01/00:02:08]=======WRITE 0600 bytes>>
I (137580) SIP:

REGISTER sip:100001@1.178.147.63:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.254.213:14308;branch=z9hG4bK-194282456;rport
From: <sip:100001@1.178.147.63:5060>;tag=-1605821892
To: <sip:100001@1.178.147.63:5060>
Contact: <sip:100001@192.168.254.213:14308>
Max-Forwards: 70
Call-ID: 198F3A4C15BD38DBFE2F3B61C1F7AC7BD36474B57559
CSeq: 13 REGISTER
Expires: 3600
User-Agent: ESP32 SIP/2.0
Content-Length: 0
Allow: INVITE, ACK, CANCEL, BYE, UPDATE, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri
Allow-Events: presence, kpml


I (137640) SIP: [1970-01-01/00:02:08]=======================>>
I (137680) SIP: [1970-01-01/00:02:08]<<=====READ 0569 bytes==
I (137680) SIP:

SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.254.213:14308;branch=z9hG4bK-194282456;received=192.168.254.213;rport=14308
From: <sip:100001@1.178.147.63:5060>;tag=-1605821892
To: <sip:100001@1.178.147.63:5060>;tag=as491e0a20
Call-ID: 198F3A4C15BD38DBFE2F3B61C1F7AC7BD36474B57559
CSeq: 13 REGISTER
Server: Asterisk PBX 16.2.1~dfsg-2ubuntu1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="5196b0cd"
Content-Length: 0


I (137730) SIP: [1970-01-01/00:02:08]<<======================
I (137730) SIP: Required authentication
I (137740) SIP: [1970-01-01/00:02:08]=======WRITE 0807 bytes>>
I (137740) SIP:

REGISTER sip:100001@1.178.147.63:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.254.213:14308;branch=z9hG4bK--261919386;rport
From: <sip:100001@1.178.147.63:5060>;tag=1556448924
To: <sip:100001@1.178.147.63:5060>
Contact: <sip:100001@192.168.254.213:14308>
Max-Forwards: 70
Call-ID: 198F3A4C15BD38DBFE2F3B61C1F7AC7BD36474B57559
CSeq: 14 REGISTER
Expires: 3600
User-Agent: ESP32 SIP/2.0
Content-Length: 0
Allow: INVITE, ACK, CANCEL, BYE, UPDATE, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri
Allow-Events: presence, kpml
Authorization: Digest username="100001", realm="asterisk", nonce="5196b0cd", uri="sip:1.178.147.63:5060", response="22bb56175384b8b958eea93e15a44fc4", algorithm=MD5, nc=00000001, cnonce="ea52c05b783b2107"


I (137820) SIP: [1970-01-01/00:02:08]=======================>>
I (137860) SIP: [1970-01-01/00:02:08]<<=====READ 0586 bytes==
I (137860) SIP:

OPTIONS sip:100001@192.168.254.213:14308 SIP/2.0
Via: SIP/2.0/UDP 1.178.147.63:5060;branch=z9hG4bK71ef316d;rport
Max-Forwards: 70
From: "asterisk" <sip:asterisk@1.178.147.63>;tag=as56ae06e6
To: <sip:100001@192.168.254.213:14308>
Contact: <sip:asterisk@1.178.147.63:5060>
Call-ID: 181ca49b49e8b2cc4003e77370eaaaaa@1.178.147.63:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 16.2.1~dfsg-2ubuntu1
Date: Tue, 06 Oct 2020 13:07:59 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0


I (137910) SIP: [1970-01-01/00:02:08]<<======================
E (137920) SIP: Error register device
W (137920) SIP: CHANGE STATE FROM 1, TO 0, :func: sip_register:1579
log asterisk:
Attachments
Безымянный.png
Безымянный.png (326.96 KiB) Viewed 226 times

Who is online

Users browsing this forum: No registered users and 4 guests