linphone - Issue with 200 Ok Notify - Stack Overflow

admin2025-05-01  1

I'm creating a VOIP calling application using linphone android library and using kamailio as sip proxy server. Currently I am having an issue using the Friends API in linphone.

After I enable a friend for subscribe multiple Subscribe request are going on the server even after receiving a 200 OK because of which my application is freezing as there are about 20-30 friends stored in the friend list for which the Friend API is continuously sending Subscribe request and the Notify request sent by kamailio is being used in the application to update a friend's presence but the application is not sending back a 200 OK back to kamailio for the notify because of which kamailio continuously keeps sending a notify.

Here's a snap shot of how i am updating subscribers whenever the application starts -> Application Code to Send Subscribe Snapshot Link

Here's A snap Shot of what is happening at the server in a single scenario i.e A user sending Subscribe request at kamilio to subscribe for a friend's Presence -> Kamailio Snapshot Link

Is they any configuration settings that i am missing while enabling friend for subscription also I've enabled the Friend List too for subscription, if not what else could be the problem? Thanks in Advance for Helping me Solve this issue! I'm new to setting up presence in kamailio and linphone so any help would be appreciated!

转载请注明原文地址:http://www.anycun.com/QandA/1746103023a91707.html