espressif / esp-adf

Espressif Audio Development Framework
Other
1.55k stars 685 forks source link

Execute the VOIP example,the client always offline in about three minutes (AUD-3699) #783

Closed CAIJUN111 closed 2 years ago

CAIJUN111 commented 2 years ago

image

100 is the phone number for ESP32lyrat. When the ESP32 program runs, the client will be online for more than three minutes, and then the server will show that the call is dropped and you can make a call, but not be called
There are two clients to call ESP32, 101 is another computer, 102 is ios app 22CallSIP
The server is miniSIPServer V39
The ESP32 model is esp32LYrat V4.3
If anyone can help me, I'd really appreciate it.

The code run record:

`ts Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0030,len:7316 load:0x40078000,len:15468 load:0x40080400,len:4472 0x40080400: _init at ??:?

entry 0x400806a0 I (27) boot: ESP-IDF v4.3.1-dirty 2nd stage bootloader I (27) boot: compile time 18:38:24 I (27) boot: chip revision: 3 I (31) boot_comm: chip revision: 3, min. bootloader chip revision: 0 I (38) qio_mode: Enabling default flash chip QIO I (43) boot.esp32: SPI Speed : 80MHz I (48) boot.esp32: SPI Mode : QIO I (52) boot.esp32: SPI Flash Size : 8MB I (57) boot: Enabling RNG early entropy source... I (62) boot: Partition Table: I (66) boot: ## Label Usage Type ST Offset Length I (73) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (80) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (88) boot: 2 factory factory app 00 00 00010000 00200000 I (95) boot: 3 flash_tone Unknown data 01 ff 00210000 0007d000 I (103) boot: End of partition table I (107) boot_comm: chip revision: 3, min. application chip revision: 0 I (114) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=51dech (335340) map I (222) esp_image: segment 1: paddr=00061e14 vaddr=3ffb0000 size=04470h ( 17520) load I (228) esp_image: segment 2: paddr=0006628c vaddr=40080000 size=09d8ch ( 40332) load I (242) esp_image: segment 3: paddr=00070020 vaddr=400d0020 size=f52e8h (1004264) map I (540) esp_image: segment 4: paddr=00165310 vaddr=40089d8c size=0c5c4h ( 50628) load I (558) esp_image: segment 5: paddr=001718dc vaddr=50000000 size=00010h ( 16) load I (569) boot: Loaded app from partition at offset 0x10000 I (570) boot: Disabling RNG early entropy source... I (581) psram: This chip is ESP32-D0WD I (581) spiram: Found 64MBit SPI RAM device I (581) spiram: SPI RAM mode: flash 80m sram 80m I (584) spiram: PSRAM initialized, cache is in low/high (2-core) mode. I (592) cpu_start: Pro cpu up. I (595) cpu_start: Starting app cpu, entry point is 0x40081814 0x40081814: call_start_cpu1 at D:/A/esp-idf-v4.3.1/components/esp_system/port/cpu_start.c:141

I (0) cpu_start: App cpu up. I (1101) spiram: SPI SRAM memory test OK I (1109) cpu_start: Pro cpu start user code I (1109) cpu_start: cpu freq: 240000000 I (1109) cpu_start: Application information: I (1112) cpu_start: Project name: cj_voip2 I (1117) cpu_start: App version: 1 I (1122) cpu_start: Compile time: Mar 11 2022 15:12:50 I (1128) cpu_start: ELF file SHA256: 1d637086b09f599f... I (1134) cpu_start: ESP-IDF: v4.3.1-dirty I (1140) heap_init: Initializing. RAM available for dynamic allocation: I (1147) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (1153) heap_init: At 3FFB7068 len 00028F98 (163 KiB): DRAM I (1159) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM I (1166) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (1172) heap_init: At 40096350 len 00009CB0 (39 KiB): IRAM I (1178) spiram: Adding pool of 4084K of external SPI memory to heap allocator I (1187) spi_flash: detected chip: gd I (1191) spi_flash: flash io: qio I (1196) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (1205) spiram: Reserving pool of 18K of internal memory for DMA/internal allocations W (1235) VOIP_EXAMPLE: [1.0] Initialize peripherals management W (1235) VOIP_EXAMPLE: [1.1] Initialize and start peripherals I (1245) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3 I (1245) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3 W (1255) VOIP_EXAMPLE: [1.2] Create and start input key service W (1275) PERIPH_TOUCH: _touch_init W (1275) VOIP_EXAMPLE: [ 1.3 ] Create display service instance W (1285) VOIP_EXAMPLE: [ 2 ] Start codec chip I (1285) gpio: GPIO[19]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3 E (1295) gpio: gpio_install_isr_service(460): GPIO isr service already installed I (1325) gpio: GPIO[21]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 I (1325) ES8388_DRIVER: init,out:02, in:00 I (1325) AUDIO_HAL: Codec mode is 3, Ctrl:1 W (1335) VOIP_EXAMPLE: [ 3 ] Initialize tone player I (1335) AUDIO_THREAD: The media_task task allocate stack on external memory I (1355) ESP_AUDIO_TASK: media_ctrl_task running...,0x3f803c04

----------------------------- ESP Audio Platform ----------------------------- | | | ESP_AUDIO-v1.7.0-63-g2b9ee8e-bec4a56-4d51bc8 | | Compile date: Feb 23 2022-02:43:28 |

I (1395) ESP_AUDIO_CTRL: Func:media_ctrl_create, Line:350, MEM Total:4413547 Bytes, Inter:293255 Bytes, Dram:255295 Bytes

I (1395) MP3_DECODER: MP3 init I (1405) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3 I (1405) I2S: DMA Malloc info, datalen=blocksize=1200, dma_buf_count=3 I (1445) I2S: APLL: Req RATE: 16000, real rate: 15999.986, BITS: 16, CLKM: 1, BCK_M: 8, MCLK: 4095996.500, SCLK: 511999.562500, diva: 1, divb: 0 I (1445) LYRAT_V4_3: I2S0, MCLK output by GPIO0 W (1445) VOIP_EXAMPLE: [ 4 ] Create Wi-Fi service instance E (1455) DISPATCHER: exe first list: 0x0 I (1455) DISPATCHER: dispatcher_event_task is running... I (1465) AUDIO_THREAD: The wifi_serv task allocate stack on external memory I (1485) wifi:wifi driver task: 3ffc9a60, prio:23, stack:6656, core=0 I (1485) system_api: Base MAC address is not set I (1485) system_api: read default base MAC address from EFUSE I (1505) wifi:wifi firmware version: 88c8747 I (1505) wifi:wifi certification version: v7.0 I (1505) wifi:config NVS flash: enabled I (1505) wifi:config nano formating: disabled I (1505) wifi:Init data frame dynamic rx buffer num: 128 I (1515) wifi:Init management frame dynamic rx buffer num: 128 I (1515) wifi:Init management short buffer num: 32 I (1525) wifi:Init static tx buffer num: 9 I (1525) wifi:Init tx cache buffer num: 32 I (1535) wifi:Init static rx buffer size: 1600 I (1535) wifi:Init static rx buffer num: 9 I (1535) wifi:Init dynamic rx buffer num: 128 I (1545) wifi_init: rx ba win: 16 I (1545) wifi_init: tcpip mbox: 32 I (1555) wifi_init: udp mbox: 64 I (1555) wifi_init: tcp mbox: 6 I (1555) wifi_init: tcp tx win: 5744 I (1565) wifi_init: tcp rx win: 5744 I (1565) wifi_init: tcp mss: 1440 I (1575) wifi_init: WiFi/LWIP prefer SPIRAM I (1575) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07 I (1745) wifi:mode : sta (44:17:93:e6:3f:fc) I (1745) wifi:enable tsf I (1755) WIFI_SERV: Connect to wifi ssid: APLD-417-2.4G, pwd: 1223334444aplid I (1765) wifi:new:<1,1>, old:<1,0>, ap:<255,255>, sta:<1,1>, prof:1 I (2355) wifi:state: init -> auth (b0) I (2375) wifi:state: auth -> assoc (0) I (2385) wifi:state: assoc -> run (10) W (2405) wifi:idx:0 (ifx:0, cc:08:fb:a8:93:55), tid:5, ssn:0, winSize:64 I (2495) wifi:connected with APLD-417-2.4G, aid = 8, channel 1, 40U, bssid = cc:08:fb:a8:93:55 I (2495) wifi:security: WPA2-PSK, phy: bgn, rssi: -31 I (2495) wifi:pm start, type: 1

W (2505) WIFI_SERV: WiFi Event cb, Unhandle event_base:WIFI_EVENT, event_id:4 I (2585) wifi:AP's beacon interval = 102400 us, DTIM period = 1 I (3235) esp_netif_handlers: sta ip: 192.168.1.108, mask: 255.255.255.0, gw: 192.168.1.1 I (3235) WIFI_SERV: Got ip:192.168.1.108 W (3235) WIFI_SERV: STATE type:2, pdata:0x0, len:0 W (3265) VOIP_EXAMPLE: PERIPH_WIFI_CONNECTED [458] W (3265) VOIP_EXAMPLE: [ 5 ] Create SIP Service I (3265) SIP: esp_sip ver : '1.0.2' Compile date: Feb 25 2022-09:31:08 I (3265) SIP: Conecting... W (3275) SIP: CHANGE STATE FROM 0, TO 1, :func: sip_connect:1674 I (3275) SIP: [1970-01-01/00:00:01]=======WRITE 0599 bytes>> I (3285) SIP:

REGISTER sip:100@192.168.1.175:5060 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.108:10357;branch=z9hG4bK--1443427831;rport From: sip:100@192.168.1.175:5060;tag=-2079786305 To: sip:100@192.168.1.175:5060 Contact: sip:100@192.168.1.108:10357;transport=UDP Max-Forwards: 70 Call-ID: E03BC920879C232E7F97763D2E268A49E693AAE6F71E CSeq: 1 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 (3335) SIP: [1970-01-01/00:00:01]=======================>> I (3625) SIP: [1970-01-01/00:00:01]<<=====READ 0533 bytes== I (3625) SIP:

SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 192.168.1.108:10357;branch=z9hG4bK--1443427831;received=192.168.1.108;rport=10357 From: sip:100@192.168.1.175:5060;tag=-2079786305 To: sip:100@192.168.1.175:5060;tag=6295d2d28d90c2aa CSeq: 1 REGISTER Call-ID: E03BC920879C232E7F97763D2E268A49E693AAE6F71E Allow: ACK,BYE,CANCEL,INFO,INVITE,MESSAGE,NOTIFY,OPTIONS,PRACK,REFER,REGISTER,SUBSCRIBE WWW-Authenticate: Digest realm="myvoipapp.com", nonce="2FD691ACC3BFA0B10107841AAF861571", algorithm=MD5, stale=true Content-Length: 0

W (3645) wifi:idx:1 (ifx:0, cc:08:fb:a8:93:55), tid:0, ssn:1, winSize:64 I (3685) SIP: [1970-01-01/00:00:01]<<====================== I (3685) SIP: Required authentication I (3695) SIP: [1970-01-01/00:00:01]=======WRITE 0831 bytes>> I (3695) SIP:

REGISTER sip:100@192.168.1.175:5060 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.108:10357;branch=z9hG4bK--1380415619;rport From: sip:100@192.168.1.175:5060;tag=1980286573 To: sip:100@192.168.1.175:5060 Contact: sip:100@192.168.1.108:10357;transport=UDP Max-Forwards: 70 Call-ID: E03BC920879C232E7F97763D2E268A49E693AAE6F71E CSeq: 2 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="100", realm="myvoipapp.com", nonce="2FD691ACC3BFA0B10107841AAF861571", uri="sip:192.168.1.175:5060", response="5854aaff195c1499ca6eb997f0916020", algorithm=MD5, nc=00000001, cnonce="f739d18aee99b8e9"

I (3775) SIP: [1970-01-01/00:00:01]=======================>> I (3785) SIP: [1970-01-01/00:00:01]<<=====READ 0532 bytes== I (3785) SIP:

SIP/2.0 200 OK Via: SIP/2.0/UDP 192.168.1.108:10357;branch=z9hG4bK--1380415619;received=192.168.1.108;rport=10357 From: sip:100@192.168.1.175:5060;tag=1980286573 To: sip:100@192.168.1.175:5060;tag=a6863224eda383e6 CSeq: 2 REGISTER Call-ID: E03BC920879C232E7F97763D2E268A49E693AAE6F71E Allow: ACK,BYE,CANCEL,INFO,INVITE,MESSAGE,NOTIFY,OPTIONS,PRACK,REFER,REGISTER,SUBSCRIBE Contact: "100"sip:100@192.168.1.108:10357;transport=UDP Server: miniSIPServer V39 (5 clients) build 20220214 Expires: 120 Content-Length: 0

I (3835) SIP: [1970-01-01/00:00:01]<<====================== I (3845) SIP: Expires = 120 W (3845) VOIP_EXAMPLE: SIP_EVENT_REGISTERED I (3855) ESP_AUDIO_CTRL: Enter play procedure, src:0 I (3855) ESP_AUDIO_CTRL: Play procedure, URL is ok, src:0 I (3865) ESP_AUDIO_CTRL: Request_CMD_Queue CMD:0, Available:5, que:0x3ffb8f40 I (3875) ESP_AUDIO_CTRL: Func:_ctrl_play, Line:771, MEM Total:4285679 Bytes, Inter:236115 Bytes, Dram:198155 Bytes

I (3885) ESP_AUDIO_TASK: It's a decoder I (3885) ESP_AUDIO_TASK: 1.CUR IN:[IN_flash],CODEC:[DEC_mp3],RESAMPLE:[16000],OUT:[OUT_iis],rate:0,ch:0,pos:0 I (3895) ESP_AUDIO_TASK: 2.Handles,IN:0x3f804e64,CODEC:0x3f804ff4,FILTER:0x3f818038,OUT:0x3f805194 I (3905) ESP_AUDIO_TASK: 2.2 Update all pipeline I (3915) ESP_AUDIO_TASK: 2.3 Linked new pipeline I (3915) AUDIO_PIPELINE: link el->rb, el:0x3f804e64, tag:IN_flash, rb:0x3f818400 I (3925) AUDIO_PIPELINE: link el->rb, el:0x3f804ff4, tag:DEC_mp3, rb:0x3f81ac40 I (3935) AUDIO_PIPELINE: link el->rb, el:0x3f818038, tag:Audio_forge, rb:0x3f81cc80 I (3945) ESP_AUDIO_TASK: 3. Previous starting... I (3945) AUDIO_ELEMENT: [IN_flash-0x3f804e64] Element task created I (3955) AUDIO_ELEMENT: [IN_flash] AEL_MSG_CMD_RESUME,state:1 I (3965) AUDIO_THREAD: The DEC_mp3 task allocate stack on external memory I (3965) TONE_PARTITION: tone partition format 0, total 21 I (3965) AUDIO_ELEMENT: [DEC_mp3-0x3f804ff4] Element task created I (3975) TONE_STREAM: Tone offset:00038c2c, Tone length:16344, pos:12

I (3985) AUDIO_ELEMENT: [DEC_mp3] AEL_MSG_CMD_RESUME,state:1 I (3995) MP3_DECODER: MP3 opened I (3995) ESP_AUDIO_TASK: Blocking play until received AEL_MSG_CMD_REPORT_MUSIC_INFO I (4005) ESP_AUDIO_TASK: Recv Element[IN_flash-0x3f804e64] MSG,type:20000,cmd:8,len:4,status:AEL_STATUS_STATE_RUNNING I (4015) ESP_AUDIO_TASK: Recv Element[DEC_mp3-0x3f804ff4] MSG,type:20000,cmd:8,len:4,status:AEL_STATUS_STATE_RUNNING I (4025) ESP_AUDIO_TASK: Received muisc info then on play I (4035) ESP_AUDIO_TASK: On event play, status:UNKNOWN, 0 I (4045) AUDIO_THREAD: The Audio_forge task allocate stack on external memory I (4045) AUDIO_ELEMENT: [Audio_forge-0x3f818038] Element task created I (4055) AUDIO_ELEMENT: [Audio_forge] AEL_MSG_CMD_RESUME,state:1 I (4065) AUDIO_FORGE: audio_forge opened I (4065) AUDIO_THREAD: The OUT_iis task allocate stack on external memory I (4065) AUDIO_FORGE: audio_forge reopen I (4075) AUDIO_ELEMENT: [OUT_iis-0x3f805194] Element task created I (4085) AUDIO_ELEMENT: [OUT_iis] AEL_MSG_CMD_RESUME,state:1 I (4095) I2S_STREAM: AUDIO_STREAM_WRITER I (4095) ESP_AUDIO_TASK: Recv Element[Audio_forge-0x3f818038] MSG,type:20000,cmd:8,len:4,status:AEL_STATUS_STATE_RUNNING I (4105) ESP_AUDIO_TASK: Recv Element[OUT_iis-0x3f805194] MSG,type:20000,cmd:8,len:4,status:AEL_STATUS_STATE_RUNNING I (4125) ESP_AUDIO_TASK: ESP_AUDIO status is AEL_STATUS_STATE_RUNNING, 0, src:0, is_stopping:0 I (4125) ESP_AUDIO_TASK: Func:media_ctrl_task, Line:984, MEM Total:4183215 Bytes, Inter:226051 Bytes, Dram:190099 Bytes

I (4145) ESP_AUDIO_CTRL: Exit play procedure, ret:0 W (4145) TONE_STREAM: No more data,ret:0 ,info.byte_pos:16344 W (4145) SIP: CHANGE STATE FROM 1, TO 2, :func: sip_register:1702 I (4155) AUDIO_ELEMENT: IN-[IN_flash] AEL_IO_DONE,0 I (4165) ESP_AUDIO_TASK: Recv Element[IN_flash-0x3f804e64] MSG,type:20000,cmd:8,len:4,status:AEL_STATUS_STATE_FINISHED I (5065) AUDIO_ELEMENT: IN-[DEC_mp3] AEL_IO_DONE,-2 I (5325) MP3_DECODER: Closed I (5325) ESP_AUDIO_TASK: Received last pos: 16344 bytes I (5325) ESP_AUDIO_TASK: Recv Element[DEC_mp3-0x3f804ff4] MSG,type:20000,cmd:8,len:4,status:AEL_STATUS_STATE_FINISHED I (5415) AUDIO_ELEMENT: IN-[Audio_forge] AEL_IO_DONE,-2 I (5415) AUDIO_FORGE: audio forge closed I (5415) ESP_AUDIO_TASK: Recv Element[Audio_forge-0x3f818038] MSG,type:20000,cmd:8,len:4,status:AEL_STATUS_STATE_FINISHED I (5585) AUDIO_ELEMENT: IN-[OUT_iis] AEL_IO_DONE,-2 I (5695) ESP_AUDIO_TASK: Received last time: 1520 ms I (5695) ESP_AUDIO_TASK: Recv Element[OUT_iis-0x3f805194] MSG,type:20000,cmd:8,len:4,status:AEL_STATUS_STATE_FINISHED I (5705) ESP_AUDIO_TASK: ESP_AUDIO status is AEL_STATUS_STATE_FINISHED, 0, src:0, is_stopping:0 I (5715) ESP_AUDIO_TASK: Func:media_ctrl_task, Line:984, MEM Total:4234155 Bytes, Inter:230303 Bytes, Dram:192343 Bytes

W (5725) ESP_AUDIO_TASK: Destroy the old pipeline, FINISHED W (5735) ESP_AUDIO_TASK: The old pipeline destroyed, FINISHED I (36165) SIP: [1970-01-01/00:00:17]=======WRITE 0829 bytes>> I (36165) SIP:

OPTIONS sip:100@192.168.1.175:5060 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.108:10357;branch=z9hG4bK--1939061242;rport From: sip:100@192.168.1.175:5060;tag=-782668978 To: sip:100@192.168.1.175:5060 Contact: sip:100@192.168.1.108:10357;transport=UDP Max-Forwards: 70 Call-ID: BA3CB33B390603D88EE868E76C4D45BD562413F0B37F CSeq: 3 OPTIONS 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="100", realm="myvoipapp.com", nonce="2FD691ACC3BFA0B10107841AAF861571", uri="sip:192.168.1.175:5060", response="b5d8d7e33204abbaba73b9fb74cff2a2", algorithm=MD5, nc=00000002, cnonce="519bf6a3c8ae5cde"

I (36235) SIP: [1970-01-01/00:00:17]=======================>> I (36245) SIP: [1970-01-01/00:00:17]<<=====READ 0404 bytes== I (36245) SIP:

SIP/2.0 200 OK Via: SIP/2.0/UDP 192.168.1.108:10357;branch=z9hG4bK--1939061242;received=192.168.1.108;rport=10357 From: sip:100@192.168.1.175:5060;tag=-782668978 To: sip:100@192.168.1.175:5060;tag=1c1522aa6ecef908 CSeq: 3 OPTIONS Call-ID: BA3CB33B390603D88EE868E76C4D45BD562413F0B37F Allow: ACK,BYE,CANCEL,INFO,INVITE,MESSAGE,NOTIFY,OPTIONS,PRACK,REFER,REGISTER,SUBSCRIBE Content-Length: 0

I (36285) SIP: [1970-01-01/00:00:17]<<====================== I (69095) SIP: [1970-01-01/00:01:04]=======WRITE 0827 bytes>> I (69095) SIP:

OPTIONS sip:100@192.168.1.175:5060 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.108:10357;branch=z9hG4bK--144447402;rport From: sip:100@192.168.1.175:5060;tag=377997719 To: sip:100@192.168.1.175:5060 Contact: sip:100@192.168.1.108:10357;transport=UDP Max-Forwards: 70 Call-ID: 2438D2BDF3C73E1355B2F3F1DA7EA6E64D8C05ABBE5A CSeq: 4 OPTIONS 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="100", realm="myvoipapp.com", nonce="2FD691ACC3BFA0B10107841AAF861571", uri="sip:192.168.1.175:5060", response="b5d8d7e33204abbaba73b9fb74cff2a2", algorithm=MD5, nc=00000003, cnonce="b6dfa7b309bc5030"

I (69165) SIP: [1970-01-01/00:01:04]=======================>> I (69175) SIP: [1970-01-01/00:01:04]<<=====READ 0402 bytes== I (69175) SIP:

SIP/2.0 200 OK Via: SIP/2.0/UDP 192.168.1.108:10357;branch=z9hG4bK--144447402;received=192.168.1.108;rport=10357 From: sip:100@192.168.1.175:5060;tag=377997719 To: sip:100@192.168.1.175:5060;tag=007daada97f2d8d2 CSeq: 4 OPTIONS Call-ID: 2438D2BDF3C73E1355B2F3F1DA7EA6E64D8C05ABBE5A Allow: ACK,BYE,CANCEL,INFO,INVITE,MESSAGE,NOTIFY,OPTIONS,PRACK,REFER,REGISTER,SUBSCRIBE Content-Length: 0

I (69215) SIP: [1970-01-01/00:01:04]<<====================== I (102025) SIP: [1970-01-01/00:01:20]=======WRITE 0827 bytes>> I (102025) SIP:

OPTIONS sip:100@192.168.1.175:5060 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.108:10357;branch=z9hG4bK--309655272;rport From: sip:100@192.168.1.175:5060;tag=737091170 To: sip:100@192.168.1.175:5060 Contact: sip:100@192.168.1.108:10357;transport=UDP Max-Forwards: 70 Call-ID: 450F30B0362382ABF88AC382C0079041659BD876BC0E CSeq: 5 OPTIONS 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="100", realm="myvoipapp.com", nonce="2FD691ACC3BFA0B10107841AAF861571", uri="sip:192.168.1.175:5060", response="b5d8d7e33204abbaba73b9fb74cff2a2", algorithm=MD5, nc=00000004, cnonce="0fabfa851dc9411c"

I (102095) SIP: [1970-01-01/00:01:20]=======================>> I (102105) SIP: [1970-01-01/00:01:20]<<=====READ 0402 bytes== I (102105) SIP:

SIP/2.0 200 OK Via: SIP/2.0/UDP 192.168.1.108:10357;branch=z9hG4bK--309655272;received=192.168.1.108;rport=10357 From: sip:100@192.168.1.175:5060;tag=737091170 To: sip:100@192.168.1.175:5060;tag=ed374c7d2ad423a0 CSeq: 5 OPTIONS Call-ID: 450F30B0362382ABF88AC382C0079041659BD876BC0E Allow: ACK,BYE,CANCEL,INFO,INVITE,MESSAGE,NOTIFY,OPTIONS,PRACK,REFER,REGISTER,SUBSCRIBE Content-Length: 0

I (102145) SIP: [1970-01-01/00:01:20]<<====================== I (134955) SIP: [1970-01-01/00:02:06]=======WRITE 0829 bytes>> I (134955) SIP:

OPTIONS sip:100@192.168.1.175:5060 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.108:10357;branch=z9hG4bK-1700475075;rport From: sip:100@192.168.1.175:5060;tag=-1236999503 To: sip:100@192.168.1.175:5060 Contact: sip:100@192.168.1.108:10357;transport=UDP Max-Forwards: 70 Call-ID: 1694AB39F2EF83FE52121ECA976AB01A80F87CF544BA CSeq: 6 OPTIONS 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="100", realm="myvoipapp.com", nonce="2FD691ACC3BFA0B10107841AAF861571", uri="sip:192.168.1.175:5060", response="b5d8d7e33204abbaba73b9fb74cff2a2", algorithm=MD5, nc=00000005, cnonce="93939a14b7905dc2"

I (135025) SIP: [1970-01-01/00:02:06]=======================>> I (135035) SIP: [1970-01-01/00:02:07]<<=====READ 0404 bytes== I (135045) SIP:

SIP/2.0 200 OK Via: SIP/2.0/UDP 192.168.1.108:10357;branch=z9hG4bK-1700475075;received=192.168.1.108;rport=10357 From: sip:100@192.168.1.175:5060;tag=-1236999503 To: sip:100@192.168.1.175:5060;tag=97b4383fdeda6137 CSeq: 6 OPTIONS Call-ID: 1694AB39F2EF83FE52121ECA976AB01A80F87CF544BA Allow: ACK,BYE,CANCEL,INFO,INVITE,MESSAGE,NOTIFY,OPTIONS,PRACK,REFER,REGISTER,SUBSCRIBE Content-Length: 0

I (135075) SIP: [1970-01-01/00:02:07]<<====================== I (167785) SIP: [1970-01-01/00:02:23]=======WRITE 0827 bytes>> I (167785) SIP:

OPTIONS sip:100@192.168.1.175:5060 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.108:10357;branch=z9hG4bK-437529331;rport From: sip:100@192.168.1.175:5060;tag=1095038480 To: sip:100@192.168.1.175:5060 Contact: sip:100@192.168.1.108:10357;transport=UDP Max-Forwards: 70 Call-ID: 3BD22C7561136A61EDAF8C67D0F574825F20735338D6 CSeq: 7 OPTIONS 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="100", realm="myvoipapp.com", nonce="2FD691ACC3BFA0B10107841AAF861571", uri="sip:192.168.1.175:5060", response="b5d8d7e33204abbaba73b9fb74cff2a2", algorithm=MD5, nc=00000006, cnonce="96133abda75a01f5"

I (167855) SIP: [1970-01-01/00:02:23]=======================>> I (167875) SIP: [1970-01-01/00:02:23]<<=====READ 0402 bytes== I (167875) SIP:

SIP/2.0 200 OK Via: SIP/2.0/UDP 192.168.1.108:10357;branch=z9hG4bK-437529331;received=192.168.1.108;rport=10357 From: sip:100@192.168.1.175:5060;tag=1095038480 To: sip:100@192.168.1.175:5060;tag=a681da391a4e6e07 CSeq: 7 OPTIONS Call-ID: 3BD22C7561136A61EDAF8C67D0F574825F20735338D6 Allow: ACK,BYE,CANCEL,INFO,INVITE,MESSAGE,NOTIFY,OPTIONS,PRACK,REFER,REGISTER,SUBSCRIBE Content-Length: 0

I (167905) SIP: [1970-01-01/00:02:23]<<====================== I (200715) SIP: [1970-01-01/00:03:09]=======WRITE 0828 bytes>> I (200715) SIP:

OPTIONS sip:100@192.168.1.175:5060 SIP/2.0 Via: SIP/2.0/UDP 192.168.1.108:10357;branch=z9hG4bK-191880252;rport From: sip:100@192.168.1.175:5060;tag=-1829764343 To: sip:100@192.168.1.175:5060 Contact: sip:100@192.168.1.108:10357;transport=UDP Max-Forwards: 70 Call-ID: 0F2689426BD1F2E9234E9025CABD38BB947CB61669AA CSeq: 8 OPTIONS 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="100", realm="myvoipapp.com", nonce="2FD691ACC3BFA0B10107841AAF861571", uri="sip:192.168.1.175:5060", response="b5d8d7e33204abbaba73b9fb74cff2a2", algorithm=MD5, nc=00000007, cnonce="107244a1d67001d6"

I (200785) SIP: [1970-01-01/00:03:09]=======================>> I (200795) SIP: [1970-01-01/00:03:09]<<=====READ 0403 bytes== I (200795) SIP:

SIP/2.0 200 OK Via: SIP/2.0/UDP 192.168.1.108:10357;branch=z9hG4bK-191880252;received=192.168.1.108;rport=10357 From: sip:100@192.168.1.175:5060;tag=-1829764343 To: sip:100@192.168.1.175:5060;tag=d656d86877462d97 CSeq: 8 OPTIONS Call-ID: 0F2689426BD1F2E9234E9025CABD38BB947CB61669AA Allow: ACK,BYE,CANCEL,INFO,INVITE,MESSAGE,NOTIFY,OPTIONS,PRACK,REFER,REGISTER,SUBSCRIBE Content-Length: 0

I (200835) SIP: [1970-01-01/00:03:09]<<======================`

CAIJUN111 commented 2 years ago

I have one more question,could you recommend one of the audio analysis software you mentioned in Readme.md? image

CAIJUN111 commented 2 years ago

Who can help me?

CAIJUN111 commented 2 years ago

I find that the PC client is always online

CAIJUN111 commented 2 years ago

image I check the sip status every minute. When the client goes offline, the function indicates that SIP is online

ahhfzhang commented 2 years ago

Hi @CAIJUN111

Yes, the client is actually online all the time, the reason why this server thinks that the client is offline is that the registration interval set by the server may be too short. The registration interval set by this server is 120 seconds, and the commonly used servers are generally set for 1800 or 3600, so you can change the server registration interval, then try again.

btw, we will add a configuration later, so that the client can also configure this parameter.

thanks.

CAIJUN111 commented 2 years ago

Hi @CAIJUN111

Yes, the client is actually online all the time, the reason why this server thinks that the client is offline is that the registration interval set by the server may be too short. The registration interval set by this server is 120 seconds, and the commonly used servers are generally set for 1800 or 3600, so you can change the server registration interval, then try again.

btw, we will add a configuration later, so that the client can also configure this parameter.

thanks.

You are right!I change the the registration interval.Client will not offline.Thanks!