How to Subscribe to Presence for another extension

Hi.

Here is a packet analysis (from sngrep) of a Subscribe sent from a Polycom
IP670 telephone to a PBX, requesting to be informed about presence information
for the extension named “KC470IP”:

SUBSCRIBE sip:KC470IP@PBX.example.com SIP/2.0
Via: SIP/2.0/UDP 192.168.34.208:5060;branch=z9hG4bKeed9cca433F1EA87
From: "Kworkroom" <sip:Kworkroom670@PBX.example.com>;tag=A9267631-A231A9F8
To: <sip:KC470IP@PBX.example.com>
CSeq: 1 SUBSCRIBE
Call-ID: 58fb146-5edd3c91-71a213d8@192.168.34.208
Contact: <sip:Kworkroom670@192.168.34.208:5060>
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY,
	PRACK, UPDATE, REFER
Event: dialog
User-Agent: PolycomSoundPointIP-SPIP_670-UA/3.2.3.1734
Accept-Language: en
Accept: application/dialog-info+xml
Max-Forwards: 70
Expires: 3600
Content-Length: 0

Note that the From and Contact headers contain the account requesting the
information, and the To header (as well as that specified in the Subscribe
itself) indicates which device Presence information is being requested for.

The page Presence | FreeSWITCH Documentation shows how to do this from FreeSwitch, but where do I set the To account?

It seems fairly obvious that these parameters in the example on that page are for the From account:

     <param name="username" value="1000"/>
     <param name="password" value="1234"/>

because that’s the one which has to authenticate, but where/how do I specify
which other account I’m asking for the Presence information for?

Thanks,

Antony.

Hi.

I’ve just corrected the packet capture details after spotting that the forum software had deleted the From and To headers from what I originally sent. Hopefully this now makes my question make far more sense.

Can anyone point me at how to set the To header for the extension whose status I’m interested in?

Thanks,

Antony.