Transfer to survey

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Transfer to survey

Postby heinz » Fri Aug 21, 2009 2:48 am

Hi,
I have a question if it is possible in general that an agent transfers a call from an outbound campaign to a certain extension and dispositions the call after the transfer?

For example after the actual call we would like to transfer the customer (if he agrees) to a IVR extension where he answers some survey questions.
I don't think that I can use the closer functionality because i would lose the possibility of disposition the call?!

Do you think there is a way of realizing something like that?

Thanks,
heinz
heinz
 
Posts: 106
Joined: Mon Oct 08, 2007 1:30 am
Location: South Africa

Postby mflorell » Sat Aug 22, 2009 12:43 pm

Yes, that should be easy if I understand you correctly, just click transfer-conf button, enter the IVR number in the number-to-dial field and click the Blind-Transfer button, then the disposition screen will show up.
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby heinz » Wed Aug 26, 2009 7:13 am

Thanks Matt!
Works great that way.
The only problem I have is that the CALLERID is not delivered like I expected. I went through the manager manual and set
3-Way Call Outbound CallerID: CUSTOMER.
Unfortunately this setting gives me the CALLERID = 00000000. If I change the setting to AGENT_CHOOSE and the agent chooses CUSTOMER, everything works fine and the phone_number of the customer finds its way into the database.

Find below my extension and the survey context.
Am I missing something?

Code: Select all
exten => 1299,1,Answer()
exten => 1299,2,Noop(Enter Survey with CID ${CALLERID(num)})
exten => 1299,3,Goto(survey-test,s,1)
exten => 1299,4,Hangup()

Code: Select all
[survey-test]
exten => s,1,Answer()
exten => s,2,Noop(Enter Test Survey)
exten => s,3,Wait(2)
exten => s,4,Set(QUES=0)
exten => s,5,Read(answer,/var/lib/asterisk/sounds/custom/question${QUES},1,,1)
exten => s,6,Gotoif($[${answer} < 9]?7:5)
exten => s,7,Noop(Write A:${answer} and Q:${QUES} and C:${CALLERID(num)} into DB)
exten => s,8,MYSQL(Connect XXX)
exten => s,9,MYSQL(Query resultid XXX VALUES\ ('${CALLERID(num)}'\,'${QUES}'\,'${answer}'))
exten => s,10,MYSQL(Disconnect ${connid})
exten => s,11,Playback(auth-thankyou)
exten => s,12,Set(QUES=$[${QUES}+1])
exten => s,13,Gotoif($[${QUES} < 10]?5:100)
exten => s,100,Noop(End of survey)
exten => h,1,Hangup()

Thanks,
heinz
heinz
 
Posts: 106
Joined: Mon Oct 08, 2007 1:30 am
Location: South Africa

Postby mflorell » Wed Aug 26, 2009 6:47 pm

vicidial.php version and build?

Asterisk and agiout output examples?
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby heinz » Thu Aug 27, 2009 12:58 am

Hi Matt,

VERSION: 2.0.5-173
BUILD: 90320-0424

What I do is placing a call to my cellphone (079...) via MANUAL DIAL and then blind transfer it to extension 1299.
This is the output with 3-Way Call Outbound CallerID set to CUSTOMER:

