pjsua_acc_add_local and pjsua_acc_config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



One more thing. :)

Actually the so called "local account" is really nothing more than a very
lazy way to create an account. It can be replaced with something like this
(pseudo-code):

   pjsua_acc_config acc_cfg;

   pjsua_acc_config_default(&acc_cfg);
   sprintf(my_uri, "sip:%s", host_ip_address);

   acc_cfg.id = pj_str(my_uri);

   pjsua_acc_add(acc_cfg, ...);

With that, you can configure the account as usual.

The code that R?gis shows would also work as well.

Best regards,
 Benny

On Tue, Jun 26, 2012 at 3:07 PM, Adrien G <adrien_chem at hotmail.com> wrote:

>  Thank you very much all of you for your ideas/help :)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120627/ab4e2aa0/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux