ESP32-s3,adf中的VoIP一直无法连接注册到SIP服务器。

jiafeng-1
Posts: 1
Joined: Mon Aug 29, 2022 7:49 am

ESP32-s3,adf中的VoIP一直无法连接注册到SIP服务器。

Postby jiafeng-1 » Mon Aug 29, 2022 8:14 am

具体报错信息:

Code: Select all

[Codebox=c file=Untitled.c]
REGISTER sip:1000@192.168.81.133:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.31.71:15652;branch=z9hG4bK-2125905800;rport
From: <sip:1000@192.168.81.133:5060>;tag=-838635750
To: <sip:1000@192.168.81.133:5060>
Contact: <sip:1000@192.168.31.71:15652;transport=UDP>
Max-Forwards: 70
Call-ID: A55EC9EB312AAA575F82017B9520691B44D64D7CEB1C
CSeq: 17 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 (1344818) SIP: [1970-01-01/00:22:11]=======================>>
W (1347828) SIP: Retransmit again
I (1347828) SIP: [1970-01-01/00:22:13]=======WRITE 0605 bytes>>
I (1347828) SIP: 

REGISTER sip:1000@192.168.81.133:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.31.71:15652;branch=z9hG4bK-2125905800;rport
From: <sip:1000@192.168.81.133:5060>;tag=-838635750
To: <sip:1000@192.168.81.133:5060>
Contact: <sip:1000@192.168.31.71:15652;transport=UDP>
Max-Forwards: 70
Call-ID: A55EC9EB312AAA575F82017B9520691B44D64D7CEB1C
CSeq: 17 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 (1347878) SIP: [1970-01-01/00:22:13]=======================>>
W (1350888) SIP: Retransmit again
I (1350888) SIP: [1970-01-01/00:22:15]=======WRITE 0605 bytes>>
I (1350888) SIP: 

REGISTER sip:1000@192.168.81.133:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.31.71:15652;branch=z9hG4bK-2125905800;rport
From: <sip:1000@192.168.81.133:5060>;tag=-838635750
To: <sip:1000@192.168.81.133:5060>
Contact: <sip:1000@192.168.31.71:15652;transport=UDP>
Max-Forwards: 70
Call-ID: A55EC9EB312AAA575F82017B9520691B44D64D7CEB1C
CSeq: 17 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 (1350938) SIP: [1970-01-01/00:22:15]=======================>>
W (1353948) SIP: read timeout
E (1353948) SIP: Error register device
W (1353948) SIP: CHANGE STATE FROM 1, TO 0, :func: sip_register:1689
W (1513948) SIP: CHANGE STATE FROM 0, TO 0, :func: sip_reconnect:355
I (1515148) SIP: Conecting...
W (1515148) SIP: CHANGE STATE FROM 0, TO 1, :func: sip_connect:1674
I (1515148) SIP: [1970-01-01/00:25:07]=======WRITE 0604 bytes>>
I (1515148) SIP: [/Codebox]
我做了相关的解决方案
1.关闭了防火墙
2.使用freeswitch所在服务器,ping通了esp32的板卡
3.使用eyebeam软件成功注册了。

Code: Select all

[Codebox=bash file=Untitled.bsh]freeswitch@ubuntu> sofia status profile internal reg


Registrations:
=================================================================================================
Call-ID:    	OTk4ZDRjODE0YzI2ZTVkYmZlOGI5MzRmNDVhNjAwYTE.
User:       	1001@192.168.81.133
Contact:    	"1001" <sip:1001@192.168.81.1:25504;rinstance=0a4d3c60b397156d>
Agent:      	eyeBeam release 1011d stamp 40820
Status:     	Registered(UDP)(unknown) EXP(2022-08-29 01:09:53) EXPSECS(2636)
Ping-Status:	Reachable
Ping-Time:	0.00
Host:       	ubuntu
IP:         	192.168.81.1
Port:       	25504
Auth-User:  	1001
Auth-Realm: 	192.168.81.133
MWI-Account:	1001@192.168.81.133

Total items returned: 1
[/Codebox]
请问我该怎么办?

Who is online

Users browsing this forum: No registered users and 92 guests