Asterisk Forum Forum Index Asterisk Forum
The Asterisk Open Source PBX - Russian Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RulesRules   UsergroupsUsergroups   LinksLinks   RegisterRegister 
 EmailEmail   ProfileProfile   Log in to check your private messages   Log inLog in 

Asterisk-1.4.36-rc1 
Asterisk-Addons-1.4.11 
Libpri-1.4.12-beta2 
Dahdi-Linux-2.4.0 
Dahdi-Tools-2.4.0 

Метка конца данных AMI

 
   Asterisk Forum Forum Index -> Asterisk-Dev
View previous topic :: View next topic  
Author Message
aven



Joined: 07 Sep 2007
Posts: 553

Status: Offline

PostPosted: Thu Feb 25, 2010 20:14    Post subject: Метка конца данных AMI Reply with quote

Не могу понять, как определить, что все данные мы получили и их нужно отправить на обработку?
Вот кусок данных, видны границы пакетов, но конец данных неоднозначен... Sad

Quote:
[22:13:18] SendPkt >>>>>>>>>>
----------------------------------------------------------
Action: ListCommands


----------------------------------------------------------
[22:13:18] RecvPkt <<<<<<<<<<
----------------------------------------------------------
Response: Success
WaitEvent: Wait for an event to occur (Priv: <none>)
SKINNYshowline: Show SKINNY line (text format) (Priv: system,reporting,all)
SKINNYlines: List SKINNY lines (text format) (Priv: system,reporting,all)
SKINNYshowdevice: Show SKINNY device (text format) (Priv: system,reporting,all)
SKINNYdevices: List SKINNY devices (text format) (Priv: system,reporting,all)
MeetmeList: List participants in a conference (Priv: reporting,all)
MeetmeUnmute: Unmute a Meetme user (Priv: call,all)
MeetmeMute: Mute a Meetme user (Priv: call,all)
IAXregistry: Show IAX registrations (Priv: system,reporting,all)
IAXnetstats: Show IAX Netstats (Priv: system,reporting,all)
IAXpeerlist: List IAX Peers (Priv: system,reporting,all)
IAXpeers: List IAX Peers (Priv: system,reporting,all)
PlayDTMF: Play DTMF signal on a specific channel. (Priv: call,all)
SIPnotify: Send a SIP notify (Priv: system,all)
SIPshowregistry: Show SIP registrations (text format) (Priv: system,reporting,all)
SIPqualifypeer: Show SIP peer (text format) (Priv: system,reporting,all)
SIPshowpeer: Show SIP peer (text format) (Priv: system,reporting,all)
SIPpeers: List SIP peers (text format) (Priv: system,reporting,all)
VoicemailUsersList: List All Voicemail User Information (Priv: call,reporting,all)
AgentLogoff: Sets an agent as no longer logged in (Priv: agent,all)
Agents: Lists agents and their status (Priv: agent,all)
QueueReset: Reset queue statistics (Priv: <none>)
QueueReload: Reload a queue, queues, or any sub-section of a queue or queues (Priv: <none>)
QueueRule: Queue Rules (Priv: <none>)
QueuePenalty: Set the penalty for a queue member (Priv: agent,all)
QueueLog: Adds custom entry in queue_log (Priv: agent,all)
QueuePause: Makes a queue member temporarily unavailable (Priv: agent,all)
QueueRemove: Remove interface from queue. (Priv: agent,all)
QueueAdd: Add interface to queue. (Priv: agent,all)
QueueSummary: Queue Summary (Priv: <none>)
QueueStatus: Queue Status (Priv: <none>)
Queues: Queues (Priv: <none>)
UnpauseMonitor: Unpause monitoring of a channel (Priv: call,all)
PauseMonitor: Pause monitoring of a channel (Priv: call,all)
ChangeMonitor: Change monitoring filename of a channel (Priv: call,all)
StopMonitor: Stop monitoring a channel (Priv: call,all)
Monitor: Monitor a channel (Priv: call,all)
DBDelTree: Delete DB Tree (Priv: system,all)
DBDel: Delete DB Entry (Priv: system,all)
DBPut: Put DB Entry (Priv: system,all)
DBGet: Get DB Entry (Priv: system,reporting,all)
Bridge: Bridge two channels already in the PBX (Priv: call,all)
Park: Park a channel (Priv: call,all)
ParkedCalls: List parked calls (Priv: <none>)
ShowDialPlan: List dialplan (Priv: config,reporting,all)
ModuleCheck: Check if module is loaded (Priv: system,all)
ModuleLoad: Module management (Priv: system,all)
CoreShowChannels: List currently active channels (Priv: system,reporting,all)
Reload: Send a reload event (Priv: system,config,all)
CoreStatus: Show PBX core status variables (Priv: system,reporting,all)
CoreSettings: Show PBX core settings (version etc) (Priv: system,reporting,all)
UserEvent: Send an arbitrary event (Priv: user,all)
UpdateConfig: Update basic configuration (Priv: config,all)
----------------------------------------------------------
[22:13:19] RecvPkt <<<<<<<<<<
----------------------------------------------------------
SendText: Send text message to channel (Priv: call,all)
ListCommands: List available manager commands (Priv: <none>)
MailboxCount: Check Mailbox Message Count (Priv: call,reporting,all)
MailboxStatus: Check Mailbox (Priv: call,reporting,all)
AbsoluteTimeout: Set Absolute Timeout (Priv: system,call,all)
ExtensionState: Check Extension Status (Priv: call,reporting,all)
Command: Execute Asterisk CLI Command (Priv: command,all)
Originate: Originate Call (Priv: originate,all)
Atxfer: Attended transfer (Priv: call,all)
Redirect: Redirect (transfer) a call (Priv: call,all)
ListCategories: List categories in configuration file (Priv: config,all)
CreateConfig: Creates an empty file in the configuration directory (Priv: config,all)
Status: Lists channel status (Priv: system,call,reporting,all)
GetConfigJSON: Retrieve configuration (JSON format) (Priv: system,config,all)
GetConfig: Retrieve configuration (Priv: system,config,all)
Getvar: Gets a Channel Variable (Priv: call,reporting,all)
Setvar: Set Channel Variable (Priv: call,all)
Ping: Keepalive command (Priv: <none>)
Hangup: Hangup Channel (Priv: system,call,all)
Challenge: Generate Challenge for MD5 Auth (Priv: <none>)
Login: Login Manager (Priv: <none>)
----------------------------------------------------------
[22:13:19] RecvPkt <<<<<<<<<<
----------------------------------------------------------
Logoff: Logoff Manager (Priv: <none>)
Events: Control Event Flow (Priv: <none>)
----------------------------------------------------------

_________________
Intel Core 2 Duo E6400 @ 2.40GHz / 6GB / 160GB
Gentoo Linux 2.6.32-r7 || Asterisk 1.6.2.9 | SFA | Linksys SPA922 + D-Link DPH-300S + D-Link DVG-7111S + 3 x Huawei E1550
Back to top
View user's profile Send private message
krasniy



Joined: 28 Jun 2010
Posts: 5

Status: Offline

PostPosted: Mon Aug 23, 2010 23:09    Post subject: Reply with quote

Во-первых: Тебе лень посмотреть документацию по AMI? Там же черному по белому написано, что можно задавать идентификатор команды через ActionID
Во-вторых: Тут не телепаты сидят! На каком языке пишешь????
В-третьих: Для того чтобы не искать конец данных используй итератор
Back to top
View user's profile Send private message
Asterisk Forum Forum Index -> Asterisk-Dev Reply to topic
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum