cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Get the latest Cisco news in this December issue of the Cisco Small Business Monthly Newsletter

3608
Views
0
Helpful
1
Replies
Highlighted
rk Beginner
Beginner

Initiate XML App via URL

Can an XML Application be started via url on the phone (SPA502)? (we cannot initiate a SIP NOTIFY)

Or, can it be started automatically on a periodic basis?

Maybe anyone has other ideas how to achieve the goal of having call history cleared on a regular basis or even never be written to.

Thank you.

1 REPLY 1
Beginner

Initiate XML App via URL

Hello,

this working for me on SPa504. Python script

#!/usr/bin.env python26                                                                                                                                                                                                                     

import cgi

import httplib

import base64

auth = base64.encodestring("admin:1000")

headers = {"Content-type": "application/xml", "Authorization": "Basic "  + auth }                                                                                                                                                           

xml= """XML=http://10.76.17.2:83/webapp/cisco_dir.py"/>  """                                                                                                                                                                                                                                 

conn = httplib.HTTPConnection("10.76.17.162:80")     

conn.request("POST","POST /CGI/Execute", xml, headers)       

conn.close