cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3886
Views
0
Helpful
1
Replies

Initiate XML App via URL

rk
Level 1
Level 1

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

Filip Frank
Level 1
Level 1

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: