Content
sSnom phones support the following requests send to the phone via HTTP:Â
RequestSystemStatus
Â
<?xml version="1.0" encoding="UTF-8"?> <RequestSystemStatus xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
SnapshotDevice
Â
<?xml version="1.0" encoding="UTF-8"?><SnapshotDevice xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed5"><snapshotObject>455455@ser.intern.snom.de</snapshotObject></SnapshotDevice>
MakeCall
Â
<?xml version="1.0" encoding="UTF-8"?><MakeCall xmlns='http://www.ecma-international.org/standards/ecma-323/csta/ed5' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> <callingDevice>sip:455455@ser.intern.snom.de</callingDevice> <calledDirectoryNumber>455360</calledDirectoryNumber> <autoOriginate>doNotPrompt</autoOriginate> </MakeCall>
<?xml version="1.0" encoding="utf-8"?> <MakeCallResponse xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed5"> <callingDevice> <callID>2</callID> <deviceID>sip:455455@ser.intern.snom.de</deviceID> </callingDevice> </MakeCallResponse>
callingDevice is the user_name@pbx of a configured identity. When this field has an empty value, then the active identity is used to make the call. Otherwise the value is used to choose the identity by comparing the value with the configured user name of every identity.
Â
ConsultationCall
Â
<?xml version="1.0" encoding="UTF-8"?> <ConsultationCall xmlns='http://www.ecma-international.org/standards/ecma-323/csta/ed5' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> <existingCall> <callID>3</callID> <deviceID>sip:455370@ser.intern.snom.de</deviceID> </existingCall> <consultedDevice>455320</consultedDevice> </ConsultationCall>
<?xml version="1.0" encoding="utf-8"?> <ConsultationCallResponse xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed5"> <initiatedCall> <callID>4</callID> <deviceID>sip:455455@ser.intern.snom.de</deviceID> </initiatedCall> </ConsultationCallResponse>
AnswerCall
Â
<?xml version="1.0" encoding="UTF-8"?> <AnswerCall xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed5"> <callToBeAnswered> <callID>-17</callID> <deviceID>sip:455455@ser.intern.snom.de</deviceID> </callToBeAnswered> </AnswerCall>
<?xml version="1.0" encoding="utf-8"?> <AnswerCallResponse xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed5"/>
ClearConnection
Â
<?xml version="1.0" encoding="UTF-8"?> <ClearConnection xmlns='http://www.ecma-international.org/standards/ecma-323/csta/ed5' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><connectionToBeCleared> <callID>2</callID> <deviceID>sip:455455@ser.intern.snom.de</deviceID> </connectionToBeCleared> </ClearConnection>
<?xml version="1.0" encoding="utf-8"?><ClearConnectionResponse xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed5"/>
ClearCall
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:csta="http://www.ecma-international.org/standards/ecma-323/csta/ed4"> <SOAP-ENV:Body> <csta:ClearCall> <csta:callToBeCleared>4711</csta:callToBeCleared> </csta:ClearCall> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
HoldCall
Â
<?xml version="1.0" encoding="UTF-8"?><HoldCall xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed4"> <callToBeHeld> <callID>4</callID> <deviceID>sip:455455@ser.intern.snom.de</deviceID> </callToBeHeld> </HoldCall>
<?xml version="1.0" encoding="utf-8"?> <HoldCallResponse xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed5"/>
RetrieveCall
Â
<?xml version="1.0" encoding="UTF-8"?> <RetrieveCall xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed4"> <callToBeRetrieved> <callID>4</callID> <deviceID>sip:455455@ser.intern.snom.de</deviceID> </callToBeRetrieved> </RetrieveCall>
<?xml version="1.0" encoding="utf-8"?> <RetrieveCallResponse xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed5"/>
Conference Call
Â
<?xml version="1.0" encoding="UTF-8"?> <ConferenceCall xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed4"> <heldCall> <callID>13</callID> <deviceID>sip:455455@ser.intern.snom.de</deviceID> </heldCall> <activeCall> <callID>14</callID> <deviceID>sip:455455@ser.intern.snom.de</deviceID> </activeCall> </ConferenceCall>
TransferCall
Â
<?xml version="1.0" encoding="UTF-8"?> <TransferCall xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed4"> <heldCall> <callID>16</callID> <deviceID>sip:455455@ser.intern.snom.de</deviceID> </heldCall> <activeCall> <callID>15</callID> <deviceID>sip:455455@ser.intern.snom.de</deviceID> </activeCall> </TransferCall>
<?xml version="1.0" encoding="utf-8"?> <TransferCallResponse xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed5"> <transferredCall> <callID>how_should_i_know_4711</callID> <deviceID>sip:455370@ser.intern.snom.de</deviceID> </transferredCall> </TransferCallResponse>
SingleStepTransferCall
Â
<?xml version="1.0" encoding="UTF-8"?> <SingleStepTransferCall xmlns='http://www.ecma-international.org/standards/ecma-323/csta/ed5' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> <activeCall> <callID>2</callID> <deviceID>sip:455320@ser.intern.snom.de</deviceID> </activeCall> <transferredTo>455370</transferredTo> </SingleStepTransferCall>
<?xml version="1.0" encoding="utf-8"?> <SingleStepTransferCallResponse xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed5"> <transferredCall> <callID>how_should_i_know_4711</callID> <deviceID>tel:455370</deviceID> </transferredCall> </SingleStepTransferCallResponse>
DeflectCall
Â
<?xml version="1.0" encoding="UTF-8"?> <DeflectCall xmlns='http://www.ecma-international.org/standards/ecma-323/csta/ed5' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><callToBeDiverted><callID>-4</callID><deviceID>sip:455820@ser.intern.snom.de</deviceID></callToBeDiverted><newDestination><device>455370</device></newDestination></DeflectCall>
<?xml version="1.0" encoding="utf-8"?><DeflectCallResponse xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed5"/>
GenerateDigits
Â
<?xml version="1.0" encoding="UTF-8"?><GenerateDigits><connectionToSendDigits><callID>2</callID><deviceID>sip:455455@ser.intern.snom.de</deviceID></connectionToSendDigits><digitMode>DTMF</digitMode><charactersToSend>1234</charactersToSend></GenerateDigits>
<?xml version="1.0" encoding="utf-8"?> <GenerateDigitsResponse xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed5"/>
GetSwitchingFunctionDevices
Â
<?xml version="1.0" encoding="UTF-8"?><GetSwitchingFunctionDevices/>
Â
2nd Answer (in uaCsta send via separate SIP-INFO, HTTP-CSTA appends this to initial answer):
GetDoNotDisturb
Â
<?xml version="1.0" encoding="UTF-8"?> <GetDoNotDisturb xmlns='http://www.ecma-international.org/standards/ecma-323/csta/ed5"> <xmlns:xsi='sip:455455@ser.intern.snom.dehttp://www.w3.org/2001/XMLSchema-instance'> <device>sip:455455@ser.intern.snom.de</device></GetDoNotDisturb>
<?xml version="1.0" encoding="UTF-8"?> <GetDoNotDisturbResponse xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed5"> <doNotDisturbOn>false</doNotDisturbOn> </GetDoNotDisturbResponse>
SetDoNotDisturb
Â
<?xml version="1.0" encoding="UTF-8"?> <SetDoNotDisturb xmlns='http://www.ecma-international.org/standards/ecma-323/csta/ed5' xmlns:xsi='sip:455455@ser.intern.snom.dehttp://www.w3.org/2001/XMLSchema-instance'> <device>sip:455455@ser.intern.snom.de</device> <doNotDisturbOn>false</doNotDisturbOn> </SetDoNotDisturbfalse>
<?xml version="1.0" encoding="UTF-8"?> <SetDoNotDisturbResponse xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed5"/>
GetForwarding
Â
<?xml version="1.0" encoding="UTF-8"?> <GetForwarding xmlns='http://www.ecma-international.org/standards/ecma-323/csta/ed5' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><device>sip:455455@ser.intern.snom.de</device> </GetForwarding>
SetForwarding
Â
<?xml version="1.0" encoding="UTF-8"?> <SetForwarding xmlns='http://www.ecma-international.org/standards/ecma-323/csta/ed5' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> <device>sip:455455@ser.intern.snom.de</device> <forwardingType>forwardImmediate</forwardingType> <activateForward>true</activateForward> <forwardDN>42</forwardDN> <ringDuration></ringDuration> </SetForwarding>
<?xml version="1.0" encoding="UTF-8"?> <SetForwardingResponse xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed5"/>
Note: CSTA via HTTP used to require the csta-xml to be enveloped in SOAP, since 8.7.3 this is no longer necessary except for the proprietary requests described in Proprietary CSTA Messages and Action URLs and for ClearCall. For all other services this is now optional.
Further Information
Related articles