Skip to content

Commit

Permalink
Make compile against asterisk-1.6 (references #18)
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.code.sf.net/p/chan-sccp-b/code/trunk@4207 43c1dc8c-776e-4df2-8ef1-6e829299be21
  • Loading branch information
ddegroot committed Feb 7, 2013
1 parent 691329e commit 29c55dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sccp_channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -2078,15 +2078,19 @@ void sccp_channel_transfer_complete(sccp_channel_t * sccp_destination_local_chan

/* update transferee */
PBX(set_connected_line) (sccp_source_local_channel, toNumber, toName, connectedLineUpdateReason);
#if ASTERISK_VERSION_GROUP > 106 /*! \todo change to SCCP_REASON Codes, using mapping table */
if(PBX(sendRedirectedUpdate)){
PBX(sendRedirectedUpdate)(sccp_source_local_channel, fromNumber, fromName, toNumber, toName, AST_REDIRECTING_REASON_UNCONDITIONAL);
}
#endif

/* update ringin channel directly */
PBX(set_connected_line) (sccp_destination_local_channel, originalCallingPartyNumber, originalCallingPartyName, connectedLineUpdateReason);
#if ASTERISK_VERSION_GROUP > 106 /*! \todo change to SCCP_REASON Codes, using mapping table */
if(PBX(sendRedirectedUpdate)){
PBX(sendRedirectedUpdate)(sccp_destination_local_channel, fromNumber, fromName, toNumber, toName, AST_REDIRECTING_REASON_UNCONDITIONAL);
}
#endif
}


Expand Down

0 comments on commit 29c55dd

Please sign in to comment.