FASTAGI:
Code: Select all
2009-08-27 7:30:19|VDfastAGI|begin|+++++++++++++++++ FastAGI Start ++++++++++++++++++++++++++++++++++++++++
2009-08-27 7:30:19|VDfastAGI|begin|Perl Environment Dump:
2009-08-27 7:30:19|VDfastAGI|begin|0|--debug
2009-08-27 7:30:19|VDfastAGI|begin|AGI Environment Dump:
2009-08-27 7:30:19|VDfastAGI|begin| -- accountcode =
2009-08-27 7:30:19|VDfastAGI|begin| -- callerid = 0000000000
2009-08-27 7:30:19|VDfastAGI|begin| -- calleridname = M0827073019000019944
2009-08-27 7:30:19|VDfastAGI|begin| -- callingani2 = 0
2009-08-27 7:30:19|VDfastAGI|begin| -- callingpres = 0
2009-08-27 7:30:19|VDfastAGI|begin| -- callingtns = 0
2009-08-27 7:30:19|VDfastAGI|begin| -- callington = 0
2009-08-27 7:30:19|VDfastAGI|begin| -- channel = Local/8610051@default-e8e9,1
2009-08-27 7:30:19|VDfastAGI|begin| -- context = default
2009-08-27 7:30:19|VDfastAGI|begin| -- dnid = unknown
2009-08-27 7:30:19|VDfastAGI|begin| -- enhanced = 0.0
2009-08-27 7:30:19|VDfastAGI|begin| -- extension = 079922xxxxx
2009-08-27 7:30:19|VDfastAGI|begin| -- language = en
2009-08-27 7:30:19|VDfastAGI|begin| -- network = yes
2009-08-27 7:30:19|VDfastAGI|begin| -- network_script = call_log
2009-08-27 7:30:19|VDfastAGI|begin| -- priority = 1
2009-08-27 7:30:19|VDfastAGI|begin| -- rdnis = unknown
2009-08-27 7:30:19|VDfastAGI|begin| -- request = agi://127.0.0.1:4577/call_log
2009-08-27 7:30:19|VDfastAGI|begin| -- type = Local
2009-08-27 7:30:19|VDfastAGI|begin| -- uniqueid = 1251351019.5
2009-08-27 7:30:19|VDfastAGI|begin|AGI Variables: |1251351019.5|Local/8610051@default-e8e9,1|079922xxxxx|Local|M0827073019000019944|
2009-08-27 7:30:19|VDfastAGI|call_log|Process to run: |agi://127.0.0.1:4577/call_log|call_log|START|
2009-08-27 7:30:19|VDfastAGI|call_log|+++++ CALL LOG START : 2009-08-27 7:30:19
2009-08-27 7:30:19|VDfastAGI|call_log|Local Channel Line: 0|8610051|
2009-08-27 7:30:19|VDfastAGI|call_log||INSERT INTO call_log (uniqueid,channel,channel_group,type,server_ip,extension,number_dialed,start_time,start_epoch,end_time,end_epoch,length_in_sec,length_in_min,caller_code) values('1251351019.5','Local/8610051@default-e8e9,1','Local Channel Line','Local','192.168.1.250','079922xxxxx','079922xxxxx','2009-08-27 7:30:19','1251351019','','','','','M0827073019000019944')|
2009-08-27 7:30:39|VDfastAGI|begin|+++++++++++++++++ FastAGI Start ++++++++++++++++++++++++++++++++++++++++
2009-08-27 7:30:39|VDfastAGI|begin|Perl Environment Dump:
2009-08-27 7:30:39|VDfastAGI|begin|0|--debug
2009-08-27 7:30:39|VDfastAGI|begin|URL HVcauses: |PRI|NODEBUG|16|ANSWER|20|10|
2009-08-27 7:30:39|VDfastAGI|begin|AGI Environment Dump:
2009-08-27 7:30:39|VDfastAGI|begin| -- accountcode =
2009-08-27 7:30:39|VDfastAGI|begin| -- callerid = 0000000000
2009-08-27 7:30:39|VDfastAGI|begin| -- calleridname = M0827073019000019944
2009-08-27 7:30:39|VDfastAGI|begin| -- callingani2 = 0
2009-08-27 7:30:39|VDfastAGI|begin| -- callingpres = 0
2009-08-27 7:30:39|VDfastAGI|begin| -- callingtns = 0
2009-08-27 7:30:39|VDfastAGI|begin| -- callington = 0
2009-08-27 7:30:39|VDfastAGI|begin| -- channel = Local/8610051@default-e8e9,1
2009-08-27 7:30:39|VDfastAGI|begin| -- context = default
2009-08-27 7:30:39|VDfastAGI|begin| -- dnid = unknown
2009-08-27 7:30:39|VDfastAGI|begin| -- enhanced = 0.0
2009-08-27 7:30:39|VDfastAGI|begin| -- extension = h
2009-08-27 7:30:39|VDfastAGI|begin| -- language = en
2009-08-27 7:30:39|VDfastAGI|begin| -- network = yes
2009-08-27 7:30:39|VDfastAGI|begin| -- network_script = call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----20-----10
2009-08-27 7:30:39|VDfastAGI|begin| -- priority = 1
2009-08-27 7:30:39|VDfastAGI|begin| -- rdnis = unknown
2009-08-27 7:30:39|VDfastAGI|begin| -- request = agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----20-----10
2009-08-27 7:30:39|VDfastAGI|begin| -- type = Local
2009-08-27 7:30:39|VDfastAGI|begin| -- uniqueid = 1251351019.5
2009-08-27 7:30:39|VDfastAGI|begin|AGI Variables: |1251351019.5|Local/8610051@default-e8e9,1|h|Local|M0827073019000019944|
2009-08-27 7:30:39|VDfastAGI|call_log|Process to run: |agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----20-----10|call_log|END|
2009-08-27 7:30:39|VDfastAGI|call_log||CALL HUNG UP|
2009-08-27 7:30:39|VDfastAGI|call_log|URL HVcauses: |PRI|NODEBUG|16|ANSWER|20|10|
2009-08-27 7:30:39|VDfastAGI|call_log||1251351019.5|1251351019|
2009-08-27 7:30:39|VDfastAGI|call_log|QUERY done: start time = 1251351019 | sec: 20 | min:     0.33 |
2009-08-27 7:30:39|VDfastAGI|call_log||UPDATE call_log set end_time='2009-08-27 7:30:39',end_epoch='1251351039',length_in_sec=20,length_in_min='    0.33',channel='Local/8610051@default-e8e9,1' where uniqueid='1251351019.5'|
2009-08-27 7:30:39|VDfastAGI|call_log||DELETE from live_inbound where uniqueid='1251351019.5' and server_ip='192.168.1.250'|
2009-08-27 7:30:39|VDfastAGI|call_log|+++++ CALL LOG HUNGUP: |1251351019.5|Local/8610051@default-e8e9,1|h|2009-08-27 7:30:39|min:     0.33|
2009-08-27 7:30:39|VDfastAGI|call_log|DEBUG: NODEBUG
2009-08-27 7:30:39|VDfastAGI|call_log|VD_hangup : M0827073019000019944 Local/8610051@default-e8e9,1 1 19944
2009-08-27 7:30:39|VDfastAGI|call_log|--    VD_hangup Local DEBUG: |PRI|M0827073019000019944|ANSWER|16|
2009-08-27 7:30:39|VDfastAGI|call_log|+++++ VDAD START LOCAL CHANNEL: EXITING- 1
2009-08-27 7:30:39|VDfastAGI|begin|+++++++++++++++++ FastAGI Start ++++++++++++++++++++++++++++++++++++++++
2009-08-27 7:30:39|VDfastAGI|begin|Perl Environment Dump:
2009-08-27 7:30:39|VDfastAGI|begin|0|--debug
2009-08-27 7:30:39|VDfastAGI|begin|URL HVcauses: |PRI|NODEBUG|0||||
2009-08-27 7:30:39|VDfastAGI|begin|AGI Environment Dump:
2009-08-27 7:30:39|VDfastAGI|begin| -- accountcode =
2009-08-27 7:30:39|VDfastAGI|begin| -- callerid = 0000000000
2009-08-27 7:30:39|VDfastAGI|begin| -- calleridname = M0827073019000019944
2009-08-27 7:30:39|VDfastAGI|begin| -- callingani2 = 0
2009-08-27 7:30:39|VDfastAGI|begin| -- callingpres = 0
2009-08-27 7:30:39|VDfastAGI|begin| -- callingtns = 0
2009-08-27 7:30:39|VDfastAGI|begin| -- callington = 0
2009-08-27 7:30:39|VDfastAGI|begin| -- channel = Local/8610051@default-e8e9,2
2009-08-27 7:30:39|VDfastAGI|begin| -- context = default
2009-08-27 7:30:39|VDfastAGI|begin| -- dnid = unknown
2009-08-27 7:30:39|VDfastAGI|begin| -- enhanced = 0.0
2009-08-27 7:30:39|VDfastAGI|begin| -- extension = h
2009-08-27 7:30:39|VDfastAGI|begin| -- language = en
2009-08-27 7:30:39|VDfastAGI|begin| -- network = yes
2009-08-27 7:30:39|VDfastAGI|begin| -- network_script = call_log--HVcauses--PRI-----NODEBUG-----0---------------
2009-08-27 7:30:39|VDfastAGI|begin| -- priority = 1
2009-08-27 7:30:39|VDfastAGI|begin| -- rdnis = unknown
2009-08-27 7:30:39|VDfastAGI|begin| -- request = agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------
2009-08-27 7:30:39|VDfastAGI|begin| -- type = Local
2009-08-27 7:30:39|VDfastAGI|begin| -- uniqueid = 1251351019.6
2009-08-27 7:30:39|VDfastAGI|begin|AGI Variables: |1251351019.6|Local/8610051@default-e8e9,2|h|Local|M0827073019000019944|
2009-08-27 7:30:39|VDfastAGI|call_log|Process to run: |agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------|call_log|END|
2009-08-27 7:30:39|VDfastAGI|call_log||CALL HUNG UP|
2009-08-27 7:30:39|VDfastAGI|call_log|URL HVcauses: |PRI|NODEBUG|0||||
2009-08-27 7:30:39|VDfastAGI|call_log||DELETE from live_inbound where uniqueid='1251351019.6' and server_ip='192.168.1.250'|
2009-08-27 7:30:39|VDfastAGI|call_log|+++++ CALL LOG HUNGUP: |1251351019.6|Local/8610051@default-e8e9,2|h|2009-08-27 7:30:39|min: |
2009-08-27 7:30:39|VDfastAGI|call_log|DEBUG: NODEBUG
2009-08-27 7:30:39|VDfastAGI|call_log|VD_hangup : M0827073019000019944 Local/8610051@default-e8e9,2 1 19944
2009-08-27 7:30:39|VDfastAGI|call_log|--    VD_hangup Local DEBUG: |PRI|M0827073019000019944||0|
2009-08-27 7:30:39|VDfastAGI|call_log|+++++ VDAD START LOCAL CHANNEL: EXITING- 1

