Skip to content

Commit

Permalink
Fixed simplified callid parser
Browse files Browse the repository at this point in the history
(cherry picked from commit 3316a2a)
  • Loading branch information
vladpaiu committed Aug 25, 2014
1 parent 9e8258b commit 9827ee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parser/msg_parser.c
Expand Up @@ -905,13 +905,13 @@ int extract_ftc_hdrs( char *buf, int len, str *from, str *to, str *cseq,str *cal
if (state!=2) {state = 1;break;}
/* hdr starting with 'c' */
if (cseq==0 && callid == 0) break;
if (p+3<end && LC(p+1)=='s' && LC(p+2)=='e' && LC(p+3)=='q') {
if (cseq && p+3<end && LC(p+1)=='s' && LC(p+2)=='e' && LC(p+3)=='q') {
b = p;
p+=3;
state = 4; /* "cseq" found */
fill = cseq;
flag = 0x4;
} else if (p+6<end && LC(p+1)=='a' && LC(p+2) == 'l' &&
} else if (callid && p+6<end && LC(p+1)=='a' && LC(p+2) == 'l' &&
LC(p+3) == 'l' && LC(p+4) == '-' && LC(p+5) == 'i' &&
LC(p+6) == 'd') {
b = p;
Expand Down

0 comments on commit 9827ee5

Please sign in to comment.