Skip to content

Commit

Permalink
Add printing for msrp to proto to string functions
Browse files Browse the repository at this point in the history
  • Loading branch information
rvlad-patrascu committed Mar 8, 2022
1 parent 3ee9a2f commit 4c1a057
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions socket_info.h
Expand Up @@ -430,6 +430,12 @@ static inline char* proto2str(int proto, char *p)
*(p++) = 'p';
*(p++) = 'p';
break;
case PROTO_MSRP:
*(p++) = 'm';
*(p++) = 's';
*(p++) = 'r';
*(p++) = 'p';
break;
default:
LM_CRIT("unsupported proto %d\n", proto);
}
Expand Down Expand Up @@ -475,6 +481,9 @@ static inline char* proto2upper(int proto, char *p)
case PROTO_SMPP:
p = memcpy(p, STR_L("SMPP")) + sizeof("SMPP")-1;
break;
case PROTO_MSRP:
p = memcpy(p, STR_L("MSRP")) + sizeof("MSRP")-1;
break;
default:
LM_CRIT("unsupported proto %d\n", proto);
}
Expand Down

0 comments on commit 4c1a057

Please sign in to comment.