Merge pull request #392 in FS/freeswitch from ~VIPKILLA/freeswitch:master to master

* commit 'e2cf1f5270b22c1d6e36fcdc200cd6aa76c7511e':
  FS-7954: [mod_nibblebill] use switch_core_session_execute_exten instead of switch_ivr_session_transfer to perform inline dialplan action
This commit is contained in:
Mike Jerris 2015-09-01 13:02:44 -05:00
commit c3dbf25bd7
1 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@
* Contributor(s): * Contributor(s):
* Darren Schreiber <d@d-man.org> * Darren Schreiber <d@d-man.org>
* Rupa Schomaker <rupa@rupa.com> * Rupa Schomaker <rupa@rupa.com>
* Emmanuel Schmidbauer <e.schmidbauer@gmail.com> * Emmanuel Schmidbauer <eschmidbauer@gmail.com>
* *
* mod_nibblebill.c - Nibble Billing * 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: * 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 */ /* Make sure we are in the media path on B leg */
switch_ivr_media(uuid, SMF_REBRIDGE); switch_ivr_media(uuid, SMF_REBRIDGE);
/* Transfer the B leg */ /* Execute extension on the B leg */
switch_ivr_session_transfer(b_session, argv[0], argv[1], argv[2]); switch_core_session_execute_exten(b_session, argv[0], argv[1], argv[2]);
switch_core_session_rwunlock(b_session); 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); uuid = switch_core_session_get_uuid(session);
switch_ivr_media(uuid, SMF_REBRIDGE); switch_ivr_media(uuid, SMF_REBRIDGE);
/* Transfer the A leg */ /* Execute extension on the A leg */
switch_ivr_session_transfer(session, argv[0], argv[1], argv[2]); switch_core_session_execute_exten(session, argv[0], argv[1], argv[2]);
free(mydup); free(mydup);
} }