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

Scott Godin sgodin at sipspectrum.com
Wed Sep 18 11:48:36 CDT 2013


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 at gmail.com> 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 at resiprocate.org
> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20130918/36f5eb4c/attachment.htm>


More information about the resiprocate-devel mailing list