Skip to content

Commit

Permalink
sipt: $sipt(redirection_number) evaluates the value as a numerical value
Browse files Browse the repository at this point in the history
sipt: $sipt(redirection_number) evaluates the value as a numerical value
  • Loading branch information
sergey-vb committed Jan 15, 2019
1 parent 0a5cba4 commit 34fb47f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/sipt/ss7_parser.c
Expand Up @@ -384,8 +384,8 @@ int isup_get_redirection_number(unsigned char *buf, int len, char* sb_buf)
sbparamlen = (buf[offset+1] & 0xFF) - 2;

while ((sbparamlen > 0) && (buf[offset] != 0)) {
sb_buf[sb_i]=(buf[offset+4+sb_j] & 0x0F) + '\x30';
sb_buf[sb_i+1]=(buf[offset+4+sb_j]>>4 & 0x0F) + '\x30';
sb_buf[sb_i]="0123456789ABCDEF"[(buf[offset+4+sb_j] & 0x0F)];
sb_buf[sb_i+1]="0123456789ABCDEF"[(buf[offset+4+sb_j] >>4 & 0x0F)];
sb_i=sb_i+2;
sbparamlen--;
sb_j++;
Expand Down

0 comments on commit 34fb47f

Please sign in to comment.