Make call from REST API

33 views
Skip to first unread message

Jaime Casero

unread,
Jun 4, 2014, 8:34:08 AM6/4/14
to rest...@googlegroups.com
Hi,
From the RestComm doc to make a new call I must POST to the "Calls" resource. After some attempts (To and From must be numbers) I have managed to make the call succsefull returning 200OK, but the is no call in the actual phones. In addition, I don't understand the service semantic well, since the To and From parameters must be numbers. I expected theses parameters to allow SIP client ids, or at least SIP URIs. The mandatory "Url" parameter is not inmediatelly clear to me, what is the intended behaviour of this service?. From my experience using other Telephony APIs, I expected the From phone to ring inmediatelly, and once the call is picked up, the To phone starting to ring (other systems allows auto-origination, but that is not my expectation with standard SIP user agents).

In the end I added some numbers with simple scripts. The number 600 has a simple script dialing to Alice, while 500 dial Bob. 

Find below the response from RestComm (the call is kept in Queue state for some reason):
<RestcommResponse>
 <Call>
<Sid>
CA3035142be2ac4bc1b9b00f55b165cc0d
</Sid>
<DateCreated>
2014-06-04T08:32:28.279-04:00
</DateCreated>
<DateUpdated>
2014-06-04T08:32:28.288-04:00
</DateUpdated>
<ParentCallSid />
<AccountSid>
ACae6e420f425248d6a26948c17a9e2acf
</AccountSid>
<To>
+1600
</To>
<From>
+1500
</From>
<PhoneNumberSid />
<Status>
queued
</Status>
<StartTime>
2014-06-04T08:32:28.288-04:00
</StartTime>
<EndTime />
<Duration />
<Price>
0.0
</Price>
<PriceUnit>
USD
</PriceUnit>
<Direction>
outbound-api
</Direction>
<AnsweredBy />
<ApiVersion>
2012-04-24
</ApiVersion>
<ForwardedFrom />
<CallerName />
<Uri>
/2012-04-24/Accounts/ACae6e420f425248d6a26948c17a9e2acf/Calls/CA3035142be2ac4bc1b9b00f55b165cc0d
</Uri>
 <SubresourceUris>
<Notifications>
/restcomm/2012-04-24/Accounts/ACae6e420f425248d6a26948c17a9e2acf/Calls/CA3035142be2ac4bc1b9b00f55b165cc0d/Notifications
</Notifications>
<Recordings>
/restcomm/2012-04-24/Accounts/ACae6e420f425248d6a26948c17a9e2acf/Calls/CA3035142be2ac4bc1b9b00f55b165cc0d/Recordings
</Recordings>
 </SubresourceUris>
 </Call>
</RestcommResponse>

Someone has any ideas on this subject? Am i missing something?

THanks in advance.

Jaime Casero

unread,
Jun 4, 2014, 8:50:25 AM6/4/14
to rest...@googlegroups.com
obviously this is a duplicate from the previous one. I didn't realize about the approval process...
Reply all
Reply to author
Forward
0 new messages