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.