< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate] how to write code to register multiple sip servers?


Hi Allen,

You can create multiple UserProfiles (the MasterProfile is a UserProfile) and pass this to DialogUsageManager::makeRegistration.

See https://www.resiprocate.org/DUM_Configuration_and_Profiles for more details.

Scott


On Tue, Sep 17, 2013 at 7:37 PM, Allen Guan <allenguan@xxxxxxxxx> wrote:
Hi, all,

I want to write a program which can register to multiple sip servers, the sample code basicRegister.cxx has the following code:
---------
   clientDum.getMasterProfile()->setDefaultRegistrationTime(70);
   clientDum.getMasterProfile()->setDefaultFrom(userAor);
   profile->setDigestCredential(userAor.uri().host(),
                                     userAor.uri().user(),
                                     passwd);
   SharedPtr<SipMessage> regMessage = clientDum.makeRegistration(userAor);
-----------

looks like clientDum can only accept one crediential for registration, what's the proper way to archive my purpose? Any suggestions are welcome. Thanks a lot in advance.

-Allen

_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxx
https://list.resiprocate.org/mailman/listinfo/resiprocate-devel