Showing posts with label CURL. Show all posts
Showing posts with label CURL. Show all posts

Saturday, April 26, 2014

Cisco Telepresence - sending DTMF using API and cURL

Very similar to my previous post:
http://pandaeatsbamboo.blogspot.hk/2014/04/making-cisco-telepresence-calls-using.html

We can send DTMF using CURL + TC firmware API.  This is useful when you want to join a multipoint video call which has password protected, and you want to automate that.

You can use the same curl command in my previous post, and for the xml file content, this is the sample to use while you are in call:


<Command><DTMFSend command="True"><DTMFString>000000#</DTMFString></DTMFSend></Command>

Thursday, April 24, 2014

Making Cisco Telepresence calls using API and cURL

For those EX, SX, MX and C-series codec which are running TC firmware, you can use the below method to make and disconnect call with CURL using its XML API.  In my lab environment I am using TC7.1, however earlier release will also work.  My video endpoint IP address is 192.168.24.6 and going to make a phone call to number 8334.


Make call
[root@ns3 ~]# curl -k -u admin:panda123 -H "Content-type: text/xml;" -d @ex.xml http://192.168.24.6/formputxml?xmldoc

Output:
<Command><DialResult status="OK" item="1">
  <CallId item="1">7</CallId>
  <ConferenceId item="1">6</ConferenceId>
</DialResult>
</Command>


ex.xml file content:
<Command><Dial command="True"><Number>8334</Number><Protocol>h323</Protocol></Dial></Command>

Disconnect All calls
[root@ns3 ~]# curl -k -u admin:panda123 -H "Content-type: text/xml;" -d @ex2.xml http://192.168.24.6/formputxml?xmldoc

Output:
<Command><DisconnectAllResult status="OK" item="1"/>

ex2.xml file content:
<Command><Call command="True"><DisconnectAll></DisconnectAll></Call></Command>