Jump to content

CSTA Error On MakeCall


Makara

Recommended Posts

Hi All,

 

I'm trying to make a call between two users via CSTA but i got invalidCalledDeviceID CSTA error.

 

The request XML is:

 

POST http://192.168.10.101/soap.xml HTTP/1.0

Content-Type: text/xml

Host: 192.168.10.101

Content-Length: 343

Connection: Keep-Alive

 

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sns="http://www.pbxnsip.com/soap/pbx">

<env:Body>

<sns:MakeCall>

<callingDevice>sip:10000@192.168.10.101</callingDevice>

<calledDirectoryNumber>sip:600@192.168.10.101</calledDirectoryNumber>

<autoOriginate>doNotPrompt</autoOriginate>

</sns:MakeCall>

</env:Body>

</env:Envelope>

 

Server Response is:

HTTP/1.0 500 Internal Server Error

Content-Type: application/xml

Content-Length: 583

 

<?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>

<SOAP-ENV:Fault>

<SOAP-ENV:faultcode>Client</SOAP-ENV:faultcode>

<SOAP-ENV:faultstring>CSTA Error</SOAP-ENV:faultstring>

<SOAP-ENV:detail>

<csta:CSTAErrorCode xmlns:csta="http://www.ecma-international.org/standards/ecma-323/csta/ed4">

<csta:operation>invalidCalledDeviceID</csta:operation>

</csta:CSTAErrorCode>

</SOAP-ENV:detail>

</SOAP-ENV:Fault>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

 

Both devices are connected, registered and make calls between each other. Server version is 4.0.1.3446.

 

Does anyone know how to resolve this.

Link to comment
Share on other sites

Hi All,

 

I'm trying to make a call between two users via CSTA but i got invalidCalledDeviceID CSTA error.

 

The request XML is:

 

POST http://192.168.10.101/soap.xml HTTP/1.0

Content-Type: text/xml

Host: 192.168.10.101

Content-Length: 343

Connection: Keep-Alive

 

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sns="http://www.pbxnsip.com/soap/pbx">

<env:Body>

<sns:MakeCall>

<callingDevice>sip:10000@192.168.10.101</callingDevice>

<calledDirectoryNumber>sip:600@192.168.10.101</calledDirectoryNumber>

<autoOriginate>doNotPrompt</autoOriginate>

</sns:MakeCall>

</env:Body>

</env:Envelope>

 

Server Response is:

HTTP/1.0 500 Internal Server Error

Content-Type: application/xml

Content-Length: 583

 

<?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>

<SOAP-ENV:Fault>

<SOAP-ENV:faultcode>Client</SOAP-ENV:faultcode>

<SOAP-ENV:faultstring>CSTA Error</SOAP-ENV:faultstring>

<SOAP-ENV:detail>

<csta:CSTAErrorCode xmlns:csta="http://www.ecma-international.org/standards/ecma-323/csta/ed4">

<csta:operation>invalidCalledDeviceID</csta:operation>

</csta:CSTAErrorCode>

</SOAP-ENV:detail>

</SOAP-ENV:Fault>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

 

Both devices are connected, registered and make calls between each other. Server version is 4.0.1.3446.

 

Does anyone know how to resolve this.

 

The called device is represented as sip:600@192.168.10.101 in the message that you sent. Is 192.168.10.101 is a domain on the PBX? If the domain is named differently (say, localhost or pbx.company.com), then please use that name.

Link to comment
Share on other sites

  • 2 years later...

Hi

 

I have tested this functionality on a snom ONE free version and it works fine, but when trying to get it working on our production pbx i get the same error as above.

Both environments are running version 2011-4.5.0.1050.

 

I have tried the above mentioned suggestions with no luck.

 

Below is the soap conversation of the snom ONE free version that works fine.

 

POST / HTTP/1.1

 

Content-Type: application/xml

 

Host: 172.16.10.76

 

Content-Length: 326

 

Expect: 100-continue

 

 

 

<?xml version="1.0" standalone="yes"?>

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sns="http://www.pbxnsip.com/soap/pbx">

<env:Body>

<sns:MakeCall>

<domain>172.16.10.76</domain>

<callingDevice>49</callingDevice>

<calledDirectoryNumber>41</calledDirectoryNumber>

</sns:MakeCall>

</env:Body>

</env:Envelope>HTTP/1.1 200 Ok

 

Content-Type: application/xml

 

Content-Length: 413

 

 

 

<?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:MakeCallResponse>

<csta:callingDevice>

<csta:callID>0b36f9a3@pbx</csta:callID>

<csta:deviceID>49@localhost</csta:deviceID>

</csta:callingDevice>

</csta:MakeCallResponse>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

 

 

And here is the conversation of the production server:

 

 

POST / HTTP/1.1

 

Content-Type: application/xml

 

Host: 192.168.0.12

 

Content-Length: 330

 

