Hi Amar, Such a complex logic indeed. Why then you don't just create one? :) BR, nanang On Tue, Nov 15, 2011 at 6:07 PM, Amar Akshat <amar.akshat at gmail.com> wrote: > Hello, > I am trying to setup a resgistration of my endpoint with PJSUA api. > > ? ?pjsua_acc_config* acc_cfg > ? ?pjsua_acc_config_default(acc_cfg); > ? ?acc_cfg->id = pj_str("sip:user-4 at 192.168.5.18:5060"); > ? ?acc_cfg->reg_uri = pj_str("sip:192.168.5.18:5060"); > ? ?acc_cfg->cred_count = 1; > ? ?acc_cfg->cred_info[0].scheme = pj_str("Digest"); > ? ?acc_cfg->cred_info[0].realm = pj_str("*"); > ? ?acc_cfg->cred_info[0].username = pj_str("user-1"); > ? ?acc_cfg->cred_info[0].data_type = 0; > ? ?acc_cfg->cred_info[0].data = pj_str("1234"); > > This is how I am initializing the parameters. What am I missing here, > because, when I do > > pjsua_acc_add(acc_cfg,PJ_TRUE,NULL) > It gives me an error with > > ./src/pjsua-lib/pjsua_acc.c:383: pjsua_acc_add: Assertion > `pjsua_var.tpdata[0].data.ptr != ((void *)0)' failed. > Aborted > > When I checked the pjsua_acc:383, it seems no transport is found. Why > would it require transport to simply send our register packets to the > Asterisk Server. ? > > -- > > Thank you... > > Amar Akshat > > Please excuse any spelling mistakes, as this email was sent from a > "not so good" mobile device. > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >