Hello Mike,
 
Thanks for the response.
 
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]>           
 
For all outgoing calls I get "logan"<sip:[EMAIL PROTECTED]> and this is exactly what 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.
 
If this doesn't work then I would store the handles of all outgoing calls.
 
Best Wishes,
Hitesh
----- Original Message -----
To: logan
Sent: Tuesday, August 29, 2006 8:33 PM
Subject: Re: [sipxtapi-dev] How to knw if the call is inbound or outbound?

Hitesh,
 
Sorry, my mistake.  The remote contact is always just what it sounds like, the remote party's contact - it doesn't tell you whether the invite was originated by you or the other party.
 
My suggestion would be , at the applcation level,  to simply get your outgoing call handles (ones obtained from sipxCallCreate and used in sipxCallConnect), and store them in a collection of outgoing call handles, maintained by your app.
 
-Mike

 
On 8/29/06, Michael Cohen <[EMAIL PROTECTED]> wrote:
Hitesh,
 
You could also try using

sipxCallGetRemoteContact,

and, compare the results with your known lines' contacts.

 

-Mike Cohen
[EMAIL PROTECTED]
[EMAIL PROTECTED]



On 8/28/06, logan < [EMAIL PROTECTED]> wrote:
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