MODSOFIA-39

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15609 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2009-11-23 14:57:56 +00:00
parent f915ee4a31
commit cfbf446e24
1 changed files with 5 additions and 1 deletions

View File

@ -1588,7 +1588,11 @@ static int sofia_reg_nonce_callback(void *pArg, int argc, char **argv, char **co
{
nonce_cb_t *cb = (nonce_cb_t *) pArg;
switch_copy_string(cb->nonce, argv[0], cb->nplen);
cb->last_nc = zstr(argv[1]) ? 0 : atoi(argv[1]);
if (argc == 2) {
cb->last_nc = zstr(argv[1]) ? 0 : atoi(argv[1]);
} else {
cb->last_nc = 0;
}
return 0;
}