From: Kevin P. Fleming Date: Wed, 2 Jan 2008 18:17:15 +0000 (+0000) Subject: umm... this did not compile on x86-64, and could not possibly have worked on any... X-Git-Tag: 1.6.0-beta1~3^2~222 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=027cb522d91bd132b6e9af8796b66d89ee6d05b2;p=thirdparty%2Fasterisk.git umm... this did not compile on x86-64, and could not possibly have worked on any platform as it was passing string pointers to a function expecting ints git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95893 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 76ece38749..0f0dc358e4 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -2437,8 +2437,10 @@ static int zt_call(struct ast_channel *ast, char *rdest, int timeout) call_ref_id = pbx_builtin_getvar_helper(ast, "SS7_CALLREF_IDENT"); call_ref_pc = pbx_builtin_getvar_helper(ast, "SS7_CALLREF_PC"); - if (call_ref_id) - isup_set_callref(p->ss7call, (unsigned int) call_ref_id, (unsigned int) call_ref_pc); + if (call_ref_id) { + isup_set_callref(p->ss7call, atoi(call_ref_id), + call_ref_pc ? atoi(call_ref_pc) : 0); + } isup_iam(p->ss7->ss7, p->ss7call); ast_setstate(ast, AST_STATE_DIALING);