search for: dialstr

Displaying 20 results from an estimated 151 matches for "dialstr".

2006 Mar 20
4
simple perl-agi - where's the error?
Hello! I'm trying to setup a perl-deadagi, but my perl skills lack. can someone tell me why the following code doesn't work: #!/usr/bin/perl use Asterisk::AGI; $AGI = new Asterisk::AGI; $dialstring = $AGI->get_variable("DIALSTRING"); $res = $AGI->exec("DIAL $dialstring"); the asterisk output says: AGI Rx << GET VARIABLE DIALSTRING AGI Tx >> 200 result=1 (089324154332) AGI Rx << EXEC DIAL "" -- AGI Script Executing Application: (...
2009 May 12
1
enum agi interesting problem
...what happens: I have in my agi something like that: foreach my $resolver ("e164.arpa", "e164.info", "e164.org") { my @enums = get_enums($phone, $resolver); foreach my $enum (@enums) { $dialstring = $enum . "|90|HL(" . ($maxtime * 60 * 1000) . ":60000:30000)"; $res = $AGI->exec("DIAL $dialstring"); $answeredtime = $AGI->get_variable("ANSWEREDTIME");...
2006 Jun 26
0
AEL scripting, CUT use and string concatenation
...ng //; ext_string = String with extension numbers like 101-102-103-104-105 if(${ring_type}=C) { for (x=1 ; ${x} <= ${num_int} ; x=${x} + 1) { int=${CUT(ext_string,,${x})}; if(${x} = 1) { dialstring=SIP/${pbx_id}-${int}; } else { dialstring=${dialstring}&SIP/${pbx_id}-${int}; }; if(${x} = ${num_int}) { dialstring=${dialstring}|${timeout}; };...
2006 Feb 03
4
cmd set with multiple values
hello! has this made it into 1.2.3 already: http://bugs.digium.com/view.php?id=6128 ? i'm trying to set a variable that should be used as a dialstring in the dial-command, including parameters seperated with the respective delimiter, e.g. like: exten => 907,1,Set(DESTINATION1=Zap/G1/4989123456789|10|gh) exten => 907,n,Set(DIALSTRING=${DESTINATION1}) exten => 907,n,Dial(${DIALSTRING}) asterisk complains: Feb 3 12:39:40 WARNING[2620...
2006 May 23
3
AGI ?
...$gAreaCode = pop(@num); $gPrefix = pop(@num); $gAreaCode = pop(@num); ### Log Statement for Troubleshooting ### #print LOG "(". localtime() .") Set Areacode: $gAreaCode - Prefix: $gPrefix - Number: $gNumber\n"; } ### Calls the function genDialString to create the actual dial string depending on what was dialed ### my $retDialStr = genDialString($gAreaCode,$gPrefix,$gNumber,$gIaxUser, $gIaxPass,$gIaxHost,$gSipHost); if(!$retDialStr) { ### Log Statement for Troubleshooting ### #print LOG "(". localtime() .") ERR...
2004 Nov 29
2
Variable substitution - How can I do Dial(${DIALSTRING}) where ${DIALSTRING} is 'SIP/201, 15, tT'?
I've been banging my head against a brick wall for the last hour and I'm sure this is one of those easy to solve things - just that I can't see the wood for the trees. I'm trying to do: ----------- [some-context] Exten => s,1,Macro(dodial,'SIP/201,15,tT',123456,MOHClass) [macro-dodial] Exten => s,1,SetCallerID(${ARG2}) Exten => s,2,SetMusicOnHold(${ARG3}) Exten
2009 Jan 16
0
No subject
...=A0=A0=A0=A0=A0=A0=A0=A0 my @enums =3D get_enums($phone, $resolv= er); > > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 for= each my $enum (@enums) { > > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 $dialstring =3D $enum . "|90|HL(" . > ($maxtime * 60 * 1000) . ":60000:30000)"; > > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 $res =3D $AGI->exec("DIAL $dialstring"); > > =A0=A0=A0=A0=A0=A0=A0=A...
2009 Jan 16
0
No subject
...0=A0=A0=A0=A0=A0=A0=A0 my @enums =3D get_enums($phone, = $resolver); > > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = foreach my $enum (@enums) { > > = =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 $dialstring =3D $enum . "|90|HL(" . > ($maxtime * 60 * 1000) . ":60000:30000)"; > > = =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 $res =3D $AGI->exec("DIAL $dialstring"); > > = =A0=A0=A0=A0=A0=A0=...
2007 Jun 15
2
combining AGI with dialplans
...icle.gmane.org/gmane.comp.telephony.pbx.asterisk.user/185537) I would like to do this, but I am having trouble figuring out how. I have tried the following but it is not working for me: ***test.php*** #!/usr/bin/php -q <?php require_once('phpagi.php'); $agi = new AGI(); $dialstr="IAX2/wayne/112 at testcntxt"; $agi->SetVar("JAMES",$dialstr); exit(0); ?> ***extensions.conf*** [from-sip] exten => 111,1,DeadAGI(test.php) exten => 111,2,Dial(${JAMES}) exten => 111,3,Hangup Thanks in advance for any help. James
2008 Oct 25
1
gtalk dialstring?
Hi everyone! I couldn't find anything expressive about gtalk dialstrings. It doesn't seem to work. I'm not sure why, so I'll start at the easiest point. The syntax I found was: gtalk/my_account_name/buddys_account_name at gmail.com Is this correct? And does any of you googletalkers know, if a simple google-mail account is enough to use the tal...
2007 Nov 30
3
How to setup redundant SIP peers
Hello list, I try to setup an asterisk-server with different SIP-Peers to PSTN. The Peer are working and configured in sip.conf: [peer1] type=peer host=10.10.10.1 [peer2] type=peer host=10.10.10.2 Now dialout is no problem. Extensions.conf says: exten => _0Z.,1,Dial(SIP/49${EXTEN:1}@peer1,30) But how can I setup a failure-route if the SIP-Proxy "peer1" ist not
2014 Oct 22
0
SIP dialing with authentication with dialstring and wothout sip; conf
Hello, I've got a bunch outgoing-only SIP trunks "connected" to an asterisk 11 setup. I've read the following doc [1] stating you can pass username/password in a dial string. My goal is to dial from asterisk through one SIP trunk or another without touching my sip.conf file. In other words, I'm planning to use: Dial(technology/user:password at
2006 Apr 26
3
astcc: need partial pin code
...r pin: <user enter a long pin> Enter your destination phone number: <user enters the destination phone number> Is there a code snip available for that? Keyin needs always more time, we need to allow longer spaces between the digits, therefore we need to allow the # to finish the dialstring faster. I wonder if we can use one dialstring for all: cardnumber*pin*destination-number How can a user end the call and dial a new number, without hanging up? The user has usually a desk phone (=card number), and this dialin should work parallel, but of course it assumes still that only o...
2006 Mar 29
1
OT: HOWTO: Query channel state on an Ateus Voice Blue GSM gateway
...hannels currently in use. Hope this helps someone. Notes: 1. Execute from /var/lib/asterisk/agi-bin as 'querygsmgateway.agi' 2. Replace .201 with the last dotted quad of your gateway's IP address (in this example, 192.168.1.201 is the IP of the gateway) 3. Assumes that the variable ${DIALSTRING} is set with the NAMA number of the mobile to call querygamgateway.agi: #!/bin/bash GSMCHANNEL=`asterisk -rx "SIP SHOW CHANNELS" | grep -a -A0 ".201"` CURRENTCHANNEL1=${GSMCHANNEL:55:7} CURRENTCHANNEL2=${GSMCHANNEL:118:7} CURRENTCHANNEL3=${GSMCHANNEL:181:7} CURRENTCHANNEL4...
2008 Jan 12
2
Perl-AGI process
Hi All, i have created one prepaid PERL AGI script to integrate asterisk users in our current Oracle Billing System. I am using $AGI->exec('Dial', $dialstr); in script after getting the MAX time out for the priticular call. But when the channels increase on my asterisk more than 50-60 asterisk get crashed and i am suspecting the cause is of AGI Script. because when i check ps on server i found lot of process for routing.pl file which is the main to c...
2006 Feb 22
2
mysql phone number pattern match query
Does anyone have a mysql query that will compare a number from the asterisk cdr to a table of international country+city codes to determine the closest match? The two fields are; 1. Asterisk mysql cdr 'dst' field - sample record value '011441316551212' 2. rate table data like this DialPattern 011447977 011447979 011447980 011447981 011447984 011447985 011447986
2005 Oct 07
1
ASTCC -- semantic note of 'callstart' in cdrs?
Looking at the code, it would appear that the 'callstart' column of the cdrs table should really be called 'callend': $dialstr = "IAX2/$res->{path}/$phone|30|HL(" . ($maxtime * 60 * 1000) . ":60000:30000)"; $res = $AGI->exec("DIAL $dialstr"); $answeredtime = $AGI->get_variable("ANSWEREDTIME"); $dialstatus = $AGI->get_variab...
2006 Feb 20
1
Dial from AGI = no ring back ??
..._0XX32316200,2,Hangup ;Dialing this one directly gives me the ring back exten => _10XX32316200,1,Dial(IAX2/provider/559132316200,60); exten => _10XX32316200,2,Hangup The "fred.agi" script: #!/usr/bin/perl use DBI; use Asterisk::AGI; $AGI = new Asterisk::AGI; $AGI->answer(); $dialstr = "IAX2/provider/559132316200|60"; $res = $AGI->exec("DIAL $dialstr");
2006 Jun 24
2
Playing sound before dialing
...e working really perfect. Now I want to play a small soundfile before dial the number to inform the caller which protocl is used (SIP, IAX2 or ISDN). How can I do this? With Playback it doesn't seems to work: [iax2-sipport-out] ; with leading 3 using IAX-sipport exten => s,1,NoOp(Dialing ${DIALSTR} with iax2-sipport-out) exten => s,2,Answer exten => s,3,Playback(forwarded-iax) exten => s,4,Dial(IAX2/portunity-out/${DIALSTR},,trRg) exten => s,5,return Best regards, Matthias -- "Programming today is a race between software engineers striving to build bigger and better idi...
2006 Dec 20
0
asterisk run on vxworks for hardware pbx
...n I malloc a new ast_channel to call.It is should use ast_get_channel_by_exten_locked() or ast_channel_alloc() , my program as follow,But it isn't work, anyone know how to do this. { struct ast_channel *callbk; char *callbk_real_context; char xferto[256],dialstr[265]; char *cid_num; char *cid_name; int outstate=0; char *exten = NULL ,*context = NULL; pu = head; //pu is a queue hav dst and src number printfl("\n\n\n\n %s time is over",pu...