[reSIProcate] Still some confusion I need clarification on.

John Draper lists at webcrunchers.com
Thu Sep 29 01:32:54 CDT 2005


Hi,

In the BasicCall.cxx module in dum/test directory, is the following code
fragment...

   auto_ptr<AppDialogSetFactory> uac_dsf(new testAppDialogSetFactory);
   dumUac->setAppDialogSetFactory(uac_dsf);

I presume this code is referring to the Client side....

In looking at the definition of the "testAppDialogSetFactory",  it is 
defined as such...

class testAppDialogSetFactory : public AppDialogSetFactory
{
public:
   virtual AppDialogSet* createAppDialogSet(DialogUsageManager& dum, 
const SipMessage& msg)
   {  return new testAppDialogSet(dum, Data("UAS") + Data("(") + 
getMethodName(msg.header(h_RequestLine).getMethod()) + Data(")"));  }
   // For a UAS the testAppDialogSet will be created by DUM using this 
function.  If you want to set
   // Application Data, then one approach is to wait for 
onNewSession(ServerInviteSessionHandle ...)
   // to be called, then use the ServerInviteSessionHandle to get at the 
AppDialogSet or AppDialog,
   // then cast to your derived class and set the desired application data.
};

NOTE:  it is referring to UAS....  but isn't this the server side?  Is 
this implying that
"testAppDialogSetFactory" can be used to make a factory for both server 
and client?
If this is the case,  then why is it setting the data to "UAS" as you 
see above?
Shouldn't this be UAC?   I'm only working on a client part... so am only 
interested
in making a DUM Client and not a server.

John



More information about the resiprocate-devel mailing list