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


1 person has 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,



Login or Signup to post a comment