@tm1000 I will post it on github, I’ve never posted on GIT, so it’ll take a minute to figure it out, but I have an acct.
Here is the output w/ AMPUSER:
w/ AMPUSER
voip2*CLI>
-- Feature Found: bsurvey1 exten: bsurvey1
-- Executing [s@macro-bsurvey:1] DumpChan("SIP/2041-00000074", "") in new stack
Dumping Info For Channel: SIP/2041-00000074:
================================================================================
Info:
Name= SIP/2041-00000074
Type= SIP
UniqueID= 1490137814.6962
LinkedID= 1490137813.6905
CallerIDNum= 2041
CallerIDName= John Smith
ConnectedLineIDNum= +12155555555
ConnectedLineIDName=M0:TK-SAINT ALBANS NY
DNIDDigits= (N/A)
RDNIS= (N/A)
Parkinglot= default
Language= en
State= Up (6)
Rings= 0
NativeFormat= (ulaw)
WriteFormat= ulaw
ReadFormat= ulaw
RawWriteFormat= ulaw
RawReadFormat= ulaw
WriteTranscode= No
ReadTranscode= No
1stFileDescriptor= 42
Framesin= 413
Framesout= 399
TimetoHangup= 0
ElapsedTime= 0h0m15s
DirectBridge= <none>
IndirectBridge= <none>
Context= macro-bsurvey
Extension= s
Priority= 1
CallGroup=
PickupGroup=
Application= DumpChan
Data= (Empty)
Blocking_in= (Not Blocking)
Variables:
MACRO_DEPTH=1
ARG1=1
MACRO_PRIORITY=1
MACRO_CONTEXT=macro-dial
MACRO_EXTEN=s
DYNAMIC_FEATURENAME=bsurvey1
DYNAMIC_PEERNAME=Local/847@from-queue-00000d5c;2
BRIDGEPEER=Local/847@from-queue-00000d5c;2
SIPADDHEADER03=
SIPADDHEADER02=
SIPADDHEADER01=
SIPADDHEADER04=
GOSUB_RETVAL=
FORWARD_CONTEXT=from-internal
CFIGNORE=
MACRO_RESULT=
sipkey=
SIPHEADERKEYS=
DIALEDPEERNUMBER=2041
[email protected]:5060
CWIGNORE=
KEEPCID=TRUE
SAVEDCIDNAME=TK-SAINT ALBANS NY
REC_STATUS=RECORDING
RECORD_ID=Local/847@from-queue-00000d5c;2
MIXMON_ID=0x7fa244000aa0
CALLFILENAME=external-847-613-20170321-191013-1490137814.6959
REC_POLICY_MODE=FORCE
FROMQ=true
MOHCLASS=classical-piano
NODEST=613
QUEUEWAIT=1490137814
TTL=64
CALLEE_ACCOUNCODE=
REALCALLERIDNUM=+12155555555
CALLINGNUMPRES_SV=allowed_not_screened
CALLINGNAMEPRES_SV=allowed_not_screened
REVERSAL_REJECT=FALSE
FROM_DID=2675555555
MON_FMT=wav
TIMESTR=20170321-191013
YEAR=2017
MONTH=03
DAY=21
DIRECTION=INBOUND
================================================================================
-- Executing [s@macro-bsurvey:2] ChannelRedirect("SIP/2041-00000074", "Local/847@from-queue-00000d5c;2,bsurvey,1,1") in new stack
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('HANGUP',{ts '2017-03-21 19:10:29.80419'},'John Smith','2041','2041','','','s','bsurvey','SIP/2041-00000074','AppDial','(Outgoing Line)',3,'','1490137814.6962','1490137813.6905','','','')]
== Spawn extension (bsurvey, 1, 1) exited non-zero on 'Local/847@from-queue-00000d5c;2' in macro 'dial'
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_END',{ts '2017-03-21 19:10:29.81394'},'John Smith','2041','2041','','','s','bsurvey','SIP/2041-00000074','AppDial','(Outgoing Line)',3,'','1490137814.6962','1490137813.6905','','','')]
== Spawn extension (bsurvey, 1, 1) exited non-zero on 'Local/847@from-queue-00000d5c;2'
-- Executing [1@bsurvey:1] Set("Local/847@from-queue-00000d5c;2", "bsurvey_name=support") in new stack
-- Executing [1@bsurvey:2] Set("Local/847@from-queue-00000d5c;2", "bsurvey_start=2017-03-21 19:10:14") in new stack
-- Executing [1@bsurvey:3] Set("Local/847@from-queue-00000d5c;2", "bsurvey_unqiueid=1490137814.6959") in new stack
-- Executing [1@bsurvey:4] Set("Local/847@from-queue-00000d5c;2", "bsurvey_agent=") in new stack
-- Executing [1@bsurvey:5] Set("Local/847@from-queue-00000d5c;2", "bsurvey_aname_key=/AMPUSER//cidname=") in new stack
-- Executing [1@bsurvey:6] Set("Local/847@from-queue-00000d5c;2", "bsurvey_aname=") in new stack
-- Executing [1@bsurvey:7] AGI("Local/847@from-queue-00000d5c;2", "bsurvey.php") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/bsurvey.php
-- bsurvey.php: Starting New survey
-- AGI Script Executing Application: (Set) Options: (bsurvey_agent_name=${DB(/AMPUSER//cidname)})
> bsurvey.php: Running SQL Command SELECT a.*,b.`displayname` as dp FROM bsurvey as a left join recordings as b on b.id=a.`rec_id` WHERE a.`id` = '1'
> bsurvey.php: Connected to MySQL database OK.
> bsurvey.php: Selected database OK.
[2017-03-21 19:10:29] WARNING[12544][C-0000003d]: file.c:701 ast_openstream_full: File Alt_SV_Announce does not exist in any format
> bsurvey.php: Running SQL Command select `id` from survey.bsurvey_cdrs limit 0
-- bsurvey.php: TABLE CREATED
> bsurvey.php: Running SQL Command SELECT rec_id,bsurvey_id,b.filename as file,a.displayname,a.res_start,a.res_end FROM bsurvey_recs a left join recordings as b on a.rec_id= b.id where bsurvey_id='1' ORDER BY a.id
-- bsurvey.php: Do questions
-- bsurvey.php: REC Array
-- bsurvey.php: (
-- bsurvey.php: [rec_id] => 65
-- bsurvey.php: [bsurvey_id] => 1
-- bsurvey.php: [file] => custom/alt_sv_q1
-- bsurvey.php: [displayname] => Call Satisfaction
-- bsurvey.php: [res_start] => 1
-- bsurvey.php: [res_end] => 5
-- bsurvey.php: )
-- bsurvey.php:
> bsurvey.php: Running SQL Command insert into survey.bsurvey_cdrs(survey_name,question,res_start ,res_end,rec_file,unqiueid,
> bsurvey.php: calldate,cid,answer,agent,agent_name) values
> bsurvey.php: ('support','Call Satisfaction','1','5','custom/alt_sv_q1','1490137814.6959',
> bsurvey.php: '2017-03-21 19:10:14','','','','')
> bsurvey.php: Running SQL Command select id from survey.bsurvey_cdrs where survey_name='support' and question = 'Call Satisfaction' and unqiueid='1490137814.6959' and agent_name = '' limit 1
-- <Local/847@from-queue-00000d5c;2> Playing 'custom/alt_sv_q1.slin' (language 'en')
> bsurvey.php: Running SQL Command update survey.bsurvey_cdrs set answer='5' where id=571310
-- bsurvey.php: Do questions
-- bsurvey.php: REC Array
-- bsurvey.php: (
-- bsurvey.php: [rec_id] => 66
-- bsurvey.php: [bsurvey_id] => 1
-- bsurvey.php: [file] => custom/alt_sv_q2
-- bsurvey.php: [displayname] => Product Satisfaction
-- bsurvey.php: [res_start] => 1
-- bsurvey.php: [res_end] => 5
-- bsurvey.php: )
-- bsurvey.php:
> bsurvey.php: Running SQL Command insert into survey.bsurvey_cdrs(survey_name,question,res_start ,res_end,rec_file,unqiueid,
> bsurvey.php: calldate,cid,answer,agent,agent_name) values
> bsurvey.php: ('support','Product Satisfaction','1','5','custom/alt_sv_q2','1490137814.6959',
> bsurvey.php: '2017-03-21 19:10:14','','','','')
> bsurvey.php: Running SQL Command select id from survey.bsurvey_cdrs where survey_name='support' and question = 'Product Satisfaction' and unqiueid='1490137814.6959' and agent_name = '' limit 1
-- <Local/847@from-queue-00000d5c;2> Playing 'custom/alt_sv_q2.slin' (language 'en')
> bsurvey.php: Running SQL Command update survey.bsurvey_cdrs set answer='5' where id=571311
-- bsurvey.php: Do questions
-- bsurvey.php: REC
-- <Local/847@from-queue-00000d5c;2> Playing 'bsurvey-thanku.slin' (escape_digits=123456789) (sample_offset 0) (language 'en')
-- <Local/847@from-queue-00000d5c;2>AGI Script bsurvey.php completed, returning -1
== MixMonitor close filestream (mixed)
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('HANGUP',{ts '2017-03-21 19:10:38.193612'},'M0:TK-SAINT ALBANS NY','+12155555555','+12155555555','','','1','bsurvey','Local/847@from-queue-00000d5c;2','','',3,'','1490137814.6959','1490137813.6905','','','')]
-- Executing [h@ext-queues:1] Macro("SIP/Digium_Test-00000073", "hangupcall,") in new stack
> [INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,uniqueid,recordingfile) VALUES ({ ts '2017-03-21 19:10:14' },'"M0:TK-SAINT ALBANS NY" <+12155555555>','+12155555555','847','from-queue-exten-only','Local/847@from-queue-00000d5c;2','SIP/2041-00000074','AGI','HANGUP',24,17,'ANSWERED',3,'1490137814.6959','external-847-613-20170321-191013-1490137814.6959.wav')]
-- Executing [s@macro-hangupcall:1] ExecIf("SIP/Digium_Test-00000073", "0?Set(CDR(recordingfile)=.wav)") in new stack
-- Executing [s@macro-hangupcall:2] GotoIf("SIP/Digium_Test-00000073", "1?theend") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] ExecIf("SIP/Digium_Test-00000073", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:5] Hangup("SIP/Digium_Test-00000073", "") in new stack
== Spawn extension (macro-hangupcall, s, 5) exited non-zero on 'SIP/Digium_Test-00000073' in macro 'hangupcall'
== Spawn extension (ext-queues, h, 1) exited non-zero on 'SIP/Digium_Test-00000073'
== End MixMonitor Recording Local/847@from-queue-00000d5c;2
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('BRIDGE_END',{ts '2017-03-21 19:10:38.193942'},'TK-SAINT ALBANS NY','+12155555555','+12155555555','','2675555555','613','ext-queues','SIP/Digium_Test-00000073','Queue','613,t,,,,,,,,',3,'','1490137813.6905','1490137813.6905','Local/847@from-queue-00000d5c;1','','')]
> [INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,uniqueid,did,cnum,cnam) VALUES ({ ts '2017-03-21 19:10:13' },'"TK-SAINT ALBANS NY" <+12155555555>','+12155555555','613','ext-queues','SIP/Digium_Test-00000073','Local/847@from-queue-00000d5c;1','Queue','613,t,,,,,,,,',25,25,'ANSWERED',3,'1490137813.6905','2675555555','+12155555555','TK-SAINT ALBANS NY')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_END',{ts '2017-03-21 19:10:38.198881'},'M0:TK-SAINT ALBANS NY','+12155555555','+12155555555','','','1','bsurvey','Local/847@from-queue-00000d5c;2','','',3,'','1490137814.6959','1490137813.6905','','','')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('HANGUP',{ts '2017-03-21 19:10:38.200578'},'John Smith','2041','','','','613','from-queue','Local/847@from-queue-00000d5c;1','AppQueue','(Outgoing Line)',3,'','1490137814.6958','1490137813.6905','','','')]
== Spawn extension (ext-queues, 613, 41) exited non-zero on 'SIP/Digium_Test-00000073'
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_END',{ts '2017-03-21 19:10:38.200640'},'John Smith','2041','','','','613','from-queue','Local/847@from-queue-00000d5c;1','AppQueue','(Outgoing Line)',3,'','1490137814.6958','1490137813.6905','','','')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('APP_END',{ts '2017-03-21 19:10:38.201788'},'TK-SAINT ALBANS NY','+12155555555','+12155555555','','2675555555','613','ext-queues','SIP/Digium_Test-00000073','Queue','613,t,,,,,,,,',3,'','1490137813.6905','1490137813.6905','','','')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('HANGUP',{ts '2017-03-21 19:10:38.201990'},'TK-SAINT ALBANS NY','+12155555555','+12155555555','','2675555555','613','ext-queues','SIP/Digium_Test-00000073','','',3,'','1490137813.6905','1490137813.6905','','','')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_END',{ts '2017-03-21 19:10:38.202566'},'TK-SAINT ALBANS NY','+12155555555','+12155555555','','2675555555','613','ext-queues','SIP/Digium_Test-00000073','','',3,'','1490137813.6905','1490137813.6905','','','')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('LINKEDID_END',{ts '2017-03-21 19:10:38.202593'},'TK-SAINT ALBANS NY','+12155555555','+12155555555','','2675555555','613','ext-queues','SIP/Digium_Test-00000073','','',3,'','1490137813.6905','1490137813.6905','','','')]
voip2*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
W/ DEXTEN
voip2*CLI>
-- Feature Found: bsurvey1 exten: bsurvey1
-- Executing [s@macro-bsurvey:1] DumpChan("SIP/2041-00000072", "") in new stack
Dumping Info For Channel: SIP/2041-00000072:
================================================================================
Info:
Name= SIP/2041-00000072
Type= SIP
UniqueID= 1490137696.6904
LinkedID= 1490137683.6790
CallerIDNum= 2041
CallerIDName= John Smith
ConnectedLineIDNum= +12155555555
ConnectedLineIDName=M0:TK-SAINT ALBANS NY
DNIDDigits= (N/A)
RDNIS= (N/A)
Parkinglot= default
Language= en
State= Up (6)
Rings= 0
NativeFormat= (ulaw)
WriteFormat= ulaw
ReadFormat= ulaw
RawWriteFormat= ulaw
RawReadFormat= ulaw
WriteTranscode= No
ReadTranscode= No
1stFileDescriptor= 36
Framesin= 305
Framesout= 292
TimetoHangup= 0
ElapsedTime= 0h0m8s
DirectBridge= <none>
IndirectBridge= <none>
Context= macro-bsurvey
Extension= s
Priority= 1
CallGroup=
PickupGroup=
Application= DumpChan
Data= (Empty)
Blocking_in= (Not Blocking)
Variables:
MACRO_DEPTH=1
ARG1=1
MACRO_PRIORITY=1
MACRO_CONTEXT=macro-dial
MACRO_EXTEN=s
DYNAMIC_FEATURENAME=bsurvey1
DYNAMIC_PEERNAME=Local/847@from-queue-00000d40;2
BRIDGEPEER=Local/847@from-queue-00000d40;2
SIPADDHEADER01=
SIPADDHEADER03=
SIPADDHEADER02=
SIPADDHEADER04=
GOSUB_RETVAL=
FORWARD_CONTEXT=from-internal
CFIGNORE=
MACRO_RESULT=
sipkey=
SIPHEADERKEYS=
DIALEDPEERNUMBER=2041
[email protected]:5060
CWIGNORE=
KEEPCID=TRUE
SAVEDCIDNAME=TK-SAINT ALBANS NY
REC_STATUS=RECORDING
RECORD_ID=Local/847@from-queue-00000d40;2
MIXMON_ID=0x7fa1c8133a60
CALLFILENAME=external-847-613-20170321-190803-1490137696.6901
REC_POLICY_MODE=FORCE
FROMQ=true
MOHCLASS=classical-piano
NODEST=613
QUEUEWAIT=1490137683
TTL=64
CALLEE_ACCOUNCODE=
REALCALLERIDNUM=+12155555555
CALLINGNUMPRES_SV=allowed_not_screened
CALLINGNAMEPRES_SV=allowed_not_screened
REVERSAL_REJECT=FALSE
FROM_DID=2675555555
MON_FMT=wav
TIMESTR=20170321-190803
YEAR=2017
MONTH=03
DAY=21
DIRECTION=INBOUND
================================================================================
-- Executing [s@macro-bsurvey:2] ChannelRedirect("SIP/2041-00000072", "Local/847@from-queue-00000d40;2,bsurvey,1,1") in new stack
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('HANGUP',{ts '2017-03-21 19:08:24.244458'},'John Smith','2041','2041','','','s','bsurvey','SIP/2041-00000072','AppDial','(Outgoing Line)',3,'','1490137696.6904','1490137683.6790','','','')]
== Spawn extension (bsurvey, 1, 1) exited non-zero on 'Local/847@from-queue-00000d40;2' in macro 'dial'
== Spawn extension (bsurvey, 1, 1) exited non-zero on 'Local/847@from-queue-00000d40;2'
-- Executing [1@bsurvey:1] Set("Local/847@from-queue-00000d40;2", "bsurvey_name=support") in new stack
-- Executing [1@bsurvey:2] Set("Local/847@from-queue-00000d40;2", "bsurvey_start=2017-03-21 19:08:16") in new stack
-- Executing [1@bsurvey:3] Set("Local/847@from-queue-00000d40;2", "bsurvey_unqiueid=1490137696.6901") in new stack
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_END',{ts '2017-03-21 19:08:24.245096'},'John Smith','2041','2041','','','s','bsurvey','SIP/2041-00000072','AppDial','(Outgoing Line)',3,'','1490137696.6904','1490137683.6790','','','')]
-- Executing [1@bsurvey:4] Set("Local/847@from-queue-00000d40;2", "bsurvey_agent=") in new stack
-- Executing [1@bsurvey:5] Set("Local/847@from-queue-00000d40;2", "bsurvey_aname_key=/AMPUSER//cidname=") in new stack
-- Executing [1@bsurvey:6] Set("Local/847@from-queue-00000d40;2", "bsurvey_aname=") in new stack
-- Executing [1@bsurvey:7] AGI("Local/847@from-queue-00000d40;2", "bsurvey.php") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/bsurvey.php
-- bsurvey.php: Starting New survey
-- AGI Script Executing Application: (Set) Options: (bsurvey_agent_name=${DB(/AMPUSER//cidname)})
> bsurvey.php: Running SQL Command SELECT a.*,b.`displayname` as dp FROM bsurvey as a left join recordings as b on b.id=a.`rec_id` WHERE a.`id` = '1'
> bsurvey.php: Connected to MySQL database OK.
> bsurvey.php: Selected database OK.
[2017-03-21 19:08:24] WARNING[11761][C-0000003c]: file.c:701 ast_openstream_full: File Alt_SV_Announce does not exist in any format
> bsurvey.php: Running SQL Command select `id` from survey.bsurvey_cdrs limit 0
-- bsurvey.php: TABLE CREATED
> bsurvey.php: Running SQL Command SELECT rec_id,bsurvey_id,b.filename as file,a.displayname,a.res_start,a.res_end FROM bsurvey_recs a left join recordings as b on a.rec_id= b.id where bsurvey_id='1' ORDER BY a.id
-- bsurvey.php: Do questions
-- bsurvey.php: REC Array
-- bsurvey.php: (
-- bsurvey.php: [rec_id] => 65
-- bsurvey.php: [bsurvey_id] => 1
-- bsurvey.php: [file] => custom/alt_sv_q1
-- bsurvey.php: [displayname] => Call Satisfaction
-- bsurvey.php: [res_start] => 1
-- bsurvey.php: [res_end] => 5
-- bsurvey.php: )
-- bsurvey.php:
> bsurvey.php: Running SQL Command insert into survey.bsurvey_cdrs(survey_name,question,res_start ,res_end,rec_file,unqiueid,
> bsurvey.php: calldate,cid,answer,agent,agent_name) values
> bsurvey.php: ('support','Call Satisfaction','1','5','custom/alt_sv_q1','1490137696.6901',
> bsurvey.php: '2017-03-21 19:08:16','','','','')
> bsurvey.php: Running SQL Command select id from survey.bsurvey_cdrs where survey_name='support' and question = 'Call Satisfaction' and unqiueid='1490137696.6901' and agent_name = '' limit 1
-- <Local/847@from-queue-00000d40;2> Playing 'custom/alt_sv_q1.slin' (language 'en')
> bsurvey.php: Running SQL Command update survey.bsurvey_cdrs set answer='5' where id=571308
-- bsurvey.php: Do questions
-- bsurvey.php: REC Array
-- bsurvey.php: (
-- bsurvey.php: [rec_id] => 66
-- bsurvey.php: [bsurvey_id] => 1
-- bsurvey.php: [file] => custom/alt_sv_q2
-- bsurvey.php: [displayname] => Product Satisfaction
-- bsurvey.php: [res_start] => 1
-- bsurvey.php: [res_end] => 5
-- bsurvey.php: )
-- bsurvey.php:
> bsurvey.php: Running SQL Command insert into survey.bsurvey_cdrs(survey_name,question,res_start ,res_end,rec_file,unqiueid,
> bsurvey.php: calldate,cid,answer,agent,agent_name) values
> bsurvey.php: ('support','Product Satisfaction','1','5','custom/alt_sv_q2','1490137696.6901',
> bsurvey.php: '2017-03-21 19:08:16','','','','')
> bsurvey.php: Running SQL Command select id from survey.bsurvey_cdrs where survey_name='support' and question = 'Product Satisfaction' and unqiueid='1490137696.6901' and agent_name = '' limit 1
-- <Local/847@from-queue-00000d40;2> Playing 'custom/alt_sv_q2.slin' (language 'en')
> bsurvey.php: Running SQL Command update survey.bsurvey_cdrs set answer='5' where id=571309
-- bsurvey.php: Do questions
-- bsurvey.php: REC
-- <Local/847@from-queue-00000d40;2> Playing 'bsurvey-thanku.slin' (escape_digits=123456789) (sample_offset 0) (language 'en')
-- <Local/847@from-queue-00000d40;2>AGI Script bsurvey.php completed, returning -1
== MixMonitor close filestream (mixed)
-- Executing [h@ext-queues:1] Macro("SIP/Digium_Test-00000070", "hangupcall,") in new stack
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('HANGUP',{ts '2017-03-21 19:08:37.835866'},'M0:TK-SAINT ALBANS NY','+12155555555','+12155555555','','','1','bsurvey','Local/847@from-queue-00000d40;2','','',3,'','1490137696.6901','1490137683.6790','','','')]
-- Executing [s@macro-hangupcall:1] ExecIf("SIP/Digium_Test-00000070", "0?Set(CDR(recordingfile)=.wav)") in new stack
-- Executing [s@macro-hangupcall:2] GotoIf("SIP/Digium_Test-00000070", "1?theend") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] ExecIf("SIP/Digium_Test-00000070", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:5] Hangup("SIP/Digium_Test-00000070", "") in new stack
== Spawn extension (macro-hangupcall, s, 5) exited non-zero on 'SIP/Digium_Test-00000070' in macro 'hangupcall'
== Spawn extension (ext-queues, h, 1) exited non-zero on 'SIP/Digium_Test-00000070'
> [INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,uniqueid,recordingfile) VALUES ({ ts '2017-03-21 19:08:16' },'"M0:TK-SAINT ALBANS NY" <+12155555555>','+12155555555','847','from-queue-exten-only','Local/847@from-queue-00000d40;2','SIP/2041-00000072','AGI','HANGUP',21,19,'ANSWERED',3,'1490137696.6901','external-847-613-20170321-190803-1490137696.6901.wav')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('BRIDGE_END',{ts '2017-03-21 19:08:37.836169'},'TK-SAINT ALBANS NY','+12155555555','+12155555555','','2675555555','613','ext-queues','SIP/Digium_Test-00000070','Queue','613,t,,,,,,,,',3,'','1490137683.6790','1490137683.6790','Local/847@from-queue-00000d40;1','','')]
> [INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,uniqueid,did,cnum,cnam) VALUES ({ ts '2017-03-21 19:08:03' },'"TK-SAINT ALBANS NY" <+12155555555>','+12155555555','613','ext-queues','SIP/Digium_Test-00000070','Local/847@from-queue-00000d40;1','Queue','613,t,,,,,,,,',34,34,'ANSWERED',3,'1490137683.6790','2675555555','+12155555555','TK-SAINT ALBANS NY')]
== End MixMonitor Recording Local/847@from-queue-00000d40;2
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_END',{ts '2017-03-21 19:08:37.843187'},'M0:TK-SAINT ALBANS NY','+12155555555','+12155555555','','','1','bsurvey','Local/847@from-queue-00000d40;2','','',3,'','1490137696.6901','1490137683.6790','','','')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('HANGUP',{ts '2017-03-21 19:08:37.844705'},'John Smith','2041','','','','613','from-queue','Local/847@from-queue-00000d40;1','AppQueue','(Outgoing Line)',3,'','1490137696.6900','1490137683.6790','','','')]
== Spawn extension (ext-queues, 613, 41) exited non-zero on 'SIP/Digium_Test-00000070'
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_END',{ts '2017-03-21 19:08:37.844767'},'John Smith','2041','','','','613','from-queue','Local/847@from-queue-00000d40;1','AppQueue','(Outgoing Line)',3,'','1490137696.6900','1490137683.6790','','','')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('APP_END',{ts '2017-03-21 19:08:37.845890'},'TK-SAINT ALBANS NY','+12155555555','+12155555555','','2675555555','613','ext-queues','SIP/Digium_Test-00000070','Queue','613,t,,,,,,,,',3,'','1490137683.6790','1490137683.6790','','','')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('HANGUP',{ts '2017-03-21 19:08:37.846015'},'TK-SAINT ALBANS NY','+12155555555','+12155555555','','2675555555','613','ext-queues','SIP/Digium_Test-00000070','','',3,'','1490137683.6790','1490137683.6790','','','')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_END',{ts '2017-03-21 19:08:37.846474'},'TK-SAINT ALBANS NY','+12155555555','+12155555555','','2675555555','613','ext-queues','SIP/Digium_Test-00000070','','',3,'','1490137683.6790','1490137683.6790','','','')]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('LINKEDID_END',{ts '2017-03-21 19:08:37.846498'},'TK-SAINT ALBANS NY','+12155555555','+12155555555','','2675555555','613','ext-queues','SIP/Digium_Test-00000070','','',3,'','1490137683.6790','1490137683.6790','','','')]
voip2*CLI>
@dicko The survey does work w/ FreePBX 12 + Ast 11 + Distro 6 as mentioned earlier, I have no idea who made it though.