search for: dialedtime

Displaying 20 results from an estimated 32 matches for "dialedtime".

2008 Aug 21
3
After Dial execution, using DIALEDTIME, ANSWEREDTIME
Hi, I noticed that when dial terminates it does not return to the dialplan, and therefore can not execute any entry after Dial(). Is there any trick to overcome this limitation ? How I am supposed to handle the returned vales DIALEDTIME, ANSWEREDTIME if I can not execute anything after Dial()? I made a workaround with DeadAGI (below) but it is unreliable: if 2 calls end nearly at the same time I do not know to whom belongs the ANSWEREDTIME value : exten => h,1,DeadAGI(myagi.agi,0,${DIALEDTIME},${ANSWEREDTIME},00)...
2009 Dec 15
2
member (In use)
...edicInfo: Corrected followme: - partner: ${PARTNER} - ${CALLERID(number)}); } Dial(SIP/${EXTEN},7,rktgA(${NewCallMsg})); if("${DIALSTART}" != "") { Set(DIALEDTIME=$[${EPOCH} - ${DIALSTART}]); } else { Set(DIALEDTIME=0); } ChanIsAvail(SIP/${EXTEN}); // NoOp(DIALSTA...
2006 May 30
1
Asterisk::AGI and DIALEDTIME
Hi List, In one of my AGIs (using DeadAGI) I grab the answered time using: my $res = $agi->exec ("DIAL $dialstring"); my $answeredtime = $agi->get_variable ("ANSWEREDTIME"); However this information differs from what's written in the Master.csv file (which happens to be the correct value!) Any ideas why? I'm using asterisk 1.2.7.1 and the
2009 Feb 21
2
DIAL() application 'g' option
...Asterisk 1.4.12 on CentOS 5 I'm trying to increment an AstDB key with the length of the last outgoing call. Here's what I've got for "01" UK geographical numbers: exten => _01.,1,Dial(${UKGeographical}/${EXTEN},,g) exten => _01.,n,Log(NOTICE,Call to ${EXTEN} lasted ${DIALEDTIME}) exten => _01.,n,Set(CALLTIME=${DIALEDTIME}) exten => _01.,n,Set(ACCUMULATED=${DB(freevoip/seconds)}) exten => _01.,n,Set(DB(freevoip/seconds)=$[${ACCUMULATED}+${CALLTIME}]) The first priority after the Dial() application is there to log the call in /var/log/asterisk/messages This exten...
2017 Dec 26
4
Answered time on channel
...was answered and when the call hung up. In both requests the start time needs to be the same. My Dialplan looks something like this: [outbound] Exten => _X.,1,Dial(SIP/${EXTEN}@1.1.1.1,,U(call-answer-from-carrier)) Exten => h,1,NoOp(ANSWERED_TIME: ${ANSWEREDTIME} >>> DIAL_TIME: ${DIALEDTIME} >>> HANGUP_TIME: ${EPOCH} >>> ANSWERED TIME ${MATH(${EPOCH}-${ANSWEREDTIME},int)}) [call-answer-from-carrier] Exten => s,1,Noop(CALL WAS ANSWERED AT ${EPOCH} Exten => s,n,Agi(some_script.py) Now in theory the hangup time of the call (${EPOCH} in the h extension) minus the...
2006 Jun 20
1
AGI: Dial and Recording my own CDR
Hi folks -- I have a FastAGI Perl script running, handling calls. It works great. At one point I have a Dial() command. If the called party hangs up, Dial() returns 0, and when I call my own recordCdr() function using the channel variables ANSWEREDTIME, DIALEDTIME and DIALSTATUS, everything is fine. However, if the called party picks up, and then the dialing party hangs up Dial() returns -1, ANSWEREDTIME and DIALEDTIME == 0 (or something like that) and DIALSTATUS returns AGI::No Response. How do I make sure to get the right billing information if the diali...
2009 Feb 18
1
Accumulated call time
...lls made through that trunk so that I can automatically switch to a lower-cost provider when my bundled minutes are used. The plan is to store the accumulated time in AstDB and reset this with a cron job at the beginning of each period. I understand that the Dial() application sets two variables - DIALEDTIME and ANSWEREDTIME - to the total time the Dial() application ran and the time since the call was answered respectively. However, I can't find a way to access these. I've tried the following: exten => s,1,Dial(${rgMain}/${EXTEN},${RINGTIME},t) exten => s,n,Log(NOTICE, Call to ${EXTEN}...
2011 Sep 07
4
(no subject)
...se(TB) exten =>_X.,3,Answer() exten => _X.,4,Set(mainLoop=0) exten => _X.,5,Set(TIMEOUT(absolute)=10)??????? ; set time in? milliseconds exten => _X.,6,Playback(/var/callagent/prompts/monitor/thanks) exten => _X.,7,Dial(DAHDI/7/ 09501032209,10,S(60)) exten => _X.,8,Noop(${DIALEDTIME}) exten =>_X.,9,Goto(TB,_X.,1) exten =>_X.,n,Hangup() Thanks Vinod Dharashive Sent from BlackBerry? on Airtel
2017 Dec 27
3
Answered time on channel
...up. In both requests the start time > needs to be the same. My Dialplan looks something like this: > > > [outbound] > Exten => _X.,1,Dial(SIP/${EXTEN}@1.1.1.1,,U(call-answer-from-carrier)) > > Exten => h,1,NoOp(ANSWERED_TIME: ${ANSWEREDTIME} >>> DIAL_TIME: > ${DIALEDTIME} >>> HANGUP_TIME: ${EPOCH} >>> ANSWERED TIME ${MATH(${EPOCH}-${ > ANSWEREDTIME},int)}) > > [call-answer-from-carrier] > Exten => s,1,Noop(CALL WAS ANSWERED AT ${EPOCH} > Exten => s,n,Agi(some_script.py) > > Now in theory the hangup time of the call (${EP...
2010 Jun 08
3
Limit total length of calls to a specifig SIP peer
Hi, I'm currently using a cheap SIP provider for outbound calls. I do have 6 channels to them. In their terms of service there is the following limit: The total duration of calls during one single day should not exceed 24 hours or we do have the right to terminate the contract...blah blah What is the best way to use this provider as long as we are below let's say 22h in a single day
2005 Jan 03
0
Limit max calls & call duration
...Asterisk PBX ? I've seen that we can make this easily per channel (like in SIP.CONF) : incominglimit=X, but I'm looking to limit the maximum calls all channels together. Another thing. Working with asterisk-perl, I need to get the call duration, currently I use $AGI->get_variable('DIALEDTIME'). Is it possible to have a better precision, because DIALEDTIME is only 1sec precise. Thank you.
2006 Nov 12
0
Trixbox dialout problems
...bound-handler,1,Dial(${CallInitiate_phonenumber},50,gM(outbound-connect^${AGI_SERVER}${AGI_URL}^${CallInitiate_hashdata}^${MACHINE_STATUS_UNKNOWN})) exten => outbound-handler,2,GotoIf($["${DIALSTATUS}" = "ANSWER"]?104) exten => outbound-handler,3,NoOp(status=${DIALSTATUS}, DIALEDTIME=${DIALEDTIME}, ANSWEREDTIME=${ANSWEREDTIME}) exten => outbound-handler,4,SetVar(CallInitiate_hashdata=${CallInitiate_hashdata}) exten => outbound-handler,5,deadagi(agi://${AGI_SERVER}${AGI_URL}) ;DIAL_STATUS is busy, etc. exten => outbound-handler,6,Goto(104) exten => outbound-handler,1...
2005 Jul 10
0
Time out not working from php agi...
...Exiting with DIALSTATUS=ANSWER. 2005-06-28 20:58:41 VERBOSE[19094] logger.c: callcard.php: >> GET VARIABLE ANSWEREDTIME 2005-06-28 20:58:41 VERBOSE[19094] logger.c: callcard.php: >> GET VARIABLE DIALSTATUS 2005-06-28 20:58:41 VERBOSE[19094] logger.c: callcard.php: >> GET VARIABLE DIALEDTIME 2005-06-28 20:58:41 VERBOSE[19094] logger.c: callcard.php: string(31) "res is , answered time is 1926n"n 2005-06-28 20:58:41 VERBOSE[19094] logger.c: callcard.php: string(33) "res is , dialedtime time is 1948n"n 2005-06-28 20:58:41 VERBOSE[19094] logger.c: callcard.php: string(1...
2015 Feb 22
2
dialplan contexts syntax and terminology
...separation, what's the syntax surrounding invoking a specific context? For example: tleilax:~ # tleilax:~ # tail /etc/asterisk/extensions-vicidial.conf [vicidial-auto] exten => h,1,AGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI----- NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}----- ${ANSWEREDTIME}) include => vicidial-auto-internal include => vicidial-auto-phones include => vicidial-auto-external ; END OF FILE Last Forced System Reload: 2015-02-20 16:49:28 tleilax:~ # when the above contexts are included, these contexts are declared within the extensi...
2015 Feb 22
0
dialplan contexts syntax and terminology
...> surrounding invoking a specific context? For example: > > tleilax:~ # > tleilax:~ # tail /etc/asterisk/extensions-vicidial.conf > > [vicidial-auto] > exten => h,1,AGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI----- > NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}----- > ${ANSWEREDTIME}) > > include => vicidial-auto-internal > include => vicidial-auto-phones > include => vicidial-auto-external > > > ; END OF FILE Last Forced System Reload: 2015-02-20 16:49:28 > tleilax:~ # > > > when the above contexts are inc...
2005 May 30
0
perl agi : get_variable problem
Hi, I'm developping some AGI in perl (5.8.6) on i386 using Asterisk 1.0.5. I want to get some variables such as DIALSTATUS and ANSWEREDTIME after a $AGI->exec("Dial", "dial_string"); but here is what i get actually: DIALSTATUS= DIALEDTIME=ANSWER ANSWEREDTIME=18 I searched the archives and saw that $AGI->verbose could mess the access to variables, but I don't use it. Any clue welcome :-) Julien -- # Key fingerprint = 121C BB26 F4EE 59AF 5E68 7020 5BC9 D7AB 4CBE C6AD
2012 Mar 08
1
Using the h and DeadAGI
...ng the "h" in the exten =>, then we use DeaAGI with it? I am using vicidial and I see this line alot, so I need to know how it work (when it will be executed): exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME}) The question is: When this line will be executed? After the channel will be hanged up or when? And, why to use DeadAGI and not using AGI? Is it because of using the h which is related to hangup?
2023 May 05
0
Calls running forever / CDRs inaccurate
...-- Context: customer-voipin Extension: 49xxxxxxxxx Priority: 26 Call Group: 0 Pickup Group: 0 Application: Dial Data: SIP/+49xxxxxxxx at provider Call Identifer: [C-000085c3] Variables: PROGRESSTIME_MS= PROGRESSTIME= RINGTIME_MS= RINGTIME= DIALEDTIME_MS= DIALEDTIME= ANSWEREDTIME_MS= ANSWEREDTIME= DIALEDPEERNAME= DIALEDPEERNUMBER= DIALSTATUS= SIPADDHEADER02=X-Something: something AUTO_MONITOR=wav,/var/spool/asterisk/monitor/20230505110016-customer-DE-EXTEN-49xxxxxxx-CLINUM-49xxxxxxxxx-CLINAME--PAICLEAN--CLICLEAN-49xxxxxxxxx-OCLINUM--OCLINAME-,mX...
2014 May 07
1
asterisk12.2.0 PJSIP2.2.0 codec translation problem
...outgoing-kamailio Extension: 7000 Priority: 1 Call Group: 0 Pickup Group: 0 Application: Dial Data: PJSIP/7000 Call Identifer: [C-00000000] Variables: BRIDGEPEER=PJSIP/7000-00000001 DIALEDPEERNUMBER=7000 DIALEDPEERNAME=PJSIP/7000-00000001 DIALSTATUS=ANSWER DIALEDTIME= ANSWEREDTIME= CDR Variables: level 1: calledsubaddr= level 1: callingsubaddr= level 1: dnid= level 1: clid="7001" level 1: src=7001 level 1: dst=7000 level 1: dcontext=outgoin level 1: channel=PJSIP/7 level 1: dstchannel=PJSIP/7 level 1: lastapp=Dial level 1: lastdata=PJSIP/7 level 1:...
2012 Aug 01
2
Problem with callfile and CDR
...] rtp_engine.c: Can't find native functions for channel 'Khomp/B1C0-0.0' [2012-08-01 14:29:44] DEBUG[6679] rtp_engine.c: Seeded SDP of 'Khomp/B1C0-0.0' with that of 'Local/21411615 at test_outgoing-cb92;2' [2012-08-01 14:29:44] DEBUG[6679] channel.c: Not copying variable DIALEDTIME. [2012-08-01 14:29:44] DEBUG[6679] channel.c: Not copying variable ANSWEREDTIME. [2012-08-01 14:29:44] DEBUG[6679] channel.c: Not copying variable DIALEDPEERNAME. [2012-08-01 14:29:44] DEBUG[6679] channel.c: Not copying variable DIALEDPEERNUMBER. [2012-08-01 14:29:44] DEBUG[6679] channel.c: Not cop...