Herman,
 
 
>Now the users can dial out, and can be reached from the outside. Fine, no
>problem. However, now these users want to call each other, and that's where
>things go wrong.
>Staying with the PC scenario we have [EMAIL PROTECTED] and
>[EMAIL PROTECTED] and Ann wants to call Bob.
 
Very interesting scenario. So, for your example above, your application has loaded sipXtapi.dll, and has called sipxInitialize only once, and has called sipxLineAdd multiple times (once for each user)?
Correct?  If this is the case, I may not be able to provide much help. 
 
I've never tried something like this before, however, (and I apologize if I am telling you something you already know) - our unit tests (sipXtapiTest.exe) provide examples of placing and receiving calls on different ports within the same process.  The unit tests invoke sipxInitialize mutliple times, each time with a different port value that the user agent instance binds to.
 
-Mike
 
 
 
 
 


 
On 8/30/06, Herman Kuiper <[EMAIL PROTECTED]> wrote:
Hi Mike,

> I'm not sure I understand the above scenario.  Can you include a sip
> ladder diagram and/or an ethereal capture to better describe the rejected
> INVITE.

About the rejected INVITE: we are using a single sipXtapi stack for multiple
simultaneous user agents. Think of it as a PC with multiple audio cards each
serving one user.

Now the users can dial out, and can be reached from the outside. Fine, no
problem. However, now these users want to call each other, and that's where
things go wrong.
Staying with the PC scenario we have [EMAIL PROTECTED] and
[EMAIL PROTECTED] and Ann wants to call Bob.

This fails because somewhere in SipConnection.cpp (where it says: "Special
case: We sent the invite to our self") sipXtapi refuses to make a connection
with itself. Removing this check (just for the heck) results in other
errors, probably because the sipXtapi stack is uncomfortable with handling a
call that is both incoming and outgoing at the same time.

Note that mypc is not really a PC but rather a 50MHz piece of embedded
hardware serving multiple (up to 4) users.

We were thinking about - but have not tried yet - to use two instances of
the sipXtapi library: one for incoming and one for outgoing calls, but we
were hoping that a less complex (less heavy in terms of memory usage and
number of threads) solution would be possible.

       Herman

-----------------------------------------------------------------
Herman Kuiper - m: [EMAIL PROTECTED] - w: http://www.frontier.nl
Beech Ave 162 - 1119 PS  Schiphol-Rijk - t/f: 020-6589034/6142816

_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to