[Home]

Summary:ASTERISK-16131: I can not make Hangup from manager & PHP...
Reporter:Hakman (qazaq)Labels:
Date Opened:2010-05-23 03:09:22Date Closed:2011-06-07 14:01:01
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Applications/app_meetme
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:When I send to manager first attempt following command :
socket_write($manager, "Action: Hangup\r\nChannel: ".$arr['channel']."\r\n\r\n");
I recive:
[RESPONSE] => Error
[MESSAGE] => Missing action in request

But if I sent this command again, recive:

[RESPONSE] => Success
[MESSAGE] => Channel Hungup

i.e.
socket_write($manager, "Action: Hangup\r\nChannel: ".$arr['channel']."\r\n\r\n");
socket_write($manager, "Action: Hangup\r\nChannel: ".$arr['channel']."\r\n\r\n");
[RESPONSE] => Error
[MESSAGE] => Missing action in request

[RESPONSE] => Success
[MESSAGE] => Channel Hungup

I need HELP, Thanks
Comments:By: Hakman (qazaq) 2010-05-23 03:22:19

I forgot to clarify, this occurs after the following command: asterisk-rx "meetme start numconf". It's me It written command in app_meetme.c:

After:
else if (strcmp(argv[1], "kick") == 0) {
if (argc < 4)
return RESULT_SHOWUSAGE;
if (strcmp(argv[3], "all") == 0) {
/* Kick all */
strncat(cmdline, "|K", sizeof(cmdline) - strlen(cmdline) - 1);
} else {
/* Kick a single user */
strncat(cmdline, "|k|", sizeof(cmdline) - strlen(cmdline) - 1);
strncat(cmdline, argv[3], sizeof(cmdline) - strlen(cmdline) - 1);
}
}
-----------------------------------------------------------------
else if(strcmp(argv[1], "start") == 0) {
/* Show Event from manager -> MeetmeStart */
manager_event(EVENT_FLAG_CALL, "MeetmeStart",
"Meetme: %s\r\n",
argv[2]);
}

By: Hakman (qazaq) 2010-05-23 08:06:59

The problem is solved, the problem was in my script!!!
Thanks!

By: Paul Belanger (pabelanger) 2010-05-23 09:49:37

This tracker is not for support requests (see below).
---
Thanks for your comments. This does not appear to be a bug report and we are closing it. We appreciate the difficulties you are facing, but it would make more sense to raise your question in the support tracker, http://www.asterisk.org/support