[asterisk-bugs] [Asterisk 0017377]: I can not make Hangup from manager & PHP...

Asterisk Bug Tracker noreply at bugs.digium.com
Sun May 23 03:22:19 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17377 
====================================================================== 
Reported By:                qazaq
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17377
Category:                   Applications/app_meetme
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           Older 1.4 - please test a newer version 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-05-23 03:09 CDT
Last Modified:              2010-05-23 03:22 CDT
====================================================================== 
Summary:                    I can not make Hangup from manager & PHP...
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
====================================================================== 

---------------------------------------------------------------------- 
 (0122281) qazaq (reporter) - 2010-05-23 03:22
 https://issues.asterisk.org/view.php?id=17377#c122281 
---------------------------------------------------------------------- 
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]);
} 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-05-23 03:22 qazaq          Note Added: 0122281                          
======================================================================




More information about the asterisk-bugs mailing list