Uploaded image for project: 'FreeSWITCH'
  1. FreeSWITCH
  2. FS-10704

Add event-uuid-name to event socket execute so execute events can be easily tracked

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.18
    • Fix Version/s: 20.19.2, fs-next-release
    • Component/s: core
    • Labels:
      None
    • CPU Architecture:
      x86-64
    • Kernel:
      Linux
    • Userland:
      GNU/Linux
    • Distribution:
      Debian
    • Distribution Version:
      Debian 8 jessie
    • Compiler:
      gcc
    • FreeSWITCH GIT Revision:
      a8ada67679fada7f5e948bd914a1f98e37de06bb
    • GIT Master Revision hash::
      a8ada67679fada7f5e948bd914a1f98e37de06bb
    • Target Version:

      Description

      event-uuid sent in SWITCH_COMMAND event queued to session is included in CHANNEL_EXECUTE and CHANNEL_EXECUTE_COMPLETE, this is great!

      however, we would like to use this value inside a custom event fired by the 'event' app. we tried to use this way
      execute-app-name: [event]
      execute-app-arg: [Event-Subclass=kazoo::noop,Event-Name=CUSTOM,kazoo_event_name=CHANNEL_EXECUTE_COMPLETE,kazoo_application_name=noop,kazoo_application_response=2685ce4e1d08d5e0820dd6985af64c89,Application-UUID=${app_uuid}]
      event-uuid: [0f709849-ecb6-46c4-8798-6c98c7dc412e]

      ${app_uuid) is set in switch_ivr (switch_ivr_parse_event) but its cleared by switch_core_session_exec at the beginning.

      if ((app_uuid_var = switch_channel_get_variable(channel, "app_uuid"))) {
      app_uuid = (char *)app_uuid_var;
      switch_channel_set_variable(channel, "app_uuid", NULL);
      } else {
      switch_uuid_str(uuid_str, sizeof(uuid_str));
      }

      we would like to move this reset to NULL to the end of the function so it can be used.

      change will be
      1) delete line "switch_channel_set_variable(channel, "app_uuid", NULL);"
      2) add after firing SWITCH_EVENT_CHANNEL_EXECUTE_COMPLETE
      if(app_uuid != uuid_str) {
      switch_channel_set_variable(channel, "app_uuid", NULL);
      }

        Attachments

          Activity

            People

            • Assignee:
              mikej Mike Jerris
              Reporter:
              lazedo Luis Azedo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: