Personal tools

switchvox.debug.pri.sessions.getLog

From SwitchvoxExtendAPI

Jump to: navigation, search

Contents

Debug Logging Functions

Description

get a url for the PRI log file created by a logging session

Arguments

See the Constructing Requests page to learn how to use arguments in requests.
Name Required Type Default Description
session_id required Which session you want the log data from.
start_date required The beginning date range for the snippet of log data
end_date required The end date range for the snippet of log data

Example Requests & Responses

Please see the API Request and Response Format section for more information on various request encodings.

Example One

Request

Example XML Request

<request method="switchvox.debug.pri.sessions.getLog">
    <parameters>
	<session_id>63</session_id>
	<start_date>12/10/2008 10:23:13</start_date>
	<end_date>12/10/2008 10:24:13</end_date>
    </parameters>
</request>

Response

Example XML Response

<response method="switchvox.debug.pri.sessions.getLog">
    <result>
	<download link="http://1.2.3.4/downloads/jg84jkf72jd02l2kfvg.zip"/>
    </result>
</response>

Error Codes

See the Error Code Formatting section to see the xml structure when an error is returned.
See the Generic Error Codes section to see a list of general fault codes that may be returned.
Code Description
80926 Invalid start_date
89634 Invalid end time.
24162 A session_id must be specified.
40590 There is no log data for the specified date range.
17373 Could not gather log data.