[sr-dev] git:master: modules/sipt: Fix a bug in updating calling party

Torrey Searle tsearle at gmail.com
Mon Apr 7 09:44:01 CEST 2014


Module: sip-router
Branch: master
Commit: 2da4dc5b0054f0182f67560fe15958565c0e360b
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2da4dc5b0054f0182f67560fe15958565c0e360b

Author: Torrey Searle <tsearle at gmail.com>
Committer: Torrey Searle <tsearle at gmail.com>
Date:   Mon Apr  7 09:43:11 2014 +0200

modules/sipt: Fix a bug in updating calling party

---

 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 b80ebcc..c6d7023 100644
--- a/modules/sipt/ss7_parser.c
+++ b/modules/sipt/ss7_parser.c
@@ -452,7 +452,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;




More information about the sr-dev mailing list