search for: ncontext

Displaying 16 results from an estimated 16 matches for "ncontext".

Did you mean: context
2009 Sep 27
0
Is channel local what I need?
On 1.6.0.16-rc1: I'm using app_fax.so to send a fax, and then send a confirm. 'send' => 1. Set(UniqueFile=/var/spool/asterisk/outgoing/call-${UNIQUEID}) [pbx_config] 2. System(env echo -e "Channel:DAHDI/g0/........\\nContext:fax-tx\\nExtension: s\\nPriority: 1\\n" >${UniqueFile}) [pbx_config] [ Context 'fax-tx' created by 'pbx_config' ] 's' => 1. SendFAX(${FaxFile}.tif) [pbx_config] 'h' => 1. Set(RID=${REMOTESTATIONID}) [pbx_config]...
2009 Sep 27
1
digium fax: failed to queue document
In my quest to actually send a fax, I'm now stuck trying to send the confirm. First I send the fax: -- Executing [send at outbound-fax:2] System("Console/dsp", "env echo -e "Channel:DAHDI/g0/12036378447\\nContext:fax-tx\\nExtension: s\\nPriority: 1\\n" >/var/spool/asterisk/outgoing/call-1254012878.0") in new stack -- Auto fallthrough, channel 'Console/dsp' status is 'UNKNOWN' << Hangup on console >> -- Attempting call on DAHDI/g0/12036378447 for s at fa...
2005 Feb 06
2
Need help with perl script/agi for ringback
.../xxx@callback/r/n Exten: 1234 Context: callback Priority: 1 Extensions.conf exten => 500,1,agi,callback.pl callback perl script: use Net::Telnet (); $mgrUSERNAME='fred'; $mgrSECRET='bloggs'; $server_ip='127.0.0.1'; $tn->print("Action: originate\nExten: 1234\nContext: user\nChannel: local/xxx@user/r/n\nPriority: 1\nCallerid: 1234\n\n"); $tn->waitfor('/Event: Newchannel.*/') or die "Unable to determine call status", $tn->lastline; # wait for asterisk to process $tn->print("Action: Logoff\n\n"); I'm...
2012 Mar 07
1
Finish ChanSpy() when channel spied hangs up
Is there any way to do this? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120307/77764e4b/attachment.htm>
2013 Oct 10
2
utils.c: fwrite() returned error: Broken pipe how to solve it ???
...'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]: utils.c:1175 ast_careful_fwrite: fwrite() returned error: Broken pipe [Oct 10 15:13:23] ERROR[856]: utils.c:1175 ast_careful_fwrite: f...
2011 Apr 05
1
allpage issu on asterisk 1.8.3.x
...) = $tn->waitfor('/Authentication (.+)\n\n/'); if ($m =~ /Authentication failed/) { print "VERBOSE \"Incorrect MGRUSER or MGRPASS - unable to connect to manager interface\" 0\n"; exit; } $tn->print("Action: Originate\nChannel: SIP/$sipxtn\nContext: all-page\nPriority: 1\n"); $tn->print("Variable: SIPADDHEADER=Alert-Info: Ring Answer\n"); $tn->print("Extension: s\n"); $tn->print("CallerID: System Page\n"); $tn->print("Action: Logoff\n\n"); $tn->close; } -S -...
2006 Jan 10
2
Problem with Action:Originate with ASterisk Manager
...f[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 get the following error response from Asterisk-Manager Response: Error Message: Missing action in request Later I enabled the DEBUG Log in Asterisk I can see the following - >>>>>> During the Login >>>&gt...
2003 Oct 13
1
PRI/E1: machine freeze/dies after a few calls
...# Anzhal der Versuche anz2=$3 # Kan?le sle=$4 # Timeout bis zum n?chsten Versuch if [ -z $4 ]; then sle=0 fi s=1 i=1 while [ $s -le $anz ];do echo "$s try started..." while [ $i -le $anz2 ];do echo -e "Channel: Zap/g1/$n$i\nMaxRetries: 0\nContext: callgen\nExtension: 1\nPriority: 1\nCallerid:334778\n" > /var/spool/asterisk/outgoing/call.$i.$s sleep 2 i=$((i + 1)) done i=1 echo "sleep for $sle sec....." sleep $sle s=$((s + 1)) done The calls goes out over the first two ports and through...
2004 Jun 21
0
A Callback AGI script
...back.py #!/usr/bin/env python import sys context="incoming" extension="300" canal = "CAPI/02xxx89127:"+sys.argv[1] cf = open("/var/spool/asterisk/outgoing/"+sys.argv[1]+".call",'w+') cf.write("Channel:"+canal+"\nMaxRetries:2\ncontext:"+context+"\nextension:"+extension+"\npriority:1\nRetryTime:10\nWaitTime:20\n") [root@asterisk1]# cat /etc/asterisk/extensions.conf | grep -i 300 exten => 300,1,DISA,9641|incoming exten => 300,2,Hangup
2005 Feb 28
1
Manager "Message: Originate failed" beinggenerated when callee does not pick up
<<I am getting "Message: Originate failed" even the phone is ringing on the other end of the line.>> Originate will ring your own extension first and when you pick up, call the other number. If you don't pick up your extension, you will receive the message you see. Bill Seddon ________________________________ From: asterisk-users-bounces@lists.digium.com on behalf
2011 May 19
2
click to call with php
Hello, i have asterisk 1.4 installed and i want to use click to call in order to do an outbound call if there is any php code in order to do this operation thanks and regards -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110519/417ac394/attachment.htm>
2011 Aug 24
0
Time-limited calls -- revisited
...ow=${STRFTIME(${EPOCH},,%Y%m%d%H%M.%S)}) exten => s,n,Set(warn_time=${STRFTIME($[${EPOCH} + 60],,%Y%m%d%H%M.%S)}) exten => s,n,NoOp(Right now the time is ${now}) exten => s,n,NoOp(Warning will sound at ${warn_time}) exten => s,n,System(echo -e "Channel:Local/s at one-minute-warning\nContext:one- minute-warning\nSetVar: __WARNED_PARTY=${ARG1}\nExtension:pbk" > /tmp/warn_${warn_time}) exten => s,n,System(touch -t ${warn_time} /tmp/warn_${warn_time}) exten => s,n,System(mv /tmp/warn_${warn_time} /var/spool/asterisk/outgoing/) exten => s,n,Set(TIMEOUT(absolute)=119) --...
2011 Jan 10
0
No subject
...SE call forward to B in my case 010-602 4975</DIV> <DIV>UNAVAILABLE call forward to C in my case 010-602 4976</DIV> <DIV>&nbsp;</DIV> <DIV>From manager:</DIV> <DIV>Action: Originate\r\nChannel: OOH323/00733025975 at Avaya\r\nExten:=20 0106024000\r\nContext: inputinterior.se\r\nPriority: 1\r\nTimeout:=20 1000\r\nCallerID: 106024000\r\n\r\n</DIV> <DIV>DBPut\r\nFamily: DS\r\nKey: 0733025975\r\nVal: = NOT_INUSE\r\n\r\n</DIV> <DIV>&nbsp;</DIV> <DIV>Wait a second...</DIV> <DIV>&nbsp;</DIV> <D...
2013 Feb 20
2
exten => h,n,AGI(generateCall.php,${NEXT})
...nt); if($outdialNumbers[$next]) { $callFile = "/var/spool/asterisk/outgoing/".$outdialNumbers[$next].".call"; $f = fopen($callFile,'w'); $callFileContent = "\nChannel: dongle/dongle0/".$outdialNumbers[$next]."\nContext: call\nExtension: call\nPriority: 1\nSet: NEXT=".$next."\n"; fwrite($f, $callFileContent); fclose($f); chmod($callFile, 0777);}?>____________________________________________________________________________mac at almighty ~ $ ls /usr/share/asterisk/agi-bin/ -lt...
2007 Jun 26
2
RFC: multiple address spaces for one process
...PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, 0, 0); if (p == MAP_FAILED){ deal with it } memcpy(p, (char *)sd, len); p = mremap(p, len, len, MREMAP_MAYMOVE|MREMAP_FIXED, (char *)sd); if (p == MAP_FAILED) deal with it } while (new_as() >= 0 && nas < NCONTEXTS) nas++; switch_as(0); After this, you can call switch_as in a signal handler running on a stack in the shared data region. Anything else is liable to lead to stack corruption or SEGFAULTs. There are a couple of places where the semantics could be changed. For instance if a process with mul...
2007 Jun 26
2
RFC: multiple address spaces for one process
...PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, 0, 0); if (p == MAP_FAILED){ deal with it } memcpy(p, (char *)sd, len); p = mremap(p, len, len, MREMAP_MAYMOVE|MREMAP_FIXED, (char *)sd); if (p == MAP_FAILED) deal with it } while (new_as() >= 0 && nas < NCONTEXTS) nas++; switch_as(0); After this, you can call switch_as in a signal handler running on a stack in the shared data region. Anything else is liable to lead to stack corruption or SEGFAULTs. There are a couple of places where the semantics could be changed. For instance if a process with mul...