Expect: 100-continue

 

Connection: Keep-Alive

 

 

 

<?xml version="1.0" standalone="yes"?>

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sns="http://www.pbxnsip.com/soap/pbx">

<env:Body>

<sns:MakeCall>

<domain>192.168.0.12</domain>

<callingDevice>8024</callingDevice>

<calledDirectoryNumber>8025</calledDirectoryNumber>

</sns:MakeCall>

</env:Body>

</env:Envelope>

HTTP/1.1 500 Internal Server Error

 

Content-Type: application/xml

 

Content-Length: 583

 

 

 

<?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>

<SOAP-ENV:Fault>

<SOAP-ENV:faultcode>Client</SOAP-ENV:faultcode>

<SOAP-ENV:faultstring>CSTA Error</SOAP-ENV:faultstring>

<SOAP-ENV:detail>

<csta:CSTAErrorCode xmlns:csta="http://www.ecma-international.org/standards/ecma-323/csta/ed4">

<csta:operation>invalidCalledDeviceID</csta:operation>

</csta:CSTAErrorCode>

</SOAP-ENV:detail>

</SOAP-ENV:Fault>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

 

 

 

Even if i make all the fields blank the error stays the same.

 

Hope someone can help.

Link to comment
Share on other sites

I assume 192.168.0.12 does not have 'localhost' as the alias.

So, try adding @domain name for the calling device & called devices. Ex: 8024@192.168.0.12.

 

Make sure that 192.168.0.12 is the domain name for 8024 & 8025.

 

 

Thanks very much.

This resolved my issue.

Link to comment
Share on other sites

  • 6 years later...

Hi

We have been using the CSTA MakeCall since the last post on this topic in 2012

We are in process of upgrading our Vodia pbx from 60 to 61 and in this functionality is now giving a similar error  although we have not changed anything:

See the full trace below:

POST / HTTP/1.1
Content-Type: application/xml
Host: 192.168.x.x
Content-Length: 338
Expect: 100-continue
Connection: Keep-Alive

HTTP/1.1 100 Continue

<?xml version="1.0" standalone="yes"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sns="http://www.pbxnsip.com/soap/pbx"><env:Body><sns:MakeCall><domain></domain><callingDevice>8025@pbx.ourdomain.co.za</callingDevice><calledDirectoryNumber>0820000000</calledDirectoryNumber></sns:MakeCall></env:Body></env:Envelope>

 

HTTP/1.1 500 Internal Server Error
Content-Type: application/xml
Content-Length: 583


<?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><SOAP-ENV:Fault><SOAP-ENV:faultcode>Client</SOAP-ENV:faultcode><SOAP-ENV:faultstring>CSTA Error</SOAP-ENV:faultstring><SOAP-ENV:detail><csta:CSTAErrorCode xmlns:csta="http://www.ecma-international.org/standards/ecma-323/csta/ed4"><csta:operation>invalidCalledDeviceID</csta:operation></csta:CSTAErrorCode></SOAP-ENV:detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

 

PBX LOG File

8] 20:41:47.527 SOAP: SOAP: Request from IP address 192.168.0.0 without a session
[5] 20:41:47.534 SOAP: Receive SOAP request via HTTP interface
<?xml version="1.0" standalone="yes"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sns="http://www.pbxnsip.com/soap/pbx"><env:Body><sns:MakeCall><domain></domain><callingDevice>8025@pbx.mydomain.co.za</callingDevice><calledDirectoryNumber>0820000000</calledDirectoryNumber></sns:MakeCall></env:Body></env:Envelope>

 

 

Link to comment
Share on other sites

We have changed the HTTP post to the host(domain) and removed the @domain after username and still the same error. We also tried to specify the domain in the MakeCall soap request node with no luck.

POST / HTTP/1.1
Content-Type: application/xml
Host: pbx.nhb.co.za
Content-Length: 324
Expect: 100-continue
Connection: Keep-Alive

HTTP/1.1 100 Continue

<?xml version="1.0" standalone="yes"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sns="http://www.pbxnsip.com/soap/pbx"><env:Body><sns:MakeCall><domain></domain><callingDevice>8025</callingDevice><calledDirectoryNumber>082********</calledDirectoryNumber></sns:MakeCall></env:Body></env:Envelope>HTTP/1.1 500 Internal Server Error
Content-Type: application/xml
Content-Length: 583


<?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><SOAP-ENV:Fault><SOAP-ENV:faultcode>Client</SOAP-ENV:faultcode><SOAP-ENV:faultstring>CSTA Error</SOAP-ENV:faultstring><SOAP-ENV:detail><csta:CSTAErrorCode xmlns:csta="http://www.ecma-international.org/standards/ecma-323/csta/ed4"><csta:operation>invalidCalledDeviceID</csta:operation></csta:CSTAErrorCode></SOAP-ENV:detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...