Re: How to use SipTransceiver with an existing socket?

Ben Greear <[email protected]> Tue, 11 Oct 2005 21:15:05 -0700
Newsgroups gmane.comp.lib.vovida.vocal
Organization Candela Technologies
Message-ID <[email protected]>
Abraham WEI wrote:
>     I am asked to use the Vovida stack in an existing server source
> code. That server has used Port 5060 for listening. As a result I
> cannot build a SipTransceiver instance with
> SipTransceiver myStack ("", 5060);
> 
> I may build one with
> SipTransceiver myStack ("". 5065);
> but I am afraid this may result in the other peer recogconizing Port
> 5065 as my port, sending datagrams only to that port, neglecting my
> Port 5060.  Of course I need other peers to send datagrams to my Port
> 5060, since our existing source code listens to that port.
> 
> My question is, whether I can use Vovida stack to work with an
> existing socket? I may pass a socket as argument to it.

Shouldn't be too hard to implement, but why not just close the
existing 5060 and open a new one with the SipTransceiver?

Surely you don't want two different threads reading from the
same socket?

Ben

> 
> Abe
> 


-- 
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com

_______________________________________________
vocal mailing list
[email protected]
To unsubscribe, please go to http://www.vovida.org/mailman/listinfo/vocal