What is the recommended approach with different config and requestline id for REGISTER & PUBLISH

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

 



Hi,

  My requirement demands me to use different config id and request line URI's. Therefore I had add two accounts.

What is the recommended approach for the above use case.

Currentlly I am following below approach.
pjsua_acc_add(reg_account_config, PJ_TRUE, reg_acc_id);
After successful registration.
pjsua_acc_add(pub_account_config, PJ_TRUE, pub_acc_id);
pjsua_acc_set_online_status(pub_acc_id, PJ_TRUE);

Now there are two account ids.

On logout of my application, I have to perform unpublish and unregister.
I have followed two approaches
Approach 1: invoke pjsua_destroy

Approach 2: Manually invoke pjsua_set_register(reg_acc_id, PJ_FALSE).


There are places in my application that demands unpublish and unregister to be invoked  programatically without pjsua_destroy.

By doing so SIP Requests are not sent becuase reg_acc_id does not know about publish account id and pub_acc_id does not know about reg_acc_id. But un* action fails. and apparently un* request messages are not sent.


Regards
Subbu
_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[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