Skip to content

Action: Command doesn't contain all response #31

@tfspire

Description

@tfspire

Hi,

I'm trying to send a command but the response is not complete.

Example:
result, err := amiHandle.Action(map[string]string{"Action": "Command", "Command": "core show taskprocessors"})

The response:
map[#:26 ActionID:e0d5f292-b2c5-4728-ad6a-df8213595f31 Message:Command output follows Output: Response:Success Time:2021-07-13T15:19:31.337807073Z]

If I connect by telnet to AMI, this is an example of the output:

Action: Command
Command: core show taskprocessors

Response: Success
Message: Command output follows
Output:
Output: Processor Processed In Queue Max Depth Low water High water
Output: app_voicemail 0 0 0 450 500
Output: ast_msg_queue 0 0 0 450 500
Output: CCSS_core 0 0 0 450 500
Output: dns_system_resolver_tp 0 0 0 450 500
Output: hep_queue_tp 0 0 0 450 500
Output: pjsip/default-0000000b 29 0 2 450 500
Output: pjsip/default-0000000c 0 0 0 450 500
Output: pjsip/default-0000000d 0 0 0 450 500
Output: pjsip/default-0000000e 0 0 0 450 500
Output: pjsip/default-0000000f 0 0 0 450 500
Output: pjsip/default-00000010 0 0 0 450 500
Output: pjsip/default-00000011 0 0 0 450 500
Output: pjsip/default-00000012 0 0 0 450 500
Output: pjsip/distributor-00000023 369 0 1 450 500
Output: pjsi
.....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions