在sip訊息回圈處理的部分,我使用如下代碼,該函式本來應該偵聽到來的訊息,沒有訊息的時候,g_event的值應為空,但是現在g_event卻一直有值,為一個亂數,不知道如何處理。
g_event = eXosip_event_wait(context,0, 200);/*偵聽訊息的到來*/
printf(“g_event=%p\r\n”,g_event);
eXosip_lock(context);
eXosip_default_action(context,g_event);
eXosip_automatic_refresh(context);/*Refresh REGISTER and SUBSCRIBE before the expiration delay*/
eXosip_unlock(context);
列印值如下
<OTHER>
eXosip event type:1
g_event=0x1d4fb0
<OTHER>
eXosip event type:1
g_event=0x1cf0b0
<OTHER>
eXosip event type:1
g_eve[ 1983.901391] [dm96-TxRound].178 for LEN_ODD tail_room +1, rslt add 1
nt=0x1d4470
<OTHER>
eXosip event type:1
g_event=0x1d8460
<OTHER>
eXosip event type:1
g_event=0x1d2598
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/95455.html
標籤:網絡通信
上一篇:Linux rawSocket 混雜模式下如何才能不接受自己發送的資料包,在線等!!!!
下一篇:來自一個程式員的心酸血淚史
