Hi Ellie,

Sorry for the delayed response.

Thanks a lot for the information. I am indeed able to PUT, DELETE and GET
using CURL. Greatly appreciated.

I have two questions here:

a) If using cURL the PUT, GET, DELETE operations could be performed then it
could also be performed by a client which produces an equivalent HTTP
Method, isnt it? What I mean to crosscheck with you is that say if I dont
use curl and instead use my XCAP client to generate PUT/DELETE/GET,
adhering to the 3gpp standards, towards the Clearwater then it would also
be allowed right? Clearwater doesnt distinguish between HTTP request coming
using CURL or via some other XCAP cleint originating a XCAP request. Does
it?

b) Also, as we all know, an XCAP request may update only a particular chunk
of xml (say a particular rule of Communication DIversion) instead of
sending the complete simservs XML over and over again.

(As shown in 3gpp doc 24604, TABLE A.1.7.7 where it uses the node
seperator(~~) to achieve it). (Also, on RFC 4825 page 30 we can see how is
it done for RLS-services where it shows a PUT updating a particular
section)

So, this update for a particular rule, is it possible with clearwater? Can
you please confirm? If yes, can you also suggest the equivalent cURL
notation for say updating a rule named "rule0". I used the below mentioned
expression but it
didnt work with cURL.

curl -X "PUT" -d @"test.xml"
http://10.112.77.143:7888/org.etsi.ngn.simservs/users/sip:[email protected]/simservs.xml/~~/communication-diversion/ruleset/rule%5b@id=%22rule0%22%5d%


I also tried changing the content-type to application/xcap-el+xml but that
didnt work too:

curl -X "PUT" -H "Content-type: application/xcap-el+xml" -d @"test.xml"
http://10.112.77.143:7888/org.etsi.ngn.simservs/users/sip:[email protected]/simservs.xml/~~/communication-diversion/ruleset/rule%5b@id=%22rule0%22%5d%



The usual curl with complete simservs.xml put is working fine for this user.

A big thanks to you guys. I cant tell you enough how much you have saved my
pains since I discovered you :)

Thanks,
Nishank


On Fri, Jul 25, 2014 at 2:26 PM, Eleanor Merry <[email protected]
> wrote:

