From e2cf1f5270b22c1d6e36fcdc200cd6aa76c7511e Mon Sep 17 00:00:00 2001 From: Emmanuel Schmidbauer Date: Tue, 25 Aug 2015 08:52:01 -0400 Subject: [PATCH] FS-7954: [mod_nibblebill] use switch_core_session_execute_exten instead of switch_ivr_session_transfer to perform inline dialplan action --- src/mod/applications/mod_nibblebill/mod_nibblebill.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mod/applications/mod_nibblebill/mod_nibblebill.c b/src/mod/applications/mod_nibblebill/mod_nibblebill.c index f6d1b51ed9..f5868b00d9 100644 --- a/src/mod/applications/mod_nibblebill/mod_nibblebill.c +++ b/src/mod/applications/mod_nibblebill/mod_nibblebill.c @@ -28,7 +28,7 @@ * Contributor(s): * Darren Schreiber * Rupa Schomaker - * Emmanuel Schmidbauer + * Emmanuel Schmidbauer * * mod_nibblebill.c - Nibble Billing * Purpose is to allow real-time debiting of credit or cash from a database while calls are in progress. I had the following goals: @@ -357,8 +357,8 @@ static void transfer_call(switch_core_session_t *session, char *destination) /* Make sure we are in the media path on B leg */ switch_ivr_media(uuid, SMF_REBRIDGE); - /* Transfer the B leg */ - switch_ivr_session_transfer(b_session, argv[0], argv[1], argv[2]); + /* Execute extension on the B leg */ + switch_core_session_execute_exten(b_session, argv[0], argv[1], argv[2]); switch_core_session_rwunlock(b_session); } } @@ -367,8 +367,8 @@ static void transfer_call(switch_core_session_t *session, char *destination) uuid = switch_core_session_get_uuid(session); switch_ivr_media(uuid, SMF_REBRIDGE); - /* Transfer the A leg */ - switch_ivr_session_transfer(session, argv[0], argv[1], argv[2]); + /* Execute extension on the A leg */ + switch_core_session_execute_exten(session, argv[0], argv[1], argv[2]); free(mydup); }