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

Hanghup hook problem when I make a-leg only call

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: No Reporter Response
    • Affects Version/s: 1.4.26
    • Fix Version/s: None
    • Component/s: Configuration
    • Labels:
      None
    • Environment:
      Linux Debian Jessie
    • CPU Architecture:
      x86-64
    • Kernel:
      Linux
    • Userland:
      GNU/Linux
    • Distribution:
      Debian
    • Distribution Version:
      Debian 8 jessie
    • Compiler:
      gcc
    • FreeSWITCH GIT Revision:
      Master
    • GIT Master Revision hash::
      No

      Description

      I run the following script:

      dialA = "

      {origination_caller_id_number="..telephone_from..",ignore_early_media=true}

      sofia/gateway/iskratel/"..telephone_to

      while(legA:ready() and dispoA ~= "ANSWER") do
      dispoA = legA:getVariable("endpoint_disposition")
      freeswitch.consoleLog("INFO","Leg A disposition is '" .. dispoA .. "'\n")
      legA:execute("set", "api_hangup_hook=luarun autoinform_cleanup.lua");
      legA:execute("set", "session_in_hangup_hook=true");
      legA:execute("playback", "/usr/local/freeswitch/sounds/alert.wav");
      legA:execute("hangup");
      end

      and autoinform_cleanup.lua is:

      dat = env:serialize()
      freeswitch.consoleLog("INFO","Here's everything:\n" .. dat .. "\n")

      It makes a call, but when autoinform_cleanup.lua is called
      I see this in console

      /usr/local/freeswitch/scripts/autoinform_cleanup.lua:1: attempt to index global 'env' (a nil value)

      Thanks a lot

        Attachments

          Activity

            People

            • Assignee:
              brian@freeswitch.org Brian West
              Reporter:
              kamilius Kamil Nigmatullin
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: