*********************************************************************************
*                                                                               *
* NOTICE:                                                                       *
* This document contains information that is confidential and proprietary to    *
* RADVision LTD.. No part of this publication may be reproduced in any form     *
* whatsoever without written prior approval by RADVision LTD..                  *
*                                                                               * 
* RADVision LTD. reserves the right to revise this publication and make changes *
* without obligation to notify any person of such revisions or changes.         *    
*********************************************************************************

                          Simple B2BUA Readme File
                      ---------------------------------
General
-------
1. The simple B2BUA is a sample code designed to show how to use 
   RADVISION's SIP Server toolkit in order to build a simple B2B application.


Usage
-----
2. To activate the application simply double click the executable 
   (SimpleB2BUA.exe by default), or write its name at the command prompt and hit Enter.

3. The first thing you need to do is to supply the destination of the uas to
    forward the initial INVITE to (in the format: To: sip:user@host:port) and
    the source of the request (in the format: From: sip:user@host:port) - both
    should be no longer then 255 characters.

4. The SIP server is using APP_LOCAL_INTERFACE address as its listening address. 
   Before running the sample you should update the address definitions of 
   APP_LOCAL_INTERFACE located in SimpleB2BUATypes.h file.

5. After the B2BUA application has been started it will wait for incoming requests.
   a. You can call from a user agent to the B2B address and the INVITE will be 
      forwarded to a uas according to the To address supplied at initialization.
   b. After uas accpet the call, call between 2 ua's is connected.
   c. You can send reInvite and / or generel request from each of the user agents.
      (and accept them from the other ua).
      The B2B will forward the request and response.
   d. you can disconnect the call from one of the ua and accpet the BYE request at 
      the second ua. Again, the B2B will forward the request and response, call
      is disconnected.


Notes
-----
6. General function description:
   a. General functions: The following functions are responsible for constructing 
      the Server Toolkit with required parameters (e.g. interfaces list) (B2BUAInit()), registering 
      call backs (RegisterCallBacks()).
   
   b. CallBacks: responsible for controlling the toolkit behaviour. With these 
      functions we attach application objects to B2B and B2BTransc objects
      (AppB2BCreatedEv() and AppB2BTranscCreatedEv()), 
      handle state changes 
      (AppB2BStateChangeEvHandler(), AppB2BModifyStateChangeEvHandler(), 
       AppB2BDisconnectStateChangeEvHandler() and AppB2BTranscStateChangeEvHandler), 
       and notify about messages being sent to and received from the toolkit 
      (AppB2BMsgReceivedEv(), and AppB2BMsgToSendEv()).

   c. Utility functions: function used for displaying the status of the application.




