[OpenSER-Devel] SIP ping and usrloc

Johansson Olle E oej at edvina.net
Fri Jul 4 16:39:53 CEST 2008


4 jul 2008 kl. 11.01 skrev Victor Pascual Ávila:

> On Thu, Jul 3, 2008 at 2:23 PM, Jason Penton <jason.penton at smilecoms.com 
> > wrote:
>> I would like to implement some functionality in usrloc to do a SIP  
>> ping
>> (maybe using OPTIONS) before returning a contact making sure the  
>> contact is
>> 'alive'?
>
> If the registered UA is alive, pinging before every usrloc (e.g.
> OPTIONS) you just increase the call setup latency.
>
> If the registered UA is not alive, I'm afraid I don't see the
> difference between pinging before every usrloc (e.g. OPTIONS) and
> sending the corresponding INVITE- you still need to handle timeouts.

As Victor says, It's not very effective to do a ping before another  
transaction.

Since OpenSER already has a function for sending OPTIONs, but  
disregards the replies, it's
easier to add functionality to check the replies and a new field in  
usrloc to
say "yep. it's alive and out there somewhere all right"...

/O 


More information about the Devel mailing list