summaryrefslogtreecommitdiff
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2008-01-02 18:17:15 +0000
committerKevin P. Fleming <kpfleming@digium.com>2008-01-02 18:17:15 +0000
commit027cb522d91bd132b6e9af8796b66d89ee6d05b2 (patch)
tree39b60dc218318768e32914506135773eaccabef2 /channels/chan_zap.c
parente0e6e814773c68395cf8a725f6e923d6a1566d34 (diff)
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
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 76ece3874..0f0dc358e 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);