Module: sip-router Branch: 4.1 Commit: d9f256f123a903b54a45122de99e59a9475dd272 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d9f256f1...
Author: Torrey Searle tsearle@gmail.com Committer: Torrey Searle tsearle@gmail.com Date: Mon Apr 7 09:43:11 2014 +0200
modules/sipt: Fix a bug in updating calling party (cherry picked from commit 2da4dc5b0054f0182f67560fe15958565c0e360b)
---
modules/sipt/ss7_parser.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/sipt/ss7_parser.c b/modules/sipt/ss7_parser.c index 3c6d8ff..528e10d 100644 --- a/modules/sipt/ss7_parser.c +++ b/modules/sipt/ss7_parser.c @@ -415,7 +415,7 @@ int isup_update_calling(struct sdp_mangler * mangle, char * origin, int nai, int case ISUP_PARM_CALLING_PARTY_NUM: res2 = encode_calling_party(origin, nai, presentation, screening, &new_party[1], 255-1); new_party[0] = (char)res2; - replace_body_segment(mangle, offset+1,(int)buf[offset+1],new_party, res2+1); + replace_body_segment(mangle, offset+1,(int)buf[offset+1]+1,new_party, res2+1);
has_calling = 1; break;