El Miércoles, 2 de Diciembre de 2009, Adrian Georgescu escribió:
> An example for PHP is here:
> 
> http://openxcap.org/wiki/SoapSimpleProxy

What is "watchers" XCAP auid? Where is it defined?
Is it a custom XCAP application which reads the content of OpenSIPS
'watchers' table to generate a XML document?

I've just seen it in RFC 4825 (XCAP) pag 22 as a pure example:

-------------------------------------------------------
   As an example, consider the following XML document:

   <?xml version="1.0"?>
   <watcherinfo xmlns="urn:ietf:params:xml:ns:watcherinfo"
                version="0" state="full">
     <watcher-list resource="sip:[email protected]"
                   package="presence">
       <watcher status="active"
                id="8ajksjda7s"
                duration-subscribed="509"
                event="approved">sip:[email protected]</watcher>
       <watcher status="pending"
                id="hh8juja87s997-ass7"
                display-name="Mr. Subscriber"
                event="subscribe">sip:[email protected]</watcher>
     </watcher-list>
   </watcherinfo>

                      Figure 3: Example XML Document

   Assuming that the default document namespace for this application
   usage is "urn:ietf:params:xml:ns:watcherinfo"
-------------------------------------------------------




    function &getWatchers($sipId, $password)
    {
        // sipId is a ComplexType SipId,
        // refer to wsdl for more info
        $sipId = new SOAP_Value('sipId', 
'{urn:AGProjects:SoapSIMPLEProxy}SipId', $sipId);
        $result = $this->call('getWatchers',
                              $v = array('sipId' => $sipId, 'password' => 
$password),
                              array('namespace' => 
'urn:AGProjects:SoapSIMPLEProxy:Presence',
                                    'soapaction' => '',
                                    'style' => 'rpc',
                                    'use' => 'encoded'));
        return $result;
    }


> --
> Adrian
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 


-- 
Iñaki Baz Castillo <[email protected]>

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to