search for: nsecret

Displaying 10 results from an estimated 10 matches for "nsecret".

Did you mean: secret
2013 Oct 10
2
utils.c: fwrite() returned error: Broken pipe how to solve it ???
...cket::INET; sub asterisk_command () { # my $command=$_[0]; my $ami=IO::Socket::INET->new(PeerAddr=>'127.0.0.1',PeerPort=>5038,Proto=>'tcp') or die "failed to connect to AMI!"; print $ami "Action: Login\r\nUsername: lite\r\nSecret: 4003\r\n\r\nAction: Logoff\r\n\r\n"; } &asterisk_command("Channel: DAHDI/27/7702009896\r\nExten: s\r\nContext: outbound\r\nCallerID: 20048645\r\nPriority: 1\r\nMaxRetries: 2\r\n"); Whenever i execute that code i'm get following error [Oct 10 15:13:23] ERROR[856]: u...
2006 Jan 10
2
Problem with Action:Originate with ASterisk Manager
Hi Asterisk-users, I am working with Aterisk Manager API's. I can login successfuly with the following. char buff[256]; strcpy(buff, "Action: Login\r\nUsername: admin\r\nSecret: unix\r\n\r\n"); send(msock, buff, 255); Now I want to try Action: Originate, therefore I tried the following char buff1[256]; strcpy(buff1, "Action: Originate\r\nChannel: SIP/101\r\nExten: 102\r\nPriority: 1\r\nContext: default\r\n\r\n"); send(msock, buff1, 255); But I g...
2004 Nov 15
2
asterisk nagios plugin
hi I've written, or upgraded a little more, a plugin for asterisk/nagios, just in case someone should be interested. it uses the manager interface to connect and checks staus. it's a dirty hack, but it works. see https://sourceforge.net/tracker/? func=detail&aid=746083&group_id=29880&atid=541465 for more info roy
2008 Feb 28
1
C Code to connect to Asterisk Manager Interface
...uot;); bind(sd,(struct sockaddr *) &clientaddr, sizeof(clientaddr)); printf("\nBinding successful ..."); connect(sd,(struct sockaddr *) &serveraddr, sizeof(serveraddr)); printf("\nConnected ..."); *msg=(char)"Action: Login\r\nUsername: admin\r\nSecret: admin\r\nActionID: 1\r\n\r\n"; send(sd,msg,strlen(msg)+1,0); close(sd); return(1); } Please correct me where I am going wrong. In manager.conf the username and secret has been defined. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: h...
2008 May 16
3
[OT]: Passing password for a command on the fly
Hi, First things first, sorry for the off-topic, but I've already burned my eyes Googling and couldn't find the answer to what I need and I remembered asking here, because I'm a long time CentOS and its mailing list user. Again, my apologies. I have this command to create an FTP account: # pure-pw useradd mario -u 502 -g 502 -n 1000 -N 200 -d /home/pages/mario This command asks for
2003 Nov 26
1
perl --> manager problem
I am having some issues when trying to connect with perl to the asterisk manager and doing an "IAX2 show channels". If i do that on a server that is heavily loaded, i sometimes get some events instead of the channels i asked for. Any suggestions how i could fix that ? zoa.
2014 Mar 28
0
Need some PHP/AMI guidance please
...le list of names is fine... Any help is much appreciated! Pertinent code: <?php $ami = fsockopen("127.0.0.1", 5038, $errno, $errstr); if (!$ami) { echo "ERROR: $errno - $errstr<br />\n"; } else { fwrite($ami, "Action: Login\r\nUsername: someuser\r\nSecret: somesecret\r\nEvents: off\r\n\r\n"); fwrite($ami, "Action: ConfbridgeList\r\nConference: 8888\r\n\r\n"); sleep(1); $record = fread($ami,1024); $record = explode("\r\n", $record); echo "<META HTTP-EQUIV=Refresh CONTENT=\"20\&quot...
2008 Jan 23
8
Peak number of calls?
Is there any way to find-out the peak number of calls that an asterisk system has had? Not the total number of calls, but the maximum number of simultaneous calls. I know I can porobably go through the CDR logs and look for calls which have overlapped in time, but I'm wondering if there's some counter somewhere I could access... (I'm looking for evidence for an ISDN client who
2007 Nov 06
2
Recording just first part of call?
I know that I can record the contents of a call by calling Monitor() or MixMonitor() from the dialplan just before invoking Dial(). I have a potential customer who wants only the first minute of each call recorded (for identification purposes, without the storage overhead of keeping the complete call). Can anyone here think of the easiest way to do this? The only possibilities I can think of
2005 Sep 30
4
C Manager Interface Client
List: This is my first manager client that I've written so please bear with me: I am trying to write a C manager interface client to interface with our CRM software. I am having an issue while reading the data from the manager interface. I am writing this in C and I have the following code: while(1) { bzero(buffer,sizeof(buffer)); readCode = read(socketHandle,buffer,sizeof(buffer));