Sorry to bother u ppl with this problem again. But kind of blank on finding a
solution to sort it.
-Below is the set of line codes that I executed upon clicking a button.
Registration succeeded.
sipxInitialize(&g_hInst, 5060, 5060, 0,80000,1);
sipxEventListenerAdd(g_hInst, EventCallBack, NULL) ;
sipxLineAdd(g_hInst,"sip:[EMAIL PROTECTED]",&g_hLine);
sipxLineAddCredential(g_hLine, "301", "1234", "asterisk") ;
sipxLineRegister(g_hLine, true);
-To remove the registration, I executed the codes below:
sipxEventListenerRemove(g_hInst, EventCallBack, NULL) ;
sipxLineRemove(g_hLine);
if(sipxUnInitialize(g_hInst) != SIPX_RESULT_SUCCESS)
{
sipxUnInitialize(g_hInst, true);
}
-To register back the setting, I executed the same set of codes. But this
action keeps on giving 401 Unauthorized Error.
sipxInitialize(&g_hInst, 5060, 5060, 0,80000,1);
sipxEventListenerAdd(g_hInst, EventCallBack, NULL) ;
sipxLineAdd(g_hInst,"sip:[EMAIL PROTECTED]",&g_hLine);
sipxLineAddCredential(g_hLine, "301", "1234", "asterisk") ;
sipxLineRegister(g_hLine, true);
What are the possibilities of me facing the problem? I've check the
credentials,all are correct.
____________________________________________________________________________________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/