umm... this did not compile on x86-64, and could not possibly have worked on any...
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 2 Jan 2008 18:17:15 +0000 (18:17 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 2 Jan 2008 18:17:15 +0000 (18:17 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95893 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 76ece38..0f0dc35 100644 (file)
@@ -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);