It's a 1914 Military Pattern, 1916 dated DWM made P.08 Luger.
DWM made very high quality Lugers and they were the biggest supplier of Luger pistols in that period.
There were approximately 140,000 of these made in 1916 and total production from 1913-18 was approximately 505,000, so overall as Lugers go this one is considered "common".
There is some overlap in dated production serial numbers from year to year as the receivers were numbered in sequence but not necessarily dated and delivered in the same order. As a result 1916 dated DWM P.08s are serial numbered anywhere from 80 to 7060q.
They numbered Lugers from 1 to 10,000, then added a letter suffix and started over: 1a to 10,000a, 1b to 10,000b, etc. There's always argument that the serial block were 1-9999, but there seem to be enough "10,000" numbered Lugers out there to suggest they were more concerned with production blocks of 10,000 pistols then they were with 4 digit serial numbers.
The 9799 serial on your Luger without a suffix just means your Luger was in the first production block in 1916. Given 140,000 produced in 1916, or roughly 11,600 per month, yours was most likely delivered in January 1916.
----
The stylized "USS" mark on the receiver is the acceptance mark, and the mark following it is the military proof mark.
All the parts match the overall bluing is good, the strawing (gold color on the trigger and other small parts) is good and the grips are correct for the pistol. The should be numbered and if they have a "99" that matches the gun that adds to the value. Matching numbers are important as if the metal small parts do not match it will cut the value of the gun in half. You'll see Luger small parts for sale with the 2 digit number listed because owners with non matching parts are often trying to find matching parts in appropriate condition in order to improve the value of their luger.
The wood based nickel plated magazines are correct for the 1914 Military pattern pistol. If they still function properly, they are worth around $200 each. As such I recommend you buy a mech-gar magazine for it if you plan to shoot it rather than risking damage to one of your originals. If your magazines actually match your pistol (9799 stamped on the bases) you've pretty much won the luger lottery as matching number magazines are very rare and if found now, are more likely force fit to the gun by buying a matching number magazine later. That's why you see magazine numbers listed when they are for sale. It appears that while P.08s were delivered with two matching magazines, there was zero effort by the German military to keep the pistol with the magazines that were delivered with it.
---
Value wise it depends a lot on finding the right buyer but your Luger will sell somewhere between $800 and $1200 in that condition, and $1000 is probably a reasonable ballpark. I would not take less than that for it, and that does not include an extra $200 for the extra magazine.
You don't mention a holster but an original WWI era holster like the one below will sell for between $150 and $300 in that condition: