The SIP call can traverse through any number of devices.  Including proxy 
servers etc.  We have no control on it.  So we decided it will be more 
complicated to figure this scenario out.  Instead we decided to use a feature 
code to trigger the feature. 

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Paul 
Kyzivat
Sent: Friday, October 07, 2011 2:51 AM
To: [email protected]
Subject: Re: [Sip-implementors] How to detect UA calling itself

On 9/26/11 12:00 PM, Worley, Dale R (Dale) wrote:
> ________________________________________
> From: [email protected] 
> [[email protected]] On Behalf Of Ramesh 
> Babu Kuppili [[email protected]]
>
> We have a analog to SIP gateway that collects digits dialed from POTS lines 
> and initiates the SIP call by sending INVITE to a proxy server.
>
> How can a user agent detect that it is calling itself in SIP? Either from 
> incoming INVITE or from a INVITE response?
>
> We have to implement a feature which gets triggered based on this situation.
> _______________________________________________
>
> If an incoming INVITE has a Call-Id that is the same as the Call-Id of an 
> INVITE that the UA sent...

This works in simple cases.

But if the call traverses an SBC or gateway before getting back to itself, it 
can get difficult to tell.

Depending on what you are trying to do, you can either ignore this case, 
treating it as not a call to self, or else you can employ heuristics to decide 
when you know you have an outgoing call pending.

        Thanks,
        Paul
_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to