FULL

Code: Select all
[Aug 27 07:30:19] VERBOSE[4076] logger.c:     -- Executing [079922xxxxx@default:1] AGI("Local/8610051@default-e8e9,1", "agi://127.0.0.1:4577/call_log") in new stack
[Aug 27 07:30:19] VERBOSE[4076] logger.c:     -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Aug 27 07:30:19] VERBOSE[4076] logger.c:     -- Executing [079922xxxxx@default:2] Dial("Local/8610051@default-e8e9,1", "IAX2/cellarprice-pbx/079922xxxxx|55|To") in new stack
[Aug 27 07:30:19] DEBUG[4076] chan_iax2.c: prepending 4 to prefs
[Aug 27 07:30:19] VERBOSE[4076] logger.c:     -- Called cellarprice-pbx/079922xxxxx
[Aug 27 07:30:19] VERBOSE[2925] logger.c:     -- Call accepted by 192.168.1.1 (format alaw)
[Aug 27 07:30:19] VERBOSE[2925] logger.c:     -- Format for call is alaw
[Aug 27 07:30:19] VERBOSE[4084] logger.c:   == Parsing '/etc/asterisk/manager.conf': [Aug 27 07:30:19] VERBOSE[4084] logger.c: Found
[Aug 27 07:30:19] VERBOSE[4084] logger.c:   == Parsing '/etc/asterisk/manager_additional.conf': [Aug 27 07:30:19] VERBOSE[4084] logger.c: Found
[Aug 27 07:30:19] VERBOSE[4084] logger.c:   == Parsing '/etc/asterisk/manager_custom.conf': [Aug 27 07:30:19] VERBOSE[4084] logger.c: Found
[Aug 27 07:30:19] VERBOSE[4084] logger.c:   == Parsing '/etc/asterisk/manager_vicidial.conf': [Aug 27 07:30:19] VERBOSE[4084] logger.c: Found
[Aug 27 07:30:19] VERBOSE[4084] logger.c:   == Manager 'sendvicidial' logged on from 127.0.0.1
[Aug 27 07:30:19] NOTICE[4084] chan_local.c: No such extension/context 58610051@default while calling Local channel
[Aug 27 07:30:19] NOTICE[4084] channel.c: Unable to call channel Local/58610051@default
[Aug 27 07:30:19] VERBOSE[4076] logger.c:     -- IAX2/cellarprice-pbx-13674 is proceeding passing it to Local/8610051@default-e8e9,1
[Aug 27 07:30:23] VERBOSE[4074] logger.c:   == Manager 'sendvicidial' logged off from 127.0.0.1
[Aug 27 07:30:23] VERBOSE[4084] logger.c:   == Manager 'sendvicidial' logged off from 127.0.0.1
[Aug 27 07:30:29] VERBOSE[4076] logger.c:     -- IAX2/cellarprice-pbx-13674 answered Local/8610051@default-e8e9,1
[Aug 27 07:30:39] VERBOSE[4153] logger.c:   == Parsing '/etc/asterisk/manager.conf': [Aug 27 07:30:39] VERBOSE[4153] logger.c: Found
[Aug 27 07:30:39] VERBOSE[4153] logger.c:   == Parsing '/etc/asterisk/manager_additional.conf': [Aug 27 07:30:39] VERBOSE[4153] logger.c: Found
[Aug 27 07:30:39] VERBOSE[4153] logger.c:   == Parsing '/etc/asterisk/manager_custom.conf': [Aug 27 07:30:39] VERBOSE[4153] logger.c: Found
[Aug 27 07:30:39] VERBOSE[4153] logger.c:   == Parsing '/etc/asterisk/manager_vicidial.conf': [Aug 27 07:30:39] VERBOSE[4153] logger.c: Found
[Aug 27 07:30:39] VERBOSE[4153] logger.c:   == Manager 'sendvicidial' logged on from 127.0.0.1
[Aug 27 07:30:39] VERBOSE[4075] logger.c:   == Spawn extension (default, 1299, 0) exited non-zero on 'Local/8610051@default-e8e9,2'
[Aug 27 07:30:39] VERBOSE[4075] logger.c:     -- Executing [1299@default:1] Answer("Local/8610051@default-e8e9,2", "") in new stack
[Aug 27 07:30:39] VERBOSE[4075] logger.c:     -- Executing [1299@default:2] Playback("Local/8610051@default-e8e9,2", "welcome") in new stack
[Aug 27 07:30:39] VERBOSE[4154] logger.c:   == Parsing '/etc/asterisk/manager.conf': [Aug 27 07:30:39] VERBOSE[4154] logger.c: Found
[Aug 27 07:30:39] VERBOSE[4154] logger.c:   == Parsing '/etc/asterisk/manager_additional.conf': [Aug 27 07:30:39] VERBOSE[4154] logger.c: Found
[Aug 27 07:30:39] VERBOSE[4154] logger.c:   == Parsing '/etc/asterisk/manager_custom.conf': [Aug 27 07:30:39] VERBOSE[4154] logger.c: Found
[Aug 27 07:30:39] VERBOSE[4154] logger.c:   == Parsing '/etc/asterisk/manager_vicidial.conf': [Aug 27 07:30:39] VERBOSE[4154] logger.c: Found
[Aug 27 07:30:39] VERBOSE[4154] logger.c:   == Manager 'sendvicidial' logged on from 127.0.0.1
[Aug 27 07:30:39] VERBOSE[4155] logger.c:     -- Executing [1299@default:1] Answer("IAX2/cellarprice-pbx-13674", "") in new stack
[Aug 27 07:30:39] VERBOSE[4155] logger.c:     -- Executing [1299@default:2] Playback("IAX2/cellarprice-pbx-13674", "welcome") in new stack
[Aug 27 07:30:39] VERBOSE[4076] logger.c:     -- Executing [h@default:1] DeadAGI("Local/8610051@default-e8e9,1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----20-----10") in new stack
[Aug 27 07:30:39] WARNING[4076] res_agi.c: Running DeadAGI on a live channel will cause problems, please use AGI
[Aug 27 07:30:39] VERBOSE[4075] logger.c:     -- <Local/8610051@default-e8e9,2> Playing 'welcome' (language 'en')
[Aug 27 07:30:39] VERBOSE[4155] logger.c:     -- <IAX2/cellarprice-pbx-13674> Playing 'welcome' (language 'en')
[Aug 27 07:30:39] VERBOSE[4076] logger.c:     -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----20-----10 completed, returning 0
[Aug 27 07:30:39] VERBOSE[4076] logger.c:   == Spawn extension (default, 079922xxxxx, 2) exited non-zero on 'Local/8610051@default-e8e9,1'
[Aug 27 07:30:39] VERBOSE[4075] logger.c:   == Spawn extension (default, 1299, 2) exited non-zero on 'Local/8610051@default-e8e9,2'
[Aug 27 07:30:39] VERBOSE[4075] logger.c:     -- Executing [h@default:1] DeadAGI("Local/8610051@default-e8e9,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
[Aug 27 07:30:39] VERBOSE[4075] logger.c:     -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------- completed, returning 0
[Aug 27 07:30:40] VERBOSE[4155] logger.c:     -- Executing [1299@default:3] NoOp("IAX2/cellarprice-pbx-13674", "Enter Survey Extension 0000000000") in new stack
[Aug 27 07:30:40] VERBOSE[4155] logger.c:     -- Executing [1299@default:4] Set("IAX2/cellarprice-pbx-13674", "_CUSTCID=0000000000") in new stack
[Aug 27 07:30:40] VERBOSE[4155] logger.c:     -- Executing [1299@default:5] Goto("IAX2/cellarprice-pbx-13674", "survey-test|s|1") in new stack
[Aug 27 07:30:40] VERBOSE[4155] logger.c:     -- Goto (survey-test,s,1)
[Aug 27 07:30:40] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:1] Answer("IAX2/cellarprice-pbx-13674", "") in new stack
[Aug 27 07:30:40] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:2] NoOp("IAX2/cellarprice-pbx-13674", "Welcome 0000000000") in new stack
[Aug 27 07:30:40] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:3] Wait("IAX2/cellarprice-pbx-13674", "2") in new stack
[Aug 27 07:30:42] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:4] Set("IAX2/cellarprice-pbx-13674", "QUES=0") in new stack
[Aug 27 07:30:42] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:5] Read("IAX2/cellarprice-pbx-13674", "answer|/var/lib/asterisk/sounds/custom/question0|1||1") in new stack
[Aug 27 07:30:42] VERBOSE[4155] logger.c:     -- Accepting a maximum of 1 digits.
[Aug 27 07:30:42] VERBOSE[4155] logger.c:     -- <IAX2/cellarprice-pbx-13674> Playing '/var/lib/asterisk/sounds/custom/question0' (language 'en')
[Aug 27 07:30:43] VERBOSE[4153] logger.c:   == Manager 'sendvicidial' logged off from 127.0.0.1
[Aug 27 07:30:43] VERBOSE[4154] logger.c:   == Manager 'sendvicidial' logged off from 127.0.0.1
[Aug 27 07:30:46] VERBOSE[4155] logger.c:     -- User entered '3'
[Aug 27 07:30:46] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:6] GotoIf("IAX2/cellarprice-pbx-13674", "1?7:5") in new stack
[Aug 27 07:30:46] VERBOSE[4155] logger.c:     -- Goto (survey-test,s,7)
[Aug 27 07:30:46] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:7] NoOp("IAX2/cellarprice-pbx-13674", "Write A:3 and Q:0 and C:0000000000 into DB") in new stack
[Aug 27 07:30:46] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:8] MYSQL("IAX2/cellarprice-pbx-13674", "Connect connid localhost root xxx") in new stack
[Aug 27 07:30:46] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:9] MYSQL("IAX2/cellarprice-pbx-13674", "Query resultid 1 INSERT INTO cp_survey (callnum,question,answer) VALUES (0000000000,0,3)") in new stack
[Aug 27 07:30:46] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:10] MYSQL("IAX2/cellarprice-pbx-13674", "Disconnect 1") in new stack
[Aug 27 07:30:46] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:11] Playback("IAX2/cellarprice-pbx-13674", "auth-thankyou") in new stack
[Aug 27 07:30:46] VERBOSE[4155] logger.c:     -- <IAX2/cellarprice-pbx-13674> Playing 'auth-thankyou' (language 'en')
[Aug 27 07:30:47] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:12] Set("IAX2/cellarprice-pbx-13674", "QUES=1") in new stack
[Aug 27 07:30:47] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:13] GotoIf("IAX2/cellarprice-pbx-13674", "1?5:100") in new stack
[Aug 27 07:30:47] VERBOSE[4155] logger.c:     -- Goto (survey-test,s,5)
[Aug 27 07:30:47] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:5] Read("IAX2/cellarprice-pbx-13674", "answer|/var/lib/asterisk/sounds/custom/question1|1||1") in new stack
[Aug 27 07:30:47] VERBOSE[4155] logger.c:     -- Accepting a maximum of 1 digits.
[Aug 27 07:30:47] VERBOSE[4155] logger.c:     -- <IAX2/cellarprice-pbx-13674> Playing '/var/lib/asterisk/sounds/custom/question1' (language 'en')
[Aug 27 07:30:51] VERBOSE[4155] logger.c:     -- User entered '3'
[Aug 27 07:30:51] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:6] GotoIf("IAX2/cellarprice-pbx-13674", "1?7:5") in new stack
[Aug 27 07:30:51] VERBOSE[4155] logger.c:     -- Goto (survey-test,s,7)
[Aug 27 07:30:51] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:7] NoOp("IAX2/cellarprice-pbx-13674", "Write A:3 and Q:1 and C:0000000000 into DB") in new stack
[Aug 27 07:30:51] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:8] MYSQL("IAX2/cellarprice-pbx-13674", "Connect connid localhost root xxx") in new stack
[Aug 27 07:30:51] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:9] MYSQL("IAX2/cellarprice-pbx-13674", "Query resultid 1 INSERT INTO cp_survey (callnum,question,answer) VALUES (0000000000,1,3)") in new stack
[Aug 27 07:30:51] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:10] MYSQL("IAX2/cellarprice-pbx-13674", "Disconnect 1") in new stack
[Aug 27 07:30:51] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:11] Playback("IAX2/cellarprice-pbx-13674", "auth-thankyou") in new stack
[Aug 27 07:30:51] VERBOSE[4155] logger.c:     -- <IAX2/cellarprice-pbx-13674> Playing 'auth-thankyou' (language 'en')
[Aug 27 07:30:52] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:12] Set("IAX2/cellarprice-pbx-13674", "QUES=2") in new stack
[Aug 27 07:30:52] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:13] GotoIf("IAX2/cellarprice-pbx-13674", "1?5:100") in new stack
[Aug 27 07:30:52] VERBOSE[4155] logger.c:     -- Goto (survey-test,s,5)
[Aug 27 07:30:52] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:5] Read("IAX2/cellarprice-pbx-13674", "answer|/var/lib/asterisk/sounds/custom/question2|1||1") in new stack
[Aug 27 07:30:52] VERBOSE[4155] logger.c:     -- Accepting a maximum of 1 digits.
[Aug 27 07:30:52] VERBOSE[4155] logger.c:     -- <IAX2/cellarprice-pbx-13674> Playing '/var/lib/asterisk/sounds/custom/question2' (language 'en')
[Aug 27 07:30:55] VERBOSE[4155] logger.c:     -- User entered '6'
[Aug 27 07:30:55] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:6] GotoIf("IAX2/cellarprice-pbx-13674", "1?7:5") in new stack
[Aug 27 07:30:55] VERBOSE[4155] logger.c:     -- Goto (survey-test,s,7)
[Aug 27 07:30:55] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:7] NoOp("IAX2/cellarprice-pbx-13674", "Write A:6 and Q:2 and C:0000000000 into DB") in new stack
[Aug 27 07:30:55] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:8] MYSQL("IAX2/cellarprice-pbx-13674", "Connect connid localhost root xxxx") in new stack
[Aug 27 07:30:55] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:9] MYSQL("IAX2/cellarprice-pbx-13674", "Query resultid 1 INSERT INTO cp_survey (callnum,question,answer) VALUES (0000000000,2,6)") in new stack
[Aug 27 07:30:55] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:10] MYSQL("IAX2/cellarprice-pbx-13674", "Disconnect 1") in new stack
[Aug 27 07:30:55] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:11] Playback("IAX2/cellarprice-pbx-13674", "auth-thankyou") in new stack
[Aug 27 07:30:55] VERBOSE[4155] logger.c:     -- <IAX2/cellarprice-pbx-13674> Playing 'auth-thankyou' (language 'en')
[Aug 27 07:30:56] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:12] Set("IAX2/cellarprice-pbx-13674", "QUES=3") in new stack
[Aug 27 07:30:56] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:13] GotoIf("IAX2/cellarprice-pbx-13674", "1?5:100") in new stack
[Aug 27 07:30:56] VERBOSE[4155] logger.c:     -- Goto (survey-test,s,5)
[Aug 27 07:30:56] VERBOSE[4155] logger.c:     -- Executing [s@survey-test:5] Read("IAX2/cellarprice-pbx-13674", "answer|/var/lib/asterisk/sounds/custom/question3|1||1") in new stack
[Aug 27 07:30:56] VERBOSE[4155] logger.c:     -- Accepting a maximum of 1 digits.
[Aug 27 07:30:56] WARNING[4155] file.c: File /var/lib/asterisk/sounds/custom/question3 does not exist in any format
[Aug 27 07:30:56] WARNING[4155] file.c: Unable to open /var/lib/asterisk/sounds/custom/question3 (format 0x8 (alaw)): No such file or directory
[Aug 27 07:30:56] VERBOSE[4155] logger.c:     -- User disconnected
[Aug 27 07:30:56] VERBOSE[4155] logger.c:   == Spawn extension (survey-test, s, 5) exited non-zero on 'IAX2/cellarprice-pbx-13674'
[Aug 27 07:30:56] VERBOSE[4155] logger.c:     -- Executing [h@survey-test:1] Hangup("IAX2/cellarprice-pbx-13674", "") in new stack
[Aug 27 07:30:56] VERBOSE[4155] logger.c:   == Spawn extension (survey-test, h, 1) exited non-zero on 'IAX2/cellarprice-pbx-13674'
[Aug 27 07:30:56] VERBOSE[4155] logger.c:     -- Hungup 'IAX2/cellarprice-pbx-13674'
heinz
 