> Hi Nishank,
>
> The error message you've seen looks to me like Chrome has received the
> XML, but doesn't know how to parse it. As a check, can you look at the
> source (hit F12 and look at the Elements tab) and see if the XML has been
> received?
>
> Alternatively you can use CURL  - you can run 'curl
> http://10.112.77.143:7888/org.etsi.ngn.simservs/users/sip:[email protected]/simservs.xml'
> on the homer node and this will return the XML. You can also use this (or
> your XML client) for the PUTs and DELETEs (e.g. curl -X "DELETE"
> http://10.112.77.143:7888/org.etsi.ngn.simservs/users/sip:[email protected]/simservs.xml
> ).
>
> Hope this helps,
>
> Ellie
>
> -----Original Message-----
> From: [email protected] [mailto:
> [email protected]] On Behalf Of Nishank
> Trivedi
> Sent: 25 July 2014 09:28
> To: [email protected]
> Subject: Re: [Clearwater] Clearwater Digest, Vol 15, Issue 24
>
> Anybody out there, who could help me with my "Regarding unsuccessful GET
> for simserv document" query? I am stuck real bad and any help/pointer to a
> direction would be greatly appreciated!
>
> Thanks.
> Nishank
>
>
> On Mon, Jul 21, 2014 at 10:30 PM, <
> [email protected]> wrote:
>
> > Send Clearwater mailing list submissions to
> >         [email protected]
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> >         http://lists.projectclearwater.org/listinfo/clearwater
> > or, via email, send a message with subject or body 'help' to
> >         [email protected]
> >
> > You can reach the person managing the list at
> >         [email protected]
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of Clearwater digest..."
> >
> >
> > Today's Topics:
> >
> >    1. Regarding unsuccessful GET for simserv document (Nishank Trivedi)
> >    2. Re: Bono and Homestead have status of "Does not exist" in a
> >       manual Clearwater installation (Lianjie Cao)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Mon, 21 Jul 2014 10:26:54 +0530
> > From: Nishank Trivedi <[email protected]>
> > To: [email protected]
> > Subject: [Clearwater] Regarding unsuccessful GET for simserv document
> > Message-ID:
> >         <CAN4rA945Wx39VppvprS30T69U79tiMmODV5JV7rrW=
> > [email protected]>
> > Content-Type: text/plain; charset=UTF-8
> >
> > ---------- Forwarded message ----------
> > From: Nishank Trivedi <[email protected]>
> > Date: Sat, 19 Jul 2014 12:21:16 +0530
> > Subject: Regarding unsuccessful GET for simserv document
> > To: [email protected]
> >
> > Hi There,
> >
> > First of all, a huge thanks for building this tremendous and powerful
> > solution. I download the All in one image and was able to login and
> > configure users via Ellis in no time. Impressive!
> >
> > My initial targeted use of Clearwater is a very basic one. I want to
> > test my XCAP client against XDMS supporting Simservs which Homer does.
> > I aim to
> > :
> >
> > 1) fetch the user documents.
> > 2) PUT and DELETE.
> >
> > I tried to follow the Homer API guide but it appeared a bit succinct
> > for a newbie like me.
> >
> > I am able to use Ellis to create rules and Homer is running at
> > http://10.112.77.143:7888
> > <
> > http://10.112.77.143:7888/org.etsi.ngn.simservs/users/sip:6505550516@e
> > xample.com/simservs.xml
> > >
> > .
> >
> > As a first level check, I simply typed
> >
> > http://10.112.77.143:7888/org.etsi.ngn.simservs/users/sip:6505550516@e
> > xample.com/simservs.xml
> > on
> > my chrome browser.
> >
> >
> > The request doesnt fail exactly but returns something like the following:
> >
> > presentation-not-restricted30sip:[email protected]
> > <
> > http://10.112.77.143:7888/org.etsi.ngn.simservs/users/sip:6505550516@e
> > xample.com/simservs.xml
> > >
> >
> >
> > I am a bit confused as in what do I need to do more to get the xml in
> > return. (Am I wrong in supposing that an XML would be returned? I have
> > used another opensource OPenxcap which returns a XML on a similar
> > command.)
> >
> > When I use cqsh -3 and see the simservs.xml there I can see the newly
> > created rule for sip:[email protected] <
> > http://10.112.77.143:7888/org.etsi.ngn.simservs/users/sip:6505550516@e
> > xample.com/simservs.xml
> > >
> > but
> > the GET response as stated above confuses me.
> >
> >
> > Also, is it possible to perform PUT externally (without using Ellis
> > but my XCAP client)?
> >
> > Many thanks again,
> > Nishank
> >
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Mon, 21 Jul 2014 09:28:17 -0700
> > From: Lianjie Cao <[email protected]>
> > To: Eleanor Merry <[email protected]>
> > Cc: "[email protected]"
> >         <[email protected]>
> > Subject: Re: [Clearwater] Bono and Homestead have status of "Does not
> >         exist" in a manual Clearwater installation
> > Message-ID:
> >         <CADPO7527BsVg0Ai=
> > [email protected]>
> > Content-Type: text/plain; charset=UTF-8
> >
> > Hi Ellie,
> >
> > Thanks a lot for the help!
> > I finally solved the problem by upgrade to the latest version on all
> > nodes and manual install libevent-2.0.so.5.
> > After this,monit on every node shows "running" status.
> > But I run into another problem which I'll state in a separate email.
> >
> > Thanks,
> > Lianjie
> >
> >
> > On Fri, Jul 18, 2014 at 10:30 AM, Eleanor Merry <
> > [email protected]> wrote:
> >
> > >  Hi Lianjie,
> > >
> > >
> > >
> > > As the sprout folder is present in /usr/share/clearwater and the lib
> > > folder isn?t, the right command is
> > > "LD_LIBRARY_PATH=/usr/share/clearwater/sprout/lib:$LD_LIBRARY_PATH
> > > /usr/share/clearwater/bin/bono --pcscf 5060,5058 --routing-proxy
> > > 192.168.1.21,5052,50,600".
> > >
> > >
> > >
> > > Can you check if libmemcached.so is present in
> > > /usr/share/clearwater/sprout/lib? If it?s not, then can you
> > > reinstall
> > Bono?
> > >
> > >
> > >
> > > If it is present, then it could be that the setuid flag has been set
> > > on Bono, and so it can?t honour the LD_LIBRARY_PATH when it?s run.
> > > Can you check this?
> > >
> > > You can do this by running ?ls ?l? in /usr/share/clearwater/bin, and
> > > checking the permissions on Bono. If the permissions include an s (e.g.
> > > -rwsr-xr-x) then it has been set. You can remove it by running
> > > ?chmod u-s bono?.
> > >
> > >
> > >
> > > Hope this helps,
> > >
> > >
> > >
> > > Ellie
> > >
> > >
> > >
> > > *From:* Lianjie Cao [mailto:[email protected]]
> > > *Sent:* 17 July 2014 20:36
> > >
> > > *To:* Eleanor Merry
> > > *Cc:* [email protected]
> > > *Subject:* Re: [Clearwater] Bono and Homestead have status of "Does
> > > not exist" in a manual Clearwater installation
> > >
> > >
> > >
> > > Hi Merry,
> > >
> > >
> > >
> > > It still outputs the error: " /usr/share/clearwater/bin/bono: error
> > > while loading shared libraries: libmemcached.so.11: cannot open
> > > shared object
> > > file: No such file or directory"
> > >
> > >
> > >
> > > Interestingly, I found there is no /lib directory under
> > > /usr/share/clearwater on Bono node.
> > >
> > >  /usr/share/clearwater includes /bin, /clearwater-diags-monitor,
> > > /infrastructure, /restund and /sprout.
> > >
> > >
> > >
> > > Thanks,
> > >
> > > Lianjie
> > >
> > >
> > >
> > > On Thu, Jul 17, 2014 at 12:07 PM, Eleanor Merry <
> > > [email protected]> wrote:
> > >
> > > Hi Lianjie,
> > >
> > >
> > >
> > > I told you the wrong library path ? in the newest release (Jet Set
> > > Radio, released today) the library path is
> > > /usr/share/clearwater/sprout/lib, in earlier releases it?s
> > > /usr/share/clearwater/lib
> > >
> > >
> > >
> > > Can you try with
> > > ?LD_LIBRARY_PATH=/usr/share/clearwater/lib:$LD_LIBRARY_PATH
> > > /usr/share/clearwater/bin/bono --pcscf 5060,5058 --routing-proxy
> > > 192.168.1.21,5052,50,600" instead?
> > >
> > >
> > >
> > > Ellie
> > >
> > >
> > >
> > > *From:* Lianjie Cao [mailto:[email protected]]
> > > *Sent:* 17 July 2014 19:22
> > > *To:* Eleanor Merry
> > > *Cc:* [email protected]
> > > *Subject:* Re: [Clearwater] Bono and Homestead have status of "Does
> > > not exist" in a manual Clearwater installation
> > >
> > >
> > >
> > > Hi Merry,
> > >
> > >
> > >
> > > Thanks a lot for the suggestion!
> > >
> > >
> > >
> > > I ran the command with and without sudo. Got errors for both.
> > >
> > >
> > >
> > > Without sudo;
> > >
> > > " /usr/share/clearwater/bin/bono: error while loading shared libraries:
> > > libevent-2.0.so.5: cannot open shared object file: No such file or
> > directory
> > > "
> > >
> > >
> > >
> > > With sudo:
> > >
> > > " /usr/share/clearwater/bin/bono: error while loading shared libraries:
> > > libmemcached.so.11: cannot open shared object file: No such file or
> > > directory"
> > >
> > >
> > >
> > > /var/log/monit.log is filled with:
> > >
> > >
> > >
> > >  'poll_bono' exec: /etc/init.d/bono
> > >
> > > 'bono' process is not running
> > >
> > > 'bono' trying to restart
> > >
> > > 'bono' start: /etc/init.d/bono
> > >
> > > 'poll_bono' status failed (1) for
> /usr/share/clearwater/bin/poll_bono.sh.
> > > Error: SIP poll failed to 192.168.1.11:5058
> > >
> > > nc: connect to 192.168.1.11 port 5058 (tcp) failed: Connection refused.
> > >
> > >
> > >
> > > Thanks,
> > >
> > > Lianjie
> > >
> > >
> > >
> > > On Thu, Jul 17, 2014 at 10:43 AM, Eleanor Merry <
> > > [email protected]> wrote:
> > >
> > > Hi,
> > >
> > > Can you try running bono interactively to see what errors come up?
> > > You
> > can
> > > do this by running "
> > > LD_LIBRARY_PATH=/usr/share/clearwater/sprout/lib:$LD_LIBRARY_PATH
> > > /usr/share/clearwater/bin/bono --pcscf 5060,5058 --routing-proxy
> > > 192.168.1.21,5052,50,600".
> > >
> > > Also, can you check the /var/log/monit.log files on Bono and
> > > Homestead
> > for
> > > more details as to why monit can't track Bono.
> > >
> > > Ellie
> > >
> > >
> > > -----Original Message-----
> > > From: [email protected] [mailto:
> > > [email protected]] On Behalf Of Lianjie
> > > Cao
> > > Sent: 17 July 2014 00:33
> > > To: [email protected]
> > > Subject: [Clearwater] Bono and Homestead have status of "Does not
> exist"
> > > in a manual Clearwater installation
> > >
> > > Hi guys,
> > >
> > > I installed Clearwater manually using OpenStack. I launched 1 VM for
> > > each of the 6 components, Ellis, Bono, Sprout, Homestead, Homer and
> Ralf.
> > > All the 6 VMs are connected to a private subnet 192.168.1.0/24 and
> > > they all associated with external IPs using NAT.
> > > Since I don't have access to the DNS server, I configure them to use
> > > IP addresses instead of hostnames.
> > > The /etc/clearwater/config on Bono VM is as below:
> > >
> > > # Deployment definitions
> > > home_domain=x.y.z.163
> > > sprout_hostname=192.168.1.21
> > > chronos_hostname=192.168.1.21:7253
> > > hs_hostname=192.168.1.41:8888
> > > hs_provisioning_hostname=192.168.1.41:8889
> > > ralf_hostname=192.168.1.51:10888
> > > xdms_hostname=192.168.1.31:7888
> > >
> > > # Local IP configuration
> > > local_ip=192.168.1.11
> > > public_ip=x.y.z.163
> > > public_hostname=15.9.114.163
> > >
> > > # Email server configuration
> > > smtp_smarthost=
> > > smtp_username=username
> > > smtp_password=password
> > > [email protected]
> > >
> > > # Keys
> > > signup_key=secret
> > > turn_workaround=secret
> > > ellis_api_key=secret
> > > ellis_cookie_key=secret
> > >
> > > # I-CSCF/S-CSCF configuration
> > > icscf=5052
> > > upstream_hostname=192.168.1.21
> > > upstream_port=5052
> > >
> > >
> > > Configuration files on other nodes are similar except the IPs for
> > > themselves.
> > >
> > > Now I am able to log in and create Private Identities on Ellis node.
> > >
> > > Private Identity:
> > >
> > > [email protected]
> > >
> > > Password: *Not available*
> > >
> > >
> > >
> > > But I failed when using client software Jisti to register the
> > > account I created in Ellis.
> > > Then I went into the Bono node to check the status by running "monit
> > > status", I got the following output:
> > >
> > > root@bono:/var/log# monit status
> > > The Monit daemon 5.3.2 uptime: 38m
> > >
> > > Program 'poll_restund'
> > >   status                            Status ok
> > >   monitoring status                 Monitored
> > >   last started                      Wed, 16 Jul 2014 08:43:01
> > >   last exit value                   0
> > >   data collected                    Wed, 16 Jul 2014 08:43:01
> > >
> > > Process 'restund'
> > >   status                            Running
> > >   monitoring status                 Monitored
> > >   pid                               1080
> > >   parent pid                        1
> > >   uptime                            49m
> > >   children                          0
> > >   memory kilobytes                  1380
> > >   memory kilobytes total            1380
> > >   memory percent                    0.0%
> > >   memory percent total              0.0%
> > >   cpu percent                       0.0%
> > >   cpu percent total                 0.0%
> > >   data collected                    Wed, 16 Jul 2014 08:43:01
> > >
> > > Program 'poll_bono'
> > >   status                            Status failed
> > >   monitoring status                 Monitored
> > >   last started                      Wed, 16 Jul 2014 08:43:01
> > >   last exit value                   1
> > >   data collected                    Wed, 16 Jul 2014 08:43:01
> > >
> > > Process 'bono'
> > >   status                            Does not exist
> > >   monitoring status                 Monitored
> > >   data collected                    Wed, 16 Jul 2014 08:43:01
> > >
> > > System 'system_bono'
> > >   status                            Running
> > >   monitoring status                 Monitored
> > >   load average                      [0.00] [0.01] [0.05]
> > >   cpu                               0.7%us 0.5%sy 0.0%wa
> > >   memory usage                      86028 kB [4.1%]
> > >   swap usage                        0 kB [0.0%]
> > >   data collected                    Wed, 16 Jul 2014 08:43:01
> > >
> > >
> > > It seems like bono is not started. I tried to start bono using
> > > "monit start bono" and "service bono start". It didn't output error
> > > messages,
> > but
> > > bono still cannot be started. And there is not log file under
> > /var/log/bono
> > > neither.
> > > I also checked that port 5060 is not used by any process.
> > > This also happens to Homestead.
> > >
> > > Can anyone help me out on this?
> > >
> > > Thanks a lot!
> > > Lianjie
> > >
> > > _______________________________________________
> > > Clearwater mailing list
> > > [email protected]
> > > http://lists.projectclearwater.org/listinfo/clearwater
> > >
> > >
> > >
> > >
> > >
> >
> >
> > ------------------------------
> >
> > _______________________________________________
> > Clearwater mailing list
> > [email protected]
> > http://lists.projectclearwater.org/listinfo/clearwater
> >
> >
> > End of Clearwater Digest, Vol 15, Issue 24
> > ******************************************
> >
> _______________________________________________
> Clearwater mailing list
> [email protected]
> http://lists.projectclearwater.org/listinfo/clearwater
>
_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/listinfo/clearwater

Reply via email to