Start a new topic

GetCurrentCalls API does not show actual phone numbers

 Hello, we are trying to use GetCurrentCalls API and it works fine but it does not actually show incoming or outgoing phone number.


This is the API call we make 

 

<?xml version="1.0" encoding="UTF-8"?>
<XML>
<Tenant>
    <Name>xxxx</Name>
    <Auth>xxxxx</Auth>
</Tenant>
<ActionName>GetCurrentCalls</ActionName>
</XML>

 

This is an API response

<?xml version='1.0' encoding='UTF-8'?>
<XML>
    <Call>
        <Extension>
            <![CDATA[104-xxx]]>
        </Extension>
        <ChannelID>
            <![CDATA[SIP/104-xxx-00f0dad8]]>
        </ChannelID>
        <Context>
            <![CDATA[from-inside]]>
        </Context>
        <Exten>
            <![CDATA[s]]>
        </Exten>
        <Priority>
            <![CDATA[1]]>
        </Priority>
        <Stats>
            <![CDATA[Up]]>
        </Stats>
        <Application>
            <![CDATA[AppQueue]]>
        </Application>
        <DialedNumber>
            <![CDATA[(Outgoing Line)]]>
        </DialedNumber>
        <CallerID>
            <![CDATA[104]]>
        </CallerID>
        <Accountcode>
            <![CDATA[]]>
        </Accountcode>
        <Unknown>
            <![CDATA[]]>
        </Unknown>
        <Amaflags>
            <![CDATA[3]]>
        </Amaflags>
        <Duration>
            <![CDATA[66]]>
        </Duration>
        <Bridged>
            <![CDATA[SIP/EuphoriaIn2-00f0dab5]]>
        </Bridged>
        <UniqueId>
            <![CDATA[pbx3-1527244671.18610369]]>
        </UniqueId>
    </Call>
</XML>

 and it shows


        <DialedNumber>

            <![CDATA[(Outgoing Line)]]>

        </DialedNumber>

Why it outputs "Outgoing Line" instead of actual phone number?


And for incoming calls what is the correct field to get incoming number?


Thanks


2 people have this question

Morning,


The development team is currently looking into the API calls and will respond as soon as we have the fix.


Apologies for the delay,


Regards,

Jon

Morning,


Apologies for the delay, please try the "GetCallActivity" API call to get more comprehensive result, 


Sample: 


<XML>

<Tenant>

<Name>xxx</Name>

<Auth>xxx</Auth>

</Tenant>

<ActionName>GetCallActivity</ActionName>

</XML>


for Inbound you can refer to the "CallFrom" node.


Let us know if this does not assist you in getting the correct results,




1 person likes this

Hi, we had a similar situation where we needed to read the queue name and incoming number from a current call.


Can I suggest that this action is added to the API ActionName Reference?

GetCallActivity is returning all the details that we need, is there any chance of getting this action added to the EuphoriaApiDll?


The reason for the request is that all calls to the web api take at least 4.1 seconds, and the same calls done via the DLL are returned in under half a second, usually 4 seconds quicker than the web api call.

Or please let me know if it is already a method on the Dll that we have overlooked.

Thanks

David

Login or Signup to post a comment