search for: nusername

Displaying 11 results from an estimated 11 matches for "nusername".

Did you mean: username
2013 Oct 10
2
utils.c: fwrite() returned error: Broken pipe how to solve it ???
...erl -w use IO::Socket::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:2...
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,...
2019 Apr 04
2
Message: Authentication failed on manager interface
...to accept a connection on the manager interface: --- manager.conf --- [general] enabled = yes port = 5038 bindaddr = 127.0.0.1 [myasterisk] secret=a permit=0.0.0.0/0.0.0.0 read = all write = all So, couldn't be any more wide open and simpler to connect yet: # echo -e "Action: Login\r\nUsername: myasterisk\r\nPassword: a\r\n\r\n" | ncat 127.0.0.1 5038 Asterisk Call Manager/2.10.4 Response: Error Message: Authentication failed Even more basically if you like: # telnet 127.0.0.1 5038 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Asterisk Call Manager/2...
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
...reated socket ..."); 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 s...
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.
2007 Nov 19
1
asterisk manager and perl
...$telnet localhost 5038 Action: Login Username: useroperator Secret: password Action: Originate Context: context Channel: Local/0123456789 at context Exten: 221 Priority: 1 it works good :) instead with a script perl like this : .... use Net::Telnet (); .... $tn->print("Action: Login\nUsername:$USERNAME\n Secret:$SECRET\n\n"); $tn->waitfor('/Authentication accept*/') $tn->print("Action: Originate\n"); $tn->print("Context: context\n"); $tn->print("Channel: Local/0123456789\@context \n"); $tn->print("Exten: 221\n&quo...
2014 Mar 28
0
Need some PHP/AMI guidance please
...ed to a table. A simple 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 CON...
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));