Posts: 106
Joined: Mon Oct 08, 2007 1:30 am
Location: South Africa

Postby mflorell » Thu Aug 27, 2009 8:42 am

Need the real Asterisk CLI output, or screenlog.0 output of this.
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby heinz » Fri Aug 28, 2009 12:58 am

Don't know about screenlog.0 - seems to be empty except the asterisk cli welcome line.
This is the Asterisk CLI output (verbosity 9):
Code: Select all
    -- Executing [8610051@default:1] MeetMe("Local/8610051@default-adb0,2", "8610051|F") in new stack
       > Channel Local/8610051@default-adb0,1 was answered.
    -- Executing [079922@default:1] AGI("Local/8610051@default-adb0,1", "agi://127.0.0.1:4577/call_log") in new stack
    -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
    -- Executing [079922@default:2] Dial("Local/8610051@default-adb0,1", "IAX2/cellarprice-pbx/079922|55|To") in new stack
    -- Called cellarprice-pbx/079922
    -- Call accepted by 192.168.1.1 (format alaw)
    -- Format for call is alaw
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_additional.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Parsing '/etc/asterisk/manager_vicidial.conf': Found
  == Manager 'sendvicidial' logged on from 127.0.0.1
    -- IAX2/cellarprice-pbx-10627 is proceeding passing it to Local/8610051@default-adb0,1
  == Manager 'sendvicidial' logged off from 127.0.0.1
  == Manager 'sendvicidial' logged off from 127.0.0.1
    -- IAX2/cellarprice-pbx-10627 answered Local/8610051@default-adb0,1
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_additional.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Parsing '/etc/asterisk/manager_vicidial.conf': Found
  == Manager 'sendvicidial' logged on from 127.0.0.1
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_additional.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Parsing '/etc/asterisk/manager_vicidial.conf': Found
  == Manager 'sendvicidial' logged on from 127.0.0.1
  == Manager 'sendvicidial' logged off from 127.0.0.1
  == Manager 'sendvicidial' logged off from 127.0.0.1
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_additional.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Parsing '/etc/asterisk/manager_vicidial.conf': Found
  == Manager 'sendvicidial' logged on from 127.0.0.1
  == Manager 'sendvicidial' logged off from 127.0.0.1
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_additional.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Parsing '/etc/asterisk/manager_vicidial.conf': Found
  == Manager 'sendvicidial' logged on from 127.0.0.1
    -- Executing [h@default:1] DeadAGI("Local/8610051@default-adb0,1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----19-----9") in new stack
    -- Executing [1299@default:1] Answer("IAX2/cellarprice-pbx-10627", "") in new stack
    -- Executing [1299@default:2] Playback("IAX2/cellarprice-pbx-10627", "welcome") in new stack
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_additional.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Parsing '/etc/asterisk/manager_vicidial.conf': Found
  == Manager 'sendvicidial' logged on from 127.0.0.1
  == Spawn extension (default, 1299, 0) exited non-zero on 'Local/8610051@default-adb0,2'
    -- Executing [1299@default:1] Answer("Local/8610051@default-adb0,2", "") in new stack
    -- Executing [1299@default:2] Playback("Local/8610051@default-adb0,2", "welcome") in new stack
    -- <Local/8610051@default-adb0,2> Playing 'welcome' (language 'en')
    -- <IAX2/cellarprice-pbx-10627> Playing 'welcome' (language 'en')
    -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----19-----9 completed, returning 0
  == Spawn extension (default, 079922, 2) exited non-zero on 'Local/8610051@default-adb0,1'
  == Spawn extension (default, 1299, 2) exited non-zero on 'Local/8610051@default-adb0,2'
    -- Executing [h@default:1] DeadAGI("Local/8610051@default-adb0,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
    -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------- completed, returning 0
    -- Executing [1299@default:3] NoOp("IAX2/cellarprice-pbx-10627", "Enter Survey Extension: 1299 CID: 0000000000") in new stack
    -- Executing [1299@default:4] Set("IAX2/cellarprice-pbx-10627", "_CUSTCID=1299") in new stack
    -- Executing [1299@default:5] Goto("IAX2/cellarprice-pbx-10627", "survey-test|s|1") in new stack
    -- Goto (survey-test,s,1)
    -- Executing [s@survey-test:1] Answer("IAX2/cellarprice-pbx-10627", "") in new stack
    -- Executing [s@survey-test:2] NoOp("IAX2/cellarprice-pbx-10627", "Welcome  Exten:s CNAM:M0828073748000019944") in new stack
    -- Executing [s@survey-test:3] Wait("IAX2/cellarprice-pbx-10627", "2") in new stack
    -- Executing [s@survey-test:4] Set("IAX2/cellarprice-pbx-10627", "QUES=0") in new stack
    -- Executing [s@survey-test:5] Read("IAX2/cellarprice-pbx-10627", "answer|/var/lib/asterisk/sounds/custom/question0|1||1") in new stack
    -- Accepting a maximum of 1 digits.
    -- <IAX2/cellarprice-pbx-10627> Playing '/var/lib/asterisk/sounds/custom/question0' (language 'en')
  == Manager 'sendvicidial' logged off from 127.0.0.1
  == Manager 'sendvicidial' logged off from 127.0.0.1
    -- User entered '3'I>
    -- Executing [s@survey-test:6] GotoIf("IAX2/cellarprice-pbx-10627", "1?7:5") in new stack
    -- Goto (survey-test,s,7)
    -- Executing [s@survey-test:7] NoOp("IAX2/cellarprice-pbx-10627", "Write A:3 and Q:0 and C:0000000000 into DB") in new stack
    -- Executing [s@survey-test:8] MYSQL("IAX2/cellarprice-pbx-10627", "Connect connid localhost root") in new stack
    -- Executing [s@survey-test:9] MYSQL("IAX2/cellarprice-pbx-10627", "Query resultid 1 INSERT INTO cp_survey (callnum,question,answer) VALUES (0000000000,0,3)") in new stack
    -- Executing [s@survey-test:10] MYSQL("IAX2/cellarprice-pbx-10627", "Disconnect 1") in new stack
    -- Executing [s@survey-test:11] Playback("IAX2/cellarprice-pbx-10627", "auth-thankyou") in new stack
    -- <IAX2/cellarprice-pbx-10627> Playing 'auth-thankyou' (language 'en')
    -- Executing [s@survey-test:12] Set("IAX2/cellarprice-pbx-10627", "QUES=1") in new stack
    -- Executing [s@survey-test:13] GotoIf("IAX2/cellarprice-pbx-10627", "1?5:100") in new stack
    -- Goto (survey-test,s,5)
    -- Executing [s@survey-test:5] Read("IAX2/cellarprice-pbx-10627", "answer|/var/lib/asterisk/sounds/custom/question1|1||1") in new stack
    -- Accepting a maximum of 1 digits.
    -- <IAX2/cellarprice-pbx-10627> Playing '/var/lib/asterisk/sounds/custom/question1' (language 'en')
    -- User entered '3'I>
    -- Executing [s@survey-test:6] GotoIf("IAX2/cellarprice-pbx-10627", "1?7:5") in new stack
    -- Goto (survey-test,s,7)
    -- Executing [s@survey-test:7] NoOp("IAX2/cellarprice-pbx-10627", "Write A:3 and Q:1 and C:0000000000 into DB") in new stack
    -- Executing [s@survey-test:8] MYSQL("IAX2/cellarprice-pbx-10627", "Connect connid localhost root") in new stack
    -- Executing [s@survey-test:9] MYSQL("IAX2/cellarprice-pbx-10627", "Query resultid 1 INSERT INTO cp_survey (callnum,question,answer) VALUES (0000000000,1,3)") in new stack
    -- Executing [s@survey-test:10] MYSQL("IAX2/cellarprice-pbx-10627", "Disconnect 1") in new stack
    -- Executing [s@survey-test:11] Playback("IAX2/cellarprice-pbx-10627", "auth-thankyou") in new stack
    -- <IAX2/cellarprice-pbx-10627> Playing 'auth-thankyou' (language 'en')
    -- Executing [s@survey-test:12] Set("IAX2/cellarprice-pbx-10627", "QUES=2") in new stack
    -- Executing [s@survey-test:13] GotoIf("IAX2/cellarprice-pbx-10627", "1?5:100") in new stack
    -- Goto (survey-test,s,5)
    -- Executing [s@survey-test:5] Read("IAX2/cellarprice-pbx-10627", "answer|/var/lib/asterisk/sounds/custom/question2|1||1") in new stack
    -- Accepting a maximum of 1 digits.
    -- <IAX2/cellarprice-pbx-10627> Playing '/var/lib/asterisk/sounds/custom/question2' (language 'en')
    -- User entered '3'I>
    -- Executing [s@survey-test:6] GotoIf("IAX2/cellarprice-pbx-10627", "1?7:5") in new stack
    -- Goto (survey-test,s,7)
    -- Executing [s@survey-test:7] NoOp("IAX2/cellarprice-pbx-10627", "Write A:3 and Q:2 and C:0000000000 into DB") in new stack
    -- Executing [s@survey-test:8] MYSQL("IAX2/cellarprice-pbx-10627", "Connect connid localhost root") in new stack
    -- Executing [s@survey-test:9] MYSQL("IAX2/cellarprice-pbx-10627", "Query resultid 1 INSERT INTO cp_survey (callnum,question,answer) VALUES (0000000000,2,3)") in new stack
    -- Executing [s@survey-test:10] MYSQL("IAX2/cellarprice-pbx-10627", "Disconnect 1") in new stack
    -- Executing [s@survey-test:11] Playback("IAX2/cellarprice-pbx-10627", "auth-thankyou") in new stack
    -- <IAX2/cellarprice-pbx-10627> Playing 'auth-thankyou' (language 'en')
    -- Executing [s@survey-test:12] Set("IAX2/cellarprice-pbx-10627", "QUES=3") in new stack
    -- Executing [s@survey-test:13] GotoIf("IAX2/cellarprice-pbx-10627", "1?5:100") in new stack
    -- Goto (survey-test,s,5)
    -- Executing [s@survey-test:5] Read("IAX2/cellarprice-pbx-10627", "answer|/var/lib/asterisk/sounds/custom/question3|1||1") in new stack
    -- Accepting a maximum of 1 digits.
    -- User disconnected
  == Spawn extension (survey-test, s, 5) exited non-zero on 'IAX2/cellarprice-pbx-10627'
    -- Executing [h@survey-test:1] Hangup("IAX2/cellarprice-pbx-10627", "") in new stack
  == Spawn extension (survey-test, h, 1) exited non-zero on 'IAX2/cellarprice-pbx-10627'
    -- Hungup 'IAX2/cellarprice-pbx-10627'

Asterisk Version: 1.4.23.2 (Elastix installation)

thanks,
heinz
heinz
 
Posts: 106
Joined: Mon Oct 08, 2007 1:30 am
Location: South Africa

Postby mflorell » Fri Aug 28, 2009 1:29 am

How are you starting Asterisk?
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby heinz » Fri Aug 28, 2009 1:40 am

Don't know what you mean.
There is the usual asterisk start script for start, stop, reloading asterisk in /etc/init.d/ so asterisk starts on boot.
No special parameters I assume.
heinz
 
Posts: 106
Joined: Mon Oct 08, 2007 1:30 am
Location: South Africa

Postby heinz » Fri Aug 28, 2009 2:00 am

weird thing is that it works when I change the settings to AGENT_CHOOSE.
This is the CLI output when it works:
Code: Select all
   -- Executing [8610051@default:1] MeetMe("Local/8610051@default-b6f0,2", "8610051|F") in new stack
       > Channel Local/8610051@default-b6f0,1 was answered.
    -- Executing [0799@default:1] AGI("Local/8610051@default-b6f0,1", "agi://127.0.0.1:4577/call_log") in new stack
    -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
    -- Executing [0799@default:2] Dial("Local/8610051@default-b6f0,1", "IAX2/cellarprice-pbx/0799|55|To") in new stack
    -- Called cellarprice-pbx/0799
    -- Call accepted by 192.168.1.1 (format alaw)
    -- Format for call is alaw
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_additional.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Parsing '/etc/asterisk/manager_vicidial.conf': Found
  == Manager 'sendvicidial' logged on from 127.0.0.1
    -- IAX2/cellarprice-pbx-5457 is proceeding passing it to Local/8610051@default-b6f0,1
  == Manager 'sendvicidial' logged off from 127.0.0.1
  == Manager 'sendvicidial' logged off from 127.0.0.1
    -- IAX2/cellarprice-pbx-5457 answered Local/8610051@default-b6f0,1
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_additional.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Parsing '/etc/asterisk/manager_vicidial.conf': Found
  == Manager 'sendvicidial' logged on from 127.0.0.1
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_additional.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Parsing '/etc/asterisk/manager_vicidial.conf': Found
  == Manager 'sendvicidial' logged on from 127.0.0.1
  == Manager 'sendvicidial' logged off from 127.0.0.1
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_additional.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Parsing '/etc/asterisk/manager_vicidial.conf': Found
  == Manager 'sendvicidial' logged on from 127.0.0.1
    -- Executing [1299@default:1] Answer("IAX2/cellarprice-pbx-5457", "") in new stack
    -- Executing [1299@default:2] Playback("IAX2/cellarprice-pbx-5457", "welcome") in new stack
    -- <IAX2/cellarprice-pbx-5457> Playing 'welcome' (language 'en')
    -- Executing [h@default:1] DeadAGI("Local/8610051@default-b6f0,1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----21-----8") in new stack
    -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----21-----8 completed, returning 0
  == Spawn extension (default, 0799, 2) exited non-zero on 'Local/8610051@default-b6f0,1'
  == Spawn extension (default, 8610051, 1) exited non-zero on 'Local/8610051@default-b6f0,2'
    -- Executing [h@default:1] DeadAGI("Local/8610051@default-b6f0,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
    -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------- completed, returning 0
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_additional.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Parsing '/etc/asterisk/manager_vicidial.conf': Found
  == Manager 'sendvicidial' logged on from 127.0.0.1
  == Manager 'sendvicidial' logged off from 127.0.0.1
    -- Executing [1299@default:3] NoOp("IAX2/cellarprice-pbx-5457", "Enter Survey Extension: 1299 CID: 0799") in new stack
    -- Executing [1299@default:4] Set("IAX2/cellarprice-pbx-5457", "_CUSTCID=1299") in new stack
    -- Executing [1299@default:5] Goto("IAX2/cellarprice-pbx-5457", "survey-test|s|1") in new stack
    -- Goto (survey-test,s,1)
    -- Executing [s@survey-test:1] Answer("IAX2/cellarprice-pbx-5457", "") in new stack
    -- Executing [s@survey-test:2] NoOp("IAX2/cellarprice-pbx-5457", "Welcome  Exten:s CNAM:M0828085043000019944[0;37;    40m") in new stack
    -- Executing [s@survey-test:3] Wait("IAX2/cellarprice-pbx-5457", "2") in new stack
    -- Executing [s@survey-test:4] Set("IAX2/cellarprice-pbx-5457", "QUES=0") in new stack
    -- Executing [s@survey-test:5] Read("IAX2/cellarprice-pbx-5457", "answer|/var/lib/asterisk/sounds/custom/question0|1||1") in new stack
    -- Accepting a maximum of 1 digits.
    -- <IAX2/cellarprice-pbx-5457> Playing '/var/lib/asterisk/sounds/custom/question0' (language 'en')
  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_additional.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Parsing '/etc/asterisk/manager_vicidial.conf': Found
  == Manager 'sendvicidial' logged on from 127.0.0.1
  == Manager 'sendvicidial' logged off from 127.0.0.1
  == Manager 'sendvicidial' logged off from 127.0.0.1
  == Manager 'sendvicidial' logged off from 127.0.0.1
    -- User entered '5'I>
    -- Executing [s@survey-test:6] GotoIf("IAX2/cellarprice-pbx-5457", "1?7:5") in new stack
    -- Goto (survey-test,s,7)
    -- Executing [s@survey-test:7] NoOp("IAX2/cellarprice-pbx-5457", "Write A:5 and Q:0 and C:0799 into DB") in new stack
    -- Executing [s@survey-test:8] MYSQL("IAX2/cellarprice-pbx-5457", "Connect connid localhost root ") in new stack
    -- Executing [s@survey-test:9] MYSQL("IAX2/cellarprice-pbx-5457", "Query resultid 1 INSERT INTO cp_survey (callnum,question,answer) VALUES (0799,0,5)") in new stack
    -- Executing [s@survey-test:10] MYSQL("IAX2/cellarprice-pbx-5457", "Disconnect 1") in new stack
    -- Executing [s@survey-test:11] Playback("IAX2/cellarprice-pbx-5457", "auth-thankyou") in new stack
    -- <IAX2/cellarprice-pbx-5457> Playing 'auth-thankyou' (language 'en')
    -- Executing [s@survey-test:12] Set("IAX2/cellarprice-pbx-5457", "QUES=1") in new stack
    -- Executing [s@survey-test:13] GotoIf("IAX2/cellarprice-pbx-5457", "1?5:100") in new stack
    -- Goto (survey-test,s,5)
    -- Executing [s@survey-test:5] Read("IAX2/cellarprice-pbx-5457", "answer|/var/lib/asterisk/sounds/custom/question1|1||1") in new stack
    -- Accepting a maximum of 1 digits.
    -- <IAX2/cellarprice-pbx-5457> Playing '/var/lib/asterisk/sounds/custom/question1' (language 'en')
    -- User disconnected
  == Spawn extension (survey-test, s, 5) exited non-zero on 'IAX2/cellarprice-pbx-5457'
    -- Executing [h@survey-test:1] Hangup("IAX2/cellarprice-pbx-5457", "") in new stack
  == Spawn extension (survey-test, h, 1) exited non-zero on 'IAX2/cellarprice-pbx-5457'
    -- Hungup 'IAX2/cellarprice-pbx-5457'
heinz
 
Posts: 106
Joined: Mon Oct 08, 2007 1:30 am
Location: South Africa

Postby heinz » Mon Aug 31, 2009 2:32 pm

Hi,
I couldn't figure out how to send the phone_number into the survey therefore I helped myself with a little workaround.
With ${CALLERID(name)} I was able to query the call_log for the phone_number.
Maybe it helps someone...
Thanks for the help
heinz
heinz
 
Posts: 106
Joined: Mon Oct 08, 2007 1:30 am
Location: South Africa


Return to Support

Who is online

Users browsing this forum: No registered users and 249 guests