- Joined
- Jun 30, 2020
- Messages
- 7
- Reaction score
- 0
Can anyone suggest the right scenario for my usecase, i need the following information:
callid = an unique identifier for the call
callfrom = the external phone number
callto = the internal phone number
status = INCOMING_RINGING, OUTGOING_RINGING, CONNECTED,DISCONNECTED en TRANSFER
outgoing = either true or false
timestamp = unix timestamp
And I'm able to get most of this information in [Scenario Id="ReportCall"] but that API call is done too late, I need this call to happen as the phone is ringing, not when the phone call is over. What Scenario would I use for that, and where can I find more information about that?
callid = an unique identifier for the call
callfrom = the external phone number
callto = the internal phone number
status = INCOMING_RINGING, OUTGOING_RINGING, CONNECTED,DISCONNECTED en TRANSFER
outgoing = either true or false
timestamp = unix timestamp
And I'm able to get most of this information in [Scenario Id="ReportCall"] but that API call is done too late, I need this call to happen as the phone is ringing, not when the phone call is over. What Scenario would I use for that, and where can I find more information about that?
XML:
<?xml version="1.0" encoding="utf-8"?>
<Crm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Country="US" Name="Realworks" Version="4" SupportsEmojis="true" ListPageSize="0">
<Number Prefix="AsIs" MaxLength="[MaxLength]" />
<Connection MaxConcurrentRequests="16" />
<Parameters>
<Parameter Name="ServerId" Type="String" Parent="General Configuration" Editor="String" Title="Server ID:" Validation="" Default="" ListValues="" RequestUrl="" RequestUrlParameters="" ResponseScenario="" />
<Parameter Name="UserId" Type="String" Parent="General Configuration" Editor="String" Title="User ID:" Validation="" Default="" ListValues="" RequestUrl="" RequestUrlParameters="" ResponseScenario="" />
<Parameter Name="AuthToken" Type="String" Parent="General Configuration" Editor="String" Title="Auth Token:" Validation="" Default="" ListValues="" RequestUrl="" RequestUrlParameters="" ResponseScenario="" />
<Parameter Name="CreateContactEnabled" Type="Boolean" Parent="General Configuration" Editor="String" Title="Allow contact creation directly to your CRM using 3CX Web Client" Validation="" Default="False" ListValues="" RequestUrl="" RequestUrlParameters="" ResponseScenario="" />
<Parameter Name="ReportCallEnabled" Type="Boolean" Parent="General Configuration" Editor="String" Title="Enable Call Journaling" Validation="" Default="True" ListValues="" RequestUrl="" RequestUrlParameters="" ResponseScenario="" />
</Parameters>
<Authentication Type="No" />
<Scenarios>
<Scenario Id="ReportCall" Type="REST" EntityId="" EntityOrder="">
<Request SkipIf="" Url="https://REDACTED/webservices/rest/ippbx/signaleergesprek/[ServerId]/[UserId]/[AuthToken]/01[CallId]/[Number]/[Agent]/2/[[CallDirection].Replace("Inbound","false").Replace("Outbound","true")]/[CallStartTimeLocalMillis]" MessagePasses="0" Message="" RequestContentType="" RequestEncoding="UrlEncoded" RequestType="Get" ResponseType="Json" />
<Rules>
<Rule Type="Any" Ethalon="">id</Rule>
</Rules>
<Variables>
<Variable Name="Id" LookupValue="" Path="id"><Filter /></Variable>
<Variable Name="ServerId" LookupValue="" Path="[ServerId]"><Filter /></Variable>
<Variable Name="UserId" LookupValue="" Path="[UserId]"><Filter /></Variable>
<Variable Name="AuthToken" LookupValue="" Path="[AuthToken]"><Filter /></Variable>
<Variable Name="CallId" LookupValue="" Path="[CallId]"><Filter /></Variable>
<Variable Name="CallFrom" LookupValue="" Path="[CallFrom]"><Filter /></Variable>
<Variable Name="CallTo" LookupValue="" Path="[CallTo]"><Filter /></Variable>
<Variable Name="Status" LookupValue="" Path="[Status]"><Filter /></Variable>
<Variable Name="Outgoing" LookupValue="" Path="[Outgoing]"><Filter /></Variable>
<Variable Name="IsOutgoing" LookupValue="" Path=""><Filter /></Variable>
<Variable Name="Timestamp" LookupValue="" Path=""><Filter /></Variable>
</Variables>
<Outputs AllowEmpty="false" />
</Scenario>
<Scenario Id="" Type="REST" EntityId="" EntityOrder="">
<Request SkipIf="" Url="https://REDACTED/call/[Number]" MessagePasses="0" Message="" RequestContentType="" RequestEncoding="UrlEncoded" RequestType="Get" ResponseType="Json" />
<Rules>
<Rule Type="Any" Ethalon="">id</Rule>
</Rules>
<Variables>
<Variable Name="Id" LookupValue="" Path="id"><Filter /></Variable>
<Variable Name="ServerId" LookupValue="" Path="[ServerId]"><Filter /></Variable>
<Variable Name="UserId" LookupValue="" Path="[UserId]"><Filter /></Variable>
<Variable Name="AuthToken" LookupValue="" Path="[AuthToken]"><Filter /></Variable>
<Variable Name="CallId" LookupValue="" Path="[CallId]"><Filter /></Variable>
<Variable Name="CallFrom" LookupValue="" Path="[CallFrom]"><Filter /></Variable>
<Variable Name="CallTo" LookupValue="" Path="[CallTo]"><Filter /></Variable>
<Variable Name="Status" LookupValue="" Path="[Status]"><Filter /></Variable>
<Variable Name="Outgoing" LookupValue="" Path="[Outgoing]"><Filter /></Variable>
<Variable Name="IsOutgoing" LookupValue="" Path=""><Filter /></Variable>
<Variable Name="Timestamp" LookupValue="" Path=""><Filter /></Variable>
</Variables>
<Outputs AllowEmpty="false" />
</Scenario>
</Scenarios>
</Crm>