On Fri, Apr 2, 2010 at 4:52 AM, Anca Vamanu <a...@opensips.org> wrote: > Hi James, > > I think that the problem is with those Notifies without a body sent by > OpenSIPS when the phone was started. This is normal behavior, correct > and conform RFC - when the presence server does not have any record for > that presentity - it includes no body. But since you say that Linksys > does not like this and since it was not that difficult to change, I just > committed a patch that sends a Notify with an empty dialoginfo tuple as > body when no published record is found. Please upgrade from svn and test > this case again.
Hi Anca, I saw your patch and upgraded to the SVN 1.6 branch. However, I do not believe I ever hit that code path. In my debug logs I see "No record exists in hash table" (notify.c:853). I'm not sure if fallback2db is true, but I don't think it is, so I never make it to that codepath. Apr 2 16:42:24 [12585] DBG:presence:send_notify_request: dialog info: Apr 2 16:42:24 [12585] DBG:presence:printf_subs: [pres_uri]= sip:0000000...@opensips.ip [to_user]= 0000000002 [to_domain]= opensips.ip [w_user]= 0000000001 [w_domain]= opensips.ip [event]= dialog [status]= active [expires]= 60 [callid]= 9673ec38-b54b9...@192.168.1.165 [local_cseq]=0 [to_tag]= 89c56fdf6f5b6f30be24c8867d74b34a-8b2f [from_tag]= f9ba884d0d82aab [contact]= sip:0000000...@phone.nat.ip:6095 [record_route]= Apr 2 16:42:24 [12585] DBG:presence:search_phtable: pres_uri= sip:0000000...@opensips.ip Apr 2 16:42:24 [12585] DBG:presence:get_p_notify_body: No record exists in hash_table Apr 2 16:42:24 [12585] DBG:presence_dialoginfo:dlginfo_agg_nbody: [pres_user]=0000000002 [pres_domain]= opensips.ip, [n]=0 Apr 2 16:42:24 [12585] DBG:presence_dialoginfo:build_dialoginfo: [pres_uri] sip:0000000...@opensips.ip Apr 2 16:42:24 [12585] DBG:presence:search_phtable: pres_uri= sip:0000000...@opensips.ip Apr 2 16:42:24 [12585] DBG:presence_dialoginfo:build_dialoginfo: No record exists in hash_table Apr 2 16:42:24 [12585] DBG:presence:send_notify_request: Could not get the notify_body Apr 2 16:42:24 [12585] DBG:presence:send_notify_request: headers: Max-Forwards: 70^M Event: dialog^M Contact: <sip:s...@opensips.ip:5060>^M Subscription-State: active;expires=50^M Apr 2 16:42:24 [12585] DBG:presence:build_dlg_t: CONTACT = sip:0000000...@phone.nat.ip:6095 Apr 2 16:42:24 [12585] DBG:tm:t_uac: next_hop=<sip:0000000...@phone.nat.ip::6095> Apr 2 16:42:24 [12585] DBG:core:mk_proxy: doing DNS lookup... Apr 2 16:42:24 [12585] DBG:tm:dlg2hash: 63929 Apr 2 16:42:24 [12585] DBG:tm:print_request_uri: sip:0000000...@phone.nat.ip::6095 Apr 2 16:42:24 [12585] DBG:tm:set_timer: relative timeout is 500000 Apr 2 16:42:24 [12585] DBG:tm:insert_timer_unsafe: [4]: 0x7f0f225b44d0 (5800000) Apr 2 16:42:24 [12585] DBG:tm:set_timer: relative timeout is 30 Apr 2 16:42:24 [12585] DBG:tm:insert_timer_unsafe: [0]: 0x7f0f225b4500 (35) Apr 2 16:42:24 [12585] INFO:presence:send_notify_request: NOTIFY sip:0000000...@opensips.ip via sip:0000000...@phone.nat.ip::6095 on > > Regards, > > -- > Anca Vamanu > www.voice-system.ro -- James > > > James Lamanna wrote: >> On Thu, Apr 1, 2010 at 12:26 AM, Anca Vamanu <a...@opensips.org> wrote: >> >>>> [snip] >>>> >>>> Ok I think I got this somewhat working. >>>> I was missing a dialoginfo_set() in another INVITE path. >>>> However, does anyone know how, if you add a new phone, to make the >>>> presence initialize to idle? >>>> The BLF light blinks amber until I call the phone that is being >>>> monitored, then it will blink red, and go back to green when the call >>>> is terminated. >>>> >>>> >>>> >>> Hi James, >>> >>> Can you please run a network trace and catch the Notify that goes first >>> to the phone and makes it blink amber as you said? Send that to me to >>> see how we can fix that. >>> >>> >> >> Hi Anca, >> Attached is a log of a startup of 2 phones. >> Each phone is monitoring the other phone. >> This is a clean startup, so all presence tables are empty. >> I think this may be a lack of any NOTIFYs being sent at startup to the >> phone that a phone is online. >> >> Thanks. >> >> -- James >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> > > _______________________________________________ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > _______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users