Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to call uac_auth() without incrementing CSEQ #1613

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Update the wrapper to pass a param to uac_auth()
mstocco committed Feb 24, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 55642a8860d4127afb7646f78f3516f5a9780eb9
11 changes: 10 additions & 1 deletion modules/uac/uac.c
Original file line number Diff line number Diff line change
@@ -530,7 +530,16 @@ static int w_replace_to(struct sip_msg* msg, char* p1, char* p2)

static int w_uac_auth(struct sip_msg* msg, char* p1, char* p2)
{
return (uac_auth(msg)==0)?1:-1;
str cseq_skip_s;
str *cseq_skip = NULL;

if ( p1!=NULL ) {
if (pv_printf_s( msg, (pv_elem_p)p1, &cseq_skip_s)!=0)
return -1;
cseq_skip = &cseq_skip_s;
}

return (uac_auth(msg,cseq_skip)==0)?1:-1;
}