Hello,
 
From sipXtapi docs:
 
sipxCallGetLocalID (const SIPX_CALL hCall, char *szID, const size_t iMaxLength);
Get the SIP identity of the local connection.
 
The identity represents either 1) who was called in the case of a inbound call, or 2) the line identity used in an outbound call.
 
I get the following results with it:
 
Incoming Call: <sip:[EMAIL PROTECTED]:5060>;tag=31760
Outgoing Call: "logan"<sip:[EMAIL PROTECTED]>            //this is the address that I use in a call to sipxLineAdd
 
So, can I use this method to distinguish between an incoming and an outgoing call? If there is a catch then please let me know.
 
Best Wishes,
Hitesh
 
----- Original Message -----
From: logan
Sent: Monday, August 28, 2006 7:04 PM
Subject: Re: [sipxtapi-dev] How to knw if the call is inbound or outbound?

Hi,
 
Thanks for the response.
 
But if you do have the call initiated - then you do already know if it is inbound or outbound...
Yes, but before I set out to maintain the info myself I wanted to check if there is already an API to do it.
 
Best Wishes,
Hitesh
 
 
----- Original Message -----
From: "Wolfgang Pichler" <[EMAIL PROTECTED]>
To: "logan" <[EMAIL PROTECTED]>
Sent: Monday, August 28, 2006 4:24 PM
Subject: Re: [sipxtapi-dev] How to knw if the call is inbound or outbound?

> Hi,
>
> i think there is nothing to determine this...
>
> But if you do have the call initiated - then you do already know if it
> is inbound or outbound...
>
> regards,
> Wolfgang
>
> logan schrieb:
>> Hi,
>> 
>> Once a call is connected all we have it's handle, then how can I
>> determine if the call came in or if it was an outgoing call?
>> 
>> Any sipXtapi API to do this??
>> 
>> Please help me guys.
>> 
>> Regards,
>> Hitesh
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> sipxtapi-dev mailing list
>>
[email protected]
>> List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
>
>
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to