From: Richard K. <n1...@ho...> - 2005-07-04 14:54:17
|
I'm trying to send a command from asterisk to MH AND have MH send back a response. I can get the xAP message to send OK and I receive it OK in MH, but exactly how does MH send back it's response to asterisk_jason_mhcommand.agi? If I send it a house command that it doesn't understand, I.E. cigar MH seems to send back a response but asterisk_jason_mhcommand.agi which is listening on port 3640 never gets it. Shouldn't MH know that the response should be sent on port 3640 if it is in HUB MODE? Log below: db1 xap check: p=xAP s=asterisk.agi.perl c=xap-hbeat.alive t= d=xap-hbeat { v=12 hop=1 uid=FF000100 class=xap-hbeat.alive source=Asterisk.AGI.Perl interval=1200 port=3640 } db1 xap check: p=xAP s=asterisk.agi.perl c=command.external t= d=xap-header { v=12 hop=1 uid=FF000100 class=command.external source=Asterisk.AGI.Perl } command.external { command=cigar } s=command.external : command = cigar | , command=cigar, xap=xAP_Item=HASH(0x2aaaab45cae0) Running external command: cmd=cigar set_by=xAP_Item=HASH(0x2aaaab45cae0) respond=xap 07/04/05 23:39:47 Warning, xcmd not recognized:cigar. db5 xAP send: ca=command.response d=command.response HASH(0x1f5e820) xap_send=Socket_Item=HASH(0x1e96640) db1 xap check: p=xAP s=mhouse.mh.misterhouse c=command.response t=* d=xap-header { v=12 hop=1 uid=FF123400 source=mhouse.mh.misterhouse class=command.response target=* } command.response { error=1 response= } |