Hi,

I am using callcontroller to place calls and next to get the call status
I made many tests placing a call using call controller POST and I realised
the following:

1. I cannot verify if the called party answered or rejected the call
2. More than this, I cannot always verify if there is an ongoing call
between user1 and user2

I noticed that when I query the status of a call using http GET a stack of
SIP request/responses is shown in XML format

For 1: No matter if the called party answers or rejects the call I get:

<status>
    <timestamp>1298593082107</timestamp>
    <call-id>[email protected]</call-id>
    <method>NOTIFY</method>
    <status-line>SIP/2.0 200 OK</status-line>
</status>

For 2: When a call is long, at some point, the callcontroller REST GET does
not return any status, as there is no ongoing call between involved users

<status-lines xmlns="
http://www.sipfoundry.org/sipX/schema/xml/call-status-00-00";>
</status-lines>

Here is how I place the call:
curl  -k -X POST -u mircea1:123
https://toolbar-dev.ezuce.com:6666/callcontroller/mircea1/mircea2/

Here is how I get the call status:
curl  -k -X GET -u mircea1:123
https://toolbar-dev.ezuce.com:6666/callcontroller/mircea1/mircea2/

Am I doing something wrong, or we just need to re-design the callcontroller
REST GET functionality?

Maybe getting all SIP responses and temporary save them, as long as the call
lasts, in a database, and during GET to retrieve them in XML format?

SIP responses: http://en.wikipedia.org/wiki/List_of_SIP_response_codes

Thanks,
Mircea
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/

Reply via email to