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

Add domain_data command to retrieve domain information (parameters or variables) as defined in the FreeSWITCH user directory.

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: None
    • Component/s: mod_commands
    • Labels:
      None
    • CPU Architecture:
      x86-64
    • Kernel:
      Linux
    • Userland:
      GNU/Linux
    • Distribution:
      Debian
    • Distribution Version:
      Debian 8 jessie
    • Compiler:
      gcc
    • FreeSWITCH GIT Revision:
      eed17a6079956a3ef404a57a5144a9a96394f57a
    • GIT Master Revision hash::
      eed17a6079956a3ef404a57a5144a9a96394f57a

      Description

      You need a user to make a request with the user_data command (https://freeswitch.org/confluence/display/FREESWITCH/mod_commands).
      Having domain_data would be usefull in a case when there is no user, you don't have a session, no caller, like when you originate from the code making a one leg call. This case if you have a need to retrieve something domain specific, you don't have to create fake users as a workaround.

      Usage: domain_data <domain> [var|param|attr] <name>
      Examples:
      domain_data 192.168.88.234 var record_stereo
      will return a result of true

      domain_data 192.168.88.234 param jsonrpc-allowed-methods
      will return a result of verto

      domain_data 192.168.88.234 attr foo
      will return a result of bar if you have such an attibute
      <domain name="$${domain}" foo="bar">

        Attachments

          Activity

            People

            • Assignee:
              mikej Mike Jerris
              Reporter:
              andywolk Andrey Volk
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: