Page 1 of 1

Wont transfer to Internal Closer since upgrade to 2.0.1

PostPosted: Sun Oct 01, 2006 12:40 pm
by lottc
Please Help!!!!

I was running 1.x branch perfectly. I decided to upgrade to the 2.0.1 branch and now I can't transfer to an internal closer. I have been racking my brain on this for the last 12 hours. I have read the managers manual several times over and everything looks fine...

I am currently running Asterisk 1.2.12.1 with all the patches applied that are listed in the SCRATCH INSTALL...

The campaign I am trying to use verification with is called TRAINING and the associated inbound group is CL_TRAINING_L. I have a closer campaign named SCLOSER with a dial level of 1 and the CL_TRAINING_L inbound group is selected.

Debug from asterisk:
Code: Select all
    -- Executing MeetMe("Local/8600052@default-7335,2", "8600052") in new stack
    -- Executing Goto("Local/8600052@default-7335,1", "default|3865479040|1") in new stack
    -- Goto (default,3865479040,1)
    -- Executing AGI("Local/8600052@default-7335,1", "call_log.agi|3865479040") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/call_log.agi
2006-10-01 5:47:08|call_log.agi|Perl Environment Dump:
2006-10-01 5:47:08|call_log.agi|0|3865479040
2006-10-01 5:47:08|call_log.agi|AGI Environment Dump:
2006-10-01 5:47:08|call_log.agi| -- accountcode =
2006-10-01 5:47:08|call_log.agi| -- callerid = 4077450621
2006-10-01 5:47:08|call_log.agi| -- calleridname = M1001054707000000029
2006-10-01 5:47:08|call_log.agi| -- callingani2 = 0
2006-10-01 5:47:08|call_log.agi| -- callingpres = 0
2006-10-01 5:47:08|call_log.agi| -- callingtns = 0
2006-10-01 5:47:08|call_log.agi| -- callington = 0
2006-10-01 5:47:08|call_log.agi| -- channel = Local/8600052@default-7335,1
2006-10-01 5:47:08|call_log.agi| -- context = default
2006-10-01 5:47:08|call_log.agi| -- dnid = unknown
2006-10-01 5:47:08|call_log.agi| -- enhanced = 0.0
2006-10-01 5:47:08|call_log.agi| -- extension = 3865479040
2006-10-01 5:47:08|call_log.agi| -- language = en
2006-10-01 5:47:08|call_log.agi| -- priority = 1
2006-10-01 5:47:08|call_log.agi| -- rdnis = unknown
2006-10-01 5:47:08|call_log.agi| -- request = call_log.agi
2006-10-01 5:47:08|call_log.agi| -- type = Local
2006-10-01 5:47:08|call_log.agi| -- uniqueid = 1159696028.4
2006-10-01 5:47:08|call_log.agi|AGI Variables: |1159696028.4|Local/8600052@default-7335,1|3865479040|Local|M1001054707000000029|
2006-10-01 5:47:08|call_log.agi|+++++ CALL LOG START : 2006-10-01 5:47:08
2006-10-01 5:47:08|call_log.agi||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('1159696028.4','Local/8600052@default-7335,1','','Local','10.13.2.2','3865479040','','2006-10-01 5:47:08','1159696028','','','','','M1001054707000000029')|
    -- AGI Script call_log.agi completed, returning 0
    -- Executing NoOp("Local/8600052@default-7335,1", "CALLERID = "M1001054707000000029" <4077450621>") in new stack
    -- Executing NoOp("Local/8600052@default-7335,1", "SPYGROUP = "M1001054707000000029" <4077450621>") in new stack
    -- Executing NoOp("Local/8600052@default-7335,1", "CALLERID = "M1001054707000000029" <4077450621>") in new stack
    -- Executing Dial("Local/8600052@default-7335,1", "SIP/gw4/38815892413865479040|120|to") in new stack
    -- Called gw4/38815892413865479040
  == Manager 'sendcron' logged off from 127.0.0.1
    -- SIP/gw4-09db2448 is making progress passing it to Local/8600052@default-7335,1
    -- SIP/gw4-09db2448 answered Local/8600052@default-7335,1
  == Parsing '/etc/asterisk/manager.conf': Found
  == Manager 'sendcron' logged on from 127.0.0.1
    -- Executing Answer("SIP/gw4-09db2448", "") in new stack
    -- Executing AGI("SIP/gw4-09db2448", "agi-VDADcloser.agi|-debug|90009*CL_TRAINING_L**29**3865479040*12487*-----START") in new stack
  == Spawn extension (default, 3865479040, 5) exited non-zero on 'Local/8600052@default-7335,1'
    -- Executing DeadAGI("Local/8600052@default-7335,1", "call_log.agi|h") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/call_log.agi
    -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDADcloser.agi
2006-10-01 5:47:23|call_log.agi|AGI Environment Dump:
2006-10-01 5:47:23|call_log.agi| -- accountcode =
2006-10-01 5:47:23|call_log.agi| -- callerid = 4077450621
2006-10-01 5:47:23|call_log.agi| -- calleridname = M1001054707000000029
2006-10-01 5:47:23|call_log.agi| -- callingani2 = 0
2006-10-01 5:47:23|call_log.agi| -- callingpres = 0
2006-10-01 5:47:23|call_log.agi| -- callingtns = 0
2006-10-01 5:47:23|call_log.agi| -- callington = 0
2006-10-01 5:47:23|call_log.agi| -- channel = Local/8600052@default-7335,1
2006-10-01 5:47:23|call_log.agi| -- context = default
2006-10-01 5:47:23|call_log.agi| -- dnid = unknown
2006-10-01 5:47:23|call_log.agi| -- enhanced = 0.0
2006-10-01 5:47:23|call_log.agi| -- extension = h
2006-10-01 5:47:23|call_log.agi| -- language = en
2006-10-01 5:47:23|call_log.agi| -- priority = 1
2006-10-01 5:47:23|call_log.agi| -- rdnis = unknown
2006-10-01 5:47:23|call_log.agi| -- request = call_log.agi
2006-10-01 5:47:23|call_log.agi| -- type = Local
2006-10-01 5:47:23|call_log.agi| -- uniqueid = 1159696028.4
2006-10-01 5:47:23|call_log.agi|AGI Variables: |1159696028.4|Local/8600052@default-7335,1|h|Local|M1001054707000000029|
2006-10-01 5:47:23|call_log.agi||CALL HUNG UP|
2006-10-01 5:47:23|call_log.agi||1159696028.4000001|1159696028|
2006-10-01 5:47:23|call_log.agi|QUERY done: start time = 1159696028 | sec: 15 | min:     0.25 |
2006-10-01 5:47:23|call_log.agi||UPDATE call_log set end_time='2006-10-01 5:47:23',end_epoch='1159696043',length_in_sec=15,length_in_min='    0.25' where uniqueid='1159696028.4'|
2006-10-01 5:47:23|call_log.agi||DELETE from live_inbound where uniqueid='1159696028.4' and server_ip='10.13.2.2'|
2006-10-01 5:47:23|call_log.agi|+++++ CALL LOG HUNGUP: |1159696028.4|Local/8600052@default-7335,1|h|2006-10-01 5:47:23|min:     0.25|
    -- AGI Script call_log.agi completed, returning 0
    -- Executing DeadAGI("Local/8600052@default-7335,1", "VD_hangup.agi|h") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/VD_hangup.agi
2006-10-01 5:47:23|agi-VDADcloser.agi|Perl Environment Dump:
2006-10-01 5:47:23|agi-VDADcloser.agi|0|-debug
2006-10-01 5:47:23|agi-VDADcloser.agi|1|90009*CL_TRAINING_L**29**3865479040*12487*-----START
2006-10-01 5:47:23|agi-VDADcloser.agi|callerID changed: J100154723000000029
2006-10-01 5:47:23|agi-VDADcloser.agi|callerID changed: J100154723000000029
2006-10-01 5:47:23|agi-VDADcloser.agi|callerID changed: J100154723000000029
2006-10-01 5:47:23|agi-VDADcloser.agi|callerID changed: J100154723000000029
2006-10-01 5:47:23|agi-VDADcloser.agi| -- accountcode =
2006-10-01 5:47:23|agi-VDADcloser.agi| -- callerid = 4077450621
2006-10-01 5:47:23|agi-VDADcloser.agi| -- calleridname = M1001054707000000029
2006-10-01 5:47:23|agi-VDADcloser.agi| -- callingani2 = 0
2006-10-01 5:47:23|agi-VDADcloser.agi| -- callingpres = 0
2006-10-01 5:47:23|agi-VDADcloser.agi| -- callingtns = 0
2006-10-01 5:47:23|agi-VDADcloser.agi| -- callington = 0
2006-10-01 5:47:23|agi-VDADcloser.agi| -- channel = SIP/gw4-09db2448
2006-10-01 5:47:23|agi-VDADcloser.agi| -- context = default
2006-10-01 5:47:23|agi-VDADcloser.agi| -- dnid = unknown
2006-10-01 5:47:23|agi-VDADcloser.agi| -- enhanced = 0.0
2006-10-01 5:47:23|agi-VDADcloser.agi| -- extension = 90009*CL_TRAINING_L**29**3865479040*12487*
2006-10-01 5:47:23|agi-VDADcloser.agi| -- language = en
2006-10-01 5:47:23|agi-VDADcloser.agi| -- priority = 2
2006-10-01 5:47:23|agi-VDADcloser.agi| -- rdnis = unknown
2006-10-01 5:47:23|agi-VDADcloser.agi| -- request = agi-VDADcloser.agi
2006-10-01 5:47:23|agi-VDADcloser.agi| -- type = SIP
2006-10-01 5:47:23|agi-VDADcloser.agi| -- uniqueid = 1159696042.7
2006-10-01 5:47:23|agi-VDADcloser.agi|AGI Variables: |1159696042.7|SIP/gw4-09db2448|90009*CL_TRAINING_L**29**3865479040*12487*|SIP|J100154723000000029|
2006-10-01 5:47:23|agi-VDADcloser.agi|+++++ VDAD START : |29|2006-10-01 5:47:23|
2006-10-01 5:47:23|agi-VDADcloser.agi||INSERT INTO vicidial_auto_calls values('','10.13.2.2','CL_TRAINING_L','LIVE','29','1159696042.7','J100154723000000029','SIP/gw4-09db2448','1','3865479040','2006-10-01 5:47:23','IN')|
2006-10-01 5:47:23|agi-VDADcloser.agi||INSERT INTO vicidial_closer_log (lead_id,campaign_id,call_date,start_epoch,status,phone_code,phone_number,user,processed) values('29','CL_TRAINING_L','2006-10-01 5:47:23','1159696043','QUEUE','1','3865479040','VDCL','N')|
2006-10-01 5:47:23|agi-VDADcloser.agi|--    VDCL : |29|29|insert to vicidial_closer_log
2006-10-01 5:47:23|agi-VDADcloser.agi||INSERT INTO vicidial_xfer_log (lead_id,campaign_id,call_date,phone_code,phone_number,user,closer) values('29','CL_TRAINING_L','2006-10-01 5:47:23','1','3865479040','12487','VDXL')|
2006-10-01 5:47:23|agi-VDADcloser.agi|--    VDXL : |29|29|insert to vicidial_xfer_log
2006-10-01 5:47:23|VD_hangup.agi|AGI Environment Dump:
2006-10-01 5:47:23|VD_hangup.agi| -- accountcode =
2006-10-01 5:47:23|VD_hangup.agi| -- callerid = 4077450621
2006-10-01 5:47:23|VD_hangup.agi| -- calleridname = M1001054707000000029
2006-10-01 5:47:23|VD_hangup.agi| -- callingani2 = 0
2006-10-01 5:47:23|VD_hangup.agi| -- callingpres = 0
2006-10-01 5:47:23|VD_hangup.agi| -- callingtns = 0
2006-10-01 5:47:23|VD_hangup.agi| -- callington = 0
2006-10-01 5:47:23|VD_hangup.agi| -- channel = Local/8600052@default-7335,1
2006-10-01 5:47:23|VD_hangup.agi| -- context = default
2006-10-01 5:47:23|VD_hangup.agi| -- dnid = unknown
2006-10-01 5:47:23|VD_hangup.agi| -- enhanced = 0.0
2006-10-01 5:47:23|VD_hangup.agi| -- extension = h
2006-10-01 5:47:23|VD_hangup.agi| -- language = en
2006-10-01 5:47:23|VD_hangup.agi| -- priority = 2
2006-10-01 5:47:23|VD_hangup.agi| -- rdnis = unknown
2006-10-01 5:47:23|VD_hangup.agi| -- request = VD_hangup.agi
2006-10-01 5:47:23|VD_hangup.agi| -- type = Local
2006-10-01 5:47:23|VD_hangup.agi| -- uniqueid = 1159696028.4
2006-10-01 5:47:23|VD_hangup.agi|AGI Variables: |1159696028.4|Local/8600052@default-7335,1|h|Local|M1001054707000000029|
2006-10-01 5:47:23|VD_hangup.agi|DEBUG:
2006-10-01 5:47:23|VD_hangup.agi|VD_hangup : M1001054707000000029 Local/8600052@default-7335,1 2 29
2006-10-01 5:47:23|VD_hangup.agi|--    VDhangup Local DEBUG: ||M1001054707000000029|||
2006-10-01 5:47:23|VD_hangup.agi|+++++ VDAD START LOCAL CHANNEL: EXITING- 2
    -- AGI Script VD_hangup.agi completed, returning 0
  == Spawn extension (default, 8600052, 1) exited non-zero on 'Local/8600052@default-7335,2'
    -- Executing DeadAGI("Local/8600052@default-7335,2", "call_log.agi|h") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/call_log.agi
2006-10-01 5:47:23|call_log.agi|AGI Environment Dump:
2006-10-01 5:47:23|call_log.agi| -- accountcode =
2006-10-01 5:47:23|call_log.agi| -- callerid = 4077450621
2006-10-01 5:47:23|call_log.agi| -- calleridname = M1001054707000000029
2006-10-01 5:47:23|call_log.agi| -- callingani2 = 0
2006-10-01 5:47:23|call_log.agi| -- callingpres = 0
2006-10-01 5:47:23|call_log.agi| -- callingtns = 0
2006-10-01 5:47:23|call_log.agi| -- callington = 0
2006-10-01 5:47:23|call_log.agi| -- channel = Local/8600052@default-7335,2
2006-10-01 5:47:23|call_log.agi| -- context = default
2006-10-01 5:47:23|call_log.agi| -- dnid = unknown
2006-10-01 5:47:23|call_log.agi| -- enhanced = 0.0
2006-10-01 5:47:23|call_log.agi| -- extension = h
2006-10-01 5:47:23|call_log.agi| -- language = en
2006-10-01 5:47:23|call_log.agi| -- priority = 1
2006-10-01 5:47:23|call_log.agi| -- rdnis = unknown
2006-10-01 5:47:23|call_log.agi| -- request = call_log.agi
2006-10-01 5:47:23|call_log.agi| -- type = Local
2006-10-01 5:47:23|call_log.agi| -- uniqueid = 1159696028.5
2006-10-01 5:47:23|call_log.agi|AGI Variables: |1159696028.5|Local/8600052@default-7335,2|h|Local|M1001054707000000029|
2006-10-01 5:47:23|call_log.agi||CALL HUNG UP|
2006-10-01 5:47:23|call_log.agi||DELETE from live_inbound where uniqueid='1159696028.5' and server_ip='10.13.2.2'|
2006-10-01 5:47:23|call_log.agi|+++++ CALL LOG HUNGUP: |1159696028.5|Local/8600052@default-7335,2|h|2006-10-01 5:47:23|min: |
    -- AGI Script call_log.agi completed, returning 0
    -- Executing DeadAGI("Local/8600052@default-7335,2", "VD_hangup.agi|h") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/VD_hangup.agi
2006-10-01 5:47:23|VD_hangup.agi|AGI Environment Dump:
2006-10-01 5:47:23|VD_hangup.agi| -- accountcode =
2006-10-01 5:47:23|VD_hangup.agi| -- callerid = 4077450621
2006-10-01 5:47:23|VD_hangup.agi| -- calleridname = M1001054707000000029
2006-10-01 5:47:23|VD_hangup.agi| -- callingani2 = 0
2006-10-01 5:47:23|VD_hangup.agi| -- callingpres = 0
2006-10-01 5:47:23|VD_hangup.agi| -- callingtns = 0
2006-10-01 5:47:23|VD_hangup.agi| -- callington = 0
2006-10-01 5:47:23|VD_hangup.agi| -- channel = Local/8600052@default-7335,2
2006-10-01 5:47:23|VD_hangup.agi| -- context = default
2006-10-01 5:47:23|VD_hangup.agi| -- dnid = unknown
2006-10-01 5:47:23|VD_hangup.agi| -- enhanced = 0.0
2006-10-01 5:47:23|VD_hangup.agi| -- extension = h
2006-10-01 5:47:23|VD_hangup.agi| -- language = en
2006-10-01 5:47:23|VD_hangup.agi| -- priority = 2
2006-10-01 5:47:23|VD_hangup.agi| -- rdnis = unknown
2006-10-01 5:47:23|VD_hangup.agi| -- request = VD_hangup.agi
2006-10-01 5:47:23|VD_hangup.agi| -- type = Local
2006-10-01 5:47:23|VD_hangup.agi| -- uniqueid = 1159696028.5
2006-10-01 5:47:23|VD_hangup.agi|AGI Variables: |1159696028.5|Local/8600052@default-7335,2|h|Local|M1001054707000000029|
2006-10-01 5:47:23|VD_hangup.agi|DEBUG:
2006-10-01 5:47:23|VD_hangup.agi|VD_hangup : M1001054707000000029 Local/8600052@default-7335,2 2 29
2006-10-01 5:47:23|VD_hangup.agi|--    VDhangup Local DEBUG: ||M1001054707000000029|||
2006-10-01 5:47:23|VD_hangup.agi|+++++ VDAD START LOCAL CHANNEL: EXITING- 2
    -- AGI Script VD_hangup.agi completed, returning 0
  == Manager 'sendcron' logged off from 127.0.0.1
  == Spawn extension (default, 90009*CL_TRAINING_L**29**3865479040*12487*, 2) exited non-zero on 'SIP/gw4-09db2448'
    -- Executing DeadAGI("SIP/gw4-09db2448", "call_log.agi|h") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/call_log.agi
2006-10-01 5:47:41|call_log.agi|AGI Environment Dump:
2006-10-01 5:47:41|call_log.agi| -- accountcode =
2006-10-01 5:47:41|call_log.agi| -- callerid = unknown
2006-10-01 5:47:41|call_log.agi| -- calleridname = J100154723000000029
2006-10-01 5:47:41|call_log.agi| -- callingani2 = 0
2006-10-01 5:47:41|call_log.agi| -- callingpres = 0
2006-10-01 5:47:41|call_log.agi| -- callingtns = 0
2006-10-01 5:47:41|call_log.agi| -- callington = 0
2006-10-01 5:47:41|call_log.agi| -- channel = SIP/gw4-09db2448
2006-10-01 5:47:41|call_log.agi| -- context = default
2006-10-01 5:47:41|call_log.agi| -- dnid = unknown
2006-10-01 5:47:41|call_log.agi| -- enhanced = 0.0
2006-10-01 5:47:41|call_log.agi| -- extension = h
2006-10-01 5:47:41|call_log.agi| -- language = en
2006-10-01 5:47:41|call_log.agi| -- priority = 1
2006-10-01 5:47:41|call_log.agi| -- rdnis = unknown
2006-10-01 5:47:41|call_log.agi| -- request = call_log.agi
2006-10-01 5:47:41|call_log.agi| -- type = SIP
2006-10-01 5:47:41|call_log.agi| -- uniqueid = 1159696042.7
2006-10-01 5:47:41|call_log.agi|AGI Variables: |1159696042.7|SIP/gw4-09db2448|h|SIP|J100154723000000029|
2006-10-01 5:47:41|call_log.agi||CALL HUNG UP|
2006-10-01 5:47:41|call_log.agi||DELETE from live_inbound where uniqueid='1159696042.7' and server_ip='10.13.2.2'|
2006-10-01 5:47:41|call_log.agi|+++++ CALL LOG HUNGUP: |1159696042.7|SIP/gw4-09db2448|h|2006-10-01 5:47:41|min: |
    -- AGI Script call_log.agi completed, returning 0
    -- Executing DeadAGI("SIP/gw4-09db2448", "VD_hangup.agi|h") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/VD_hangup.agi
2006-10-01 5:47:41|VD_hangup.agi|AGI Environment Dump:
2006-10-01 5:47:41|VD_hangup.agi| -- accountcode =
2006-10-01 5:47:41|VD_hangup.agi| -- callerid = unknown
2006-10-01 5:47:41|VD_hangup.agi| -- calleridname = J100154723000000029
2006-10-01 5:47:41|VD_hangup.agi| -- callingani2 = 0
2006-10-01 5:47:41|VD_hangup.agi| -- callingpres = 0
2006-10-01 5:47:41|VD_hangup.agi| -- callingtns = 0
2006-10-01 5:47:41|VD_hangup.agi| -- callington = 0
2006-10-01 5:47:41|VD_hangup.agi| -- channel = SIP/gw4-09db2448
2006-10-01 5:47:41|VD_hangup.agi| -- context = default
2006-10-01 5:47:41|VD_hangup.agi| -- dnid = unknown
2006-10-01 5:47:41|VD_hangup.agi| -- enhanced = 0.0
2006-10-01 5:47:41|VD_hangup.agi| -- extension = h
2006-10-01 5:47:41|VD_hangup.agi| -- language = en
2006-10-01 5:47:41|VD_hangup.agi| -- priority = 2
2006-10-01 5:47:41|VD_hangup.agi| -- rdnis = unknown
2006-10-01 5:47:41|VD_hangup.agi| -- request = VD_hangup.agi
2006-10-01 5:47:41|VD_hangup.agi| -- type = SIP
2006-10-01 5:47:41|VD_hangup.agi| -- uniqueid = 1159696042.7
2006-10-01 5:47:41|VD_hangup.agi|AGI Variables: |1159696042.7|SIP/gw4-09db2448|h|SIP|J100154723000000029|
2006-10-01 5:47:41|VD_hangup.agi|DEBUG:
2006-10-01 5:47:41|VD_hangup.agi|VD_hangup : J100154723000000029 SIP/gw4-09db2448 2 29
2006-10-01 5:47:41|VD_hangup.agi||SELECT lead_id,callerid FROM vicidial_auto_calls where uniqueid = '1159696042.7' limit 1;|
2006-10-01 5:47:41|VD_hangup.agi|--    VDAC record deleted: |1|   |29|1159696042.7|J100154723000000029|10.13.2.2
2006-10-01 5:47:41|VD_hangup.agi||SELECT start_epoch,status FROM vicidial_log where uniqueid='1159696042.7' and lead_id='29' limit 1;|
2006-10-01 5:47:41|VD_hangup.agi|no VDL record found: 1159696042.7 J100154723000000029 29 1159696042.7
2006-10-01 5:47:41|VD_hangup.agi||SELECT start_epoch,status,closecallid FROM vicidial_closer_log where lead_id = '29' and call_date > "2006-09-30 23:47:41" order by call_date desc limit 1;|
2006-10-01 5:47:41|VD_hangup.agi||UPDATE vicidial_list set status='DROP' where lead_id = '29';|
2006-10-01 5:47:41|VD_hangup.agi|--    VDAD vicidial_list update: |1|29
2006-10-01 5:47:41|VD_hangup.agi||UPDATE vicidial_log set status='DROP', end_epoch='1159696061',length_in_sec='18' where uniqueid = '1159696042.7';|
2006-10-01 5:47:41|VD_hangup.agi|--    VDAD vicidial_log update: |0E0|1159696042.7|QUEUE|
2006-10-01 5:47:41|VD_hangup.agi||status='DROP',queue_seconds='18',|QUEUE|
|UPDATE vicidial_closer_log set status='DROP',queue_seconds='18', end_epoch='1159696061',length_in_sec='18' where closecallid = '28';|
2006-10-01 5:47:41|VD_hangup.agi|--    VDCL update: |1|1159696042.7|28|
    -- AGI Script VD_hangup.agi completed, returning 0


Extension.conf:
Code: Select all
[general]
static=yes
writeprotect=no

[globals]

[default]

; Extension 8600 + 8601 conference rooms
exten => 8600,1,Meetme,8600
exten => 8601,1,Meetme,8601

; Direct Extensions
exten => _*XX,1,Dial(IAX2/OOmain/${EXTEN},30,tor)
exten => _21XX,1,Dial(IAX2/OOmain/${EXTEN},30,tor)
;exten => _21XX,3,Congestion
;exten => _22XX,1,Playback(transfer)         ; "Please hold while..."
exten => _2203,2,Dial(Zap/3,30,tr)
exten => _2204,2,Dial(Zap/4,30,tr)
exten => _22XX,1,NoOp(SPYGROUP = ${EXTEN})
exten => _22XX,2,Dial(SIP/${EXTEN},20,to)      ; Ring, 20 secs max

exten => h,1,DeadAGI(call_log.agi,${EXTEN}) ; DeadAGI is new
exten => h,2,DeadAGI(VD_hangup.agi,${EXTEN})

exten => _8600XXX*.,1,AGI(agi-VDADfixCXFER.agi)

; parameters for agi-VDADcloser.agi (2 fields separated by five dashes "-----"):
; 1. the full extension formatted by VICIDIAL for internal transfers * separated
; 2. the word START to denote the beginning of the acceptance of the transfer
; inbound VICIDIAL transfer calls [can arrive through PRI T1 crossover or IAX channel]
exten => _90009.,1,Answer                  ; Answer the line
exten => _90009.,2,AGI(agi-VDADcloser.agi,-debug,${EXTEN}-----START)
exten => _90009.,3,Hangup

; parameters for agi-VDADcloser_inbound....agi (7 fields separated by five dashes "-----"):
; 1. the full name of the IN GROUP to be used in vicidial for the inbound call
; 2. the phone number that was called, for the log entry
; 3. the callerID or lead_id of the person that called(usually overridden)
; 4. the park extension audio file name if used
; 5. the status of the call initially(usually not used)
; 6. the list_id to insert the new lead under if it is new (and callerID available)
; 7. the phone dialing code to insert with the new lead if new (and callerID available)

; Inbound Activators/Confirmers 866-778-2070 / 407-965-0755
exten => 4079650755,1,Ringing
exten => 4079650755,2,Wait(1)
exten => 4079650755,3,Answer
exten => 4079650755,4,AGI(agi-VDADcloser_inboundCID.agi,AC_GROUP-----4079650755-----Closer-----park----------999-----1)
exten => 4079650755,5,Hangup

; Inbound Customer Service 800-809-6709 / 407-745-0624
exten => 4077450624,1,Ringing
exten => 4077450624,2,Wait(1)
exten => 4077450624,3,Answer
exten => 4077450624,4,AGI(agi-VDADcloser_inboundCID.agi,CS_GROUP-----4077450624-----Closer-----park----------999-----1)
exten => 4077450624,5,Hangup

; Inbound Lead Generator 800-559-8101 / 407-745-0628
exten => 4077450628,1,Ringing
exten => 4077450628,2,Wait(1)
exten => 4077450628,3,Answer
exten => 4077450628,4,AGI(agi-VDADcloser_inboundCID.agi,LG_GROUP-----4077450628-----Closer-----park----------999-----1)
exten => 4077450628,5,Hangup

; Inbound Owner/Non-Owner Referral 800-513-9938 & 800-809-4054 / 407-745-0623
exten => 4077450623,1,Ringing
exten => 4077450623,2,Wait(1)
exten => 4077450623,3,Answer
exten => 4077450623,4,AGI(agi-VDADcloser_inboundCID.agi,REF_GROUP-----4077450623-----Closer-----park----------999-----1)
exten => 4077450623,5,Hangup

; Inbound Vendor Request 888-300-0013 / 407-965-0756
exten => 4079650756,1,Ringing
exten => 4079650756,2,Wait(1)
exten => 4079650756,3,Answer
exten => 4079650756,4,AGI(agi-VDADcloser_inboundCID.agi,VR_GROUP-----4079650756-----Closer-----park----------999-----1)
exten => 4079650756,5,Hangup

;Strip 11-digit Outbound using 9 for line access
exten => _9NXXNXXXXXX,1,Goto(default,${EXTEN:1},1)

;Strip 11-digit Outbound using 1 for LD
exten => _1NXXNXXXXXX,1,Goto(default,${EXTEN:1},1)

;Strip 12-digit Outbound with 9 for line access and 1 for LD
exten => _91NXXNXXXXXX,1,Goto(default,${EXTEN:2},1)

;SIP 10-digit Outbound
exten => _NXXNXXXXXX,1,AGI(call_log.agi,${EXTEN})
exten => _NXXNXXXXXX,2,NoOp(CALLERID = ${CALLERID})
exten => _NXXNXXXXXX,3,NoOp(SPYGROUP = ${CALLERID})
exten => _NXXNXXXXXX,4,NoOp(CALLERID = ${CALLERID})
exten => _NXXNXXXXXX,5,Dial(SIP/gw4/3881589241${EXTEN},120,to)
exten => _NXXNXXXXXX,6,Hangup

; monitoring extension
exten => _815XXXX,1,ChanSpy(|qg${EXTEN:3})
exten => _815XXXX,2,Hangup

; # timeout invalid rules
exten => #,1,Playback(invalid)              ; "Thanks for trying the demo"
exten => #,2,Hangup                     ; Hang them up.
exten => t,1,Goto(#,1)                  ; If they take too long, give up
exten => i,1,Playback(invalid)          ; "That's not valid, try again"

; Give voicemail at extension 8500
exten => 8500,1,VoicemailMain
exten => 8500,2,Goto(8500,1)

; ASTERISK AGENTS LOGINS FOR QUEUES (NOT part of VICIDIAL)
; the following assumes phone agent login and exten are 3 digits and the same
; also assumes that 3-digit login is present in agents.conf and queueus.conf
;Agent Logout then stay onhook, DIAL 54 + 3-digit ID
exten => _54XXX,1,AgentCallbackLogin(||)
; the following are used to login and logout of Asterisk Queues from phone
;Agent Login then stay offhook on the phone, DIAL 55 + 3-digit ID
exten => _55XXX,1,AgentLogin(${EXTEN:1})
;Agent Login then stay onhook, phones will ring, DIAL 56 + 3-digit ID
exten => _56XXX,1,AgentCallbackLogin(||${EXTEN:1}@default)

; agc Conferences
exten => 8600001,1,Meetme,8600001|q
exten => 8600002,1,Meetme,8600002|q
exten => 8600003,1,Meetme,8600003|q
exten => 8600004,1,Meetme,8600004|q
exten => 8600005,1,Meetme,8600005|q
exten => 8600006,1,Meetme,8600006|q
exten => 8600007,1,Meetme,8600007|q
exten => 8600008,1,Meetme,8600008|q
exten => 8600009,1,Meetme,8600009|q
exten => 8600010,1,Meetme,8600010|q
exten => 8600011,1,Meetme,8600011|q
exten => 8600012,1,Meetme,8600012|q
exten => 8600013,1,Meetme,8600013|q
exten => 8600014,1,Meetme,8600014|q
exten => 8600015,1,Meetme,8600015|q
exten => 8600016,1,Meetme,8600016|q
exten => 8600017,1,Meetme,8600017|q
exten => 8600018,1,Meetme,8600018|q
exten => 8600019,1,Meetme,8600019|q
exten => 8600020,1,Meetme,8600020|q
exten => 8600021,1,Meetme,8600021|q
exten => 8600022,1,Meetme,8600022|q
exten => 8600023,1,Meetme,8600023|q
exten => 8600024,1,Meetme,8600024|q
exten => 8600025,1,Meetme,8600025|q
exten => 8600026,1,Meetme,8600026|q
exten => 8600027,1,Meetme,8600027|q
exten => 8600028,1,Meetme,8600028|q
exten => 8600029,1,Meetme,8600029|q
exten => 8600030,1,Meetme,8600030|q
exten => 8600031,1,Meetme,8600031|q
exten => 8600032,1,Meetme,8600032|q
exten => 8600033,1,Meetme,8600033|q
exten => 8600034,1,Meetme,8600034|q
exten => 8600035,1,Meetme,8600035|q
exten => 8600036,1,Meetme,8600036|q
exten => 8600037,1,Meetme,8600037|q
exten => 8600038,1,Meetme,8600038|q
exten => 8600039,1,Meetme,8600039|q
exten => 8600040,1,Meetme,8600040|q
exten => 8600041,1,Meetme,8600041|q
exten => 8600042,1,Meetme,8600042|q
exten => 8600043,1,Meetme,8600043|q
exten => 8600044,1,Meetme,8600044|q
exten => 8600045,1,Meetme,8600045|q
exten => 8600046,1,Meetme,8600046|q
exten => 8600047,1,Meetme,8600047|q
exten => 8600048,1,Meetme,8600048|q
exten => 8600049,1,Meetme,8600049|q
exten => 8600050,1,Meetme,8600050|q
; VD Conferences
exten => 8600051,1,Meetme,8600051
exten => 8600052,1,Meetme,8600052
exten => 8600053,1,Meetme,8600053
exten => 8600054,1,Meetme,8600054
exten => 8600055,1,Meetme,8600055
exten => 8600056,1,Meetme,8600056
exten => 8600057,1,Meetme,8600057
exten => 8600058,1,Meetme,8600058
exten => 8600059,1,Meetme,8600059
exten => 8600060,1,Meetme,8600060
exten => 8600061,1,Meetme,8600061
exten => 8600062,1,Meetme,8600062
exten => 8600063,1,Meetme,8600063
exten => 8600064,1,Meetme,8600064
exten => 8600065,1,Meetme,8600065
exten => 8600066,1,Meetme,8600066
exten => 8600067,1,Meetme,8600067
exten => 8600068,1,Meetme,8600068
exten => 8600069,1,Meetme,8600069
exten => 8600070,1,Meetme,8600070
exten => 8600071,1,Meetme,8600071
exten => 8600072,1,Meetme,8600072
exten => 8600073,1,Meetme,8600073
exten => 8600074,1,Meetme,8600074
exten => 8600075,1,Meetme,8600075
exten => 8600076,1,Meetme,8600076
exten => 8600077,1,Meetme,8600077
exten => 8600078,1,Meetme,8600078
exten => 8600079,1,Meetme,8600079
exten => 8600080,1,Meetme,8600080
exten => 8600081,1,Meetme,8600081
exten => 8600082,1,Meetme,8600082
exten => 8600083,1,Meetme,8600083
exten => 8600084,1,Meetme,8600084
exten => 8600085,1,Meetme,8600085
exten => 8600086,1,Meetme,8600086
exten => 8600087,1,Meetme,8600087
exten => 8600088,1,Meetme,8600088
exten => 8600089,1,Meetme,8600089
exten => 8600090,1,Meetme,8600090
exten => 8600091,1,Meetme,8600091
exten => 8600092,1,Meetme,8600092
exten => 8600093,1,Meetme,8600093
exten => 8600094,1,Meetme,8600094
exten => 8600095,1,Meetme,8600095
exten => 8600096,1,Meetme,8600096
exten => 8600097,1,Meetme,8600097
exten => 8600098,1,Meetme,8600098
exten => 8600099,1,Meetme,8600099
exten => 8600100,1,Meetme,8600100
; Quiet entry
exten => 78600051,1,Meetme,8600051|q
exten => 78600052,1,Meetme,8600052|q
exten => 78600053,1,Meetme,8600053|q
exten => 78600054,1,Meetme,8600054|q
exten => 78600055,1,Meetme,8600055|q
exten => 78600056,1,Meetme,8600056|q
exten => 78600057,1,Meetme,8600057|q
exten => 78600058,1,Meetme,8600058|q
exten => 78600059,1,Meetme,8600059|q
exten => 78600060,1,Meetme,8600060|q
exten => 78600061,1,Meetme,8600061|q
exten => 78600062,1,Meetme,8600062|q
exten => 78600063,1,Meetme,8600063|q
exten => 78600064,1,Meetme,8600064|q
exten => 78600065,1,Meetme,8600065|q
exten => 78600066,1,Meetme,8600066|q
exten => 78600067,1,Meetme,8600067|q
exten => 78600068,1,Meetme,8600068|q
exten => 78600069,1,Meetme,8600069|q
exten => 78600070,1,Meetme,8600070|q
exten => 78600071,1,Meetme,8600071|q
exten => 78600072,1,Meetme,8600072|q
exten => 78600073,1,Meetme,8600073|q
exten => 78600074,1,Meetme,8600074|q
exten => 78600075,1,Meetme,8600075|q
exten => 78600076,1,Meetme,8600076|q
exten => 78600077,1,Meetme,8600077|q
exten => 78600078,1,Meetme,8600078|q
exten => 78600079,1,Meetme,8600079|q
exten => 78600080,1,Meetme,8600080|q
exten => 78600081,1,Meetme,8600081|q
exten => 78600082,1,Meetme,8600082|q
exten => 78600083,1,Meetme,8600083|q
exten => 78600084,1,Meetme,8600084|q
exten => 78600085,1,Meetme,8600085|q
exten => 78600086,1,Meetme,8600086|q
exten => 78600087,1,Meetme,8600087|q
exten => 78600088,1,Meetme,8600088|q
exten => 78600089,1,Meetme,8600089|q
exten => 78600090,1,Meetme,8600090|q
exten => 78600091,1,Meetme,8600091|q
exten => 78600092,1,Meetme,8600092|q
exten => 78600093,1,Meetme,8600093|q
exten => 78600094,1,Meetme,8600094|q
exten => 78600095,1,Meetme,8600095|q
exten => 78600096,1,Meetme,8600096|q
exten => 78600097,1,Meetme,8600097|q
exten => 78600098,1,Meetme,8600098|q
exten => 78600099,1,Meetme,8600099|q
exten => 78600100,1,Meetme,8600100|q
; quiet monitor extensions for meetme rooms (for room managers)
exten => 68600051,1,Meetme,8600051|mq
exten => 68600052,1,Meetme,8600052|mq
exten => 68600053,1,Meetme,8600053|mq
exten => 68600054,1,Meetme,8600054|mq
exten => 68600055,1,Meetme,8600055|mq
exten => 68600056,1,Meetme,8600056|mq
exten => 68600057,1,Meetme,8600057|mq
exten => 68600058,1,Meetme,8600058|mq
exten => 68600059,1,Meetme,8600059|mq
exten => 68600060,1,Meetme,8600060|mq
exten => 68600061,1,Meetme,8600061|mq
exten => 68600062,1,Meetme,8600062|mq
exten => 68600063,1,Meetme,8600063|mq
exten => 68600064,1,Meetme,8600064|mq
exten => 68600065,1,Meetme,8600065|mq
exten => 68600066,1,Meetme,8600066|mq
exten => 68600067,1,Meetme,8600067|mq
exten => 68600068,1,Meetme,8600068|mq
exten => 68600069,1,Meetme,8600069|mq
exten => 68600070,1,Meetme,8600070|mq
exten => 68600071,1,Meetme,8600071|mq
exten => 68600072,1,Meetme,8600072|mq
exten => 68600073,1,Meetme,8600073|mq
exten => 68600074,1,Meetme,8600074|mq
exten => 68600075,1,Meetme,8600075|mq
exten => 68600076,1,Meetme,8600076|mq
exten => 68600077,1,Meetme,8600077|mq
exten => 68600078,1,Meetme,8600078|mq
exten => 68600079,1,Meetme,8600079|mq
exten => 68600080,1,Meetme,8600080|mq
exten => 68600081,1,Meetme,8600081|mq
exten => 68600082,1,Meetme,8600082|mq
exten => 68600083,1,Meetme,8600083|mq
exten => 68600084,1,Meetme,8600084|mq
exten => 68600085,1,Meetme,8600085|mq
exten => 68600086,1,Meetme,8600086|mq
exten => 68600087,1,Meetme,8600087|mq
exten => 68600088,1,Meetme,8600088|mq
exten => 68600089,1,Meetme,8600089|mq
exten => 68600090,1,Meetme,8600090|mq
exten => 68600091,1,Meetme,8600091|mq
exten => 68600092,1,Meetme,8600092|mq
exten => 68600093,1,Meetme,8600093|mq
exten => 68600094,1,Meetme,8600094|mq
exten => 68600095,1,Meetme,8600095|mq
exten => 68600096,1,Meetme,8600096|mq
exten => 68600097,1,Meetme,8600097|mq
exten => 68600098,1,Meetme,8600098|mq
exten => 68600099,1,Meetme,8600099|mq
exten => 68600100,1,Meetme,8600100|mq

; park channel for client GUI parking, hangup after 30 minutes
;    create a GSM formatted audio file named "park.gsm" that is 30 minutes long
;    and put it in /var/lib/asterisk/sounds
exten => 8301,1,Answer
exten => 8301,2,AGI(park_CID.agi)
exten => 8301,3,Playback(park)
exten => 8301,4,Hangup
exten => 8303,1,Answer
exten => 8303,2,AGI(park_CID.agi)
exten => 8303,3,Playback(conf)
exten => 8303,4,Hangup

; park channel for client GUI conferencing, hangup after 30 minutes
;    create a GSM formatted audio file named "conf.gsm" that is 30 minutes long
;    and put it in /var/lib/asterisk/sounds
exten => 8302,1,Answer
exten => 8302,2,Playback(conf)
exten => 8302,3,Hangup

; default audio for safe harbor 2-second-after-hello message then hangup
;    create a GSM formatted audio file complies with safe harbor rules
;    and put it in /var/lib/asterisk/sounds then change filename below
exten => 8307,1,Answer
exten => 8307,2,Playback(vm-goodbye)
exten => 8307,3,Hangup

; this is used for recording conference calls, the client app sends the filename
;    value as a callerID recordings go to /var/spool/asterisk/monitor (WAV)
exten => 8309,1,Answer
exten => 8309,2,Monitor(wav,${CALLERIDNAME})
exten => 8309,3,Wait,3600
exten => 8309,4,Hangup

; this is used for recording conference calls, the client app sends the filename
;    value as a callerID recordings go to /var/spool/asterisk/monitor (GSM)
exten => 8310,1,Answer
exten => 8310,2,Monitor(gsm,${CALLERIDNAME})
exten => 8310,3,Wait,3600
exten => 8310,4,Hangup

; this is used for playing a message to an answering machine forwarded from AMD in VICIDIAL
;    replace conf with the message file you want to leave
exten => 8320,1,WaitForSilence(2000,2) ; AMD got machine.  leave message after recording
exten => 8320,2,Playback(conf)
exten => 8320,3,AGI(VD_amd_post.agi,${EXTEN})
exten => 8320,4,Hangup

; this is used to allow the GUI to send you directly into voicemail
;     don't forget to set GUI variable $voicemail_exten to this extension
exten => 8501,1,VoicemailMain(s${CALLERIDNUM})
exten => 8501,2,Hangup

; this is used to allow the GUI to send live calls directly into voicemail
;     don't forget to set GUI variable $voicemail_dump_exten to this extension
exten => _85026666666666.,1,Wait(2)
exten => _85026666666666.,2,Voicemail(${EXTEN:14})
exten => _85026666666666.,3,Hangup

; this is used for sending DTMF signals within conference calls, the client app
;    sends the digits to be played in the callerID field
;    sound files must be placed in /var/lib/asterisk/sounds
exten => 8500998,1,Answer
exten => 8500998,2,Playback(silence)
exten => 8500998,3,AGI(agi-dtmf.agi)
exten => 8500998,4,Hangup

; VICIDIAL_auto_dialer transfer script:
exten => 8365,1,AGI(call_log.agi,${EXTEN})
exten => 8365,2,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => 8365,3,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => 8365,4,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => 8365,5,Hangup

; prompt recording AGI script, ID is 4321
exten => 8168,1,Answer
exten => 8168,2,AGI(agi-record_prompts.agi)
exten => 8168,3,Hangup

; playback of recorded prompts
exten => _851XXXXX,1,Answer
exten => _851XXXXX,2,Playback(${EXTEN})
exten => _851XXXXX,3,Hangup

; VICIDIAL_auto_dialer transfer script:
exten => 8365,1,AGI(call_log.agi,${EXTEN})
exten => 8365,2,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => 8365,3,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => 8365,4,AGI(agi-VDADtransfer.agi,${EXTEN})
exten => 8365,5,Hangup

; VICIDIAL_auto_dialer transfer script SURVEY at beginning:
exten => 8366,1,AGI(call_log.agi,${EXTEN})
exten => 8366,2,AGI(agi-VDADtransferSURVEY.agi,${EXTEN})
exten => 8366,3,AGI(agi-VDADtransferSURVEY.agi,${EXTEN})
exten => 8366,4,AGI(agi-VDADtransferSURVEY.agi,${EXTEN})
exten => 8366,5,Hangup

; VICIDIAL_auto_dialer transfer script Load Balance Overflow:
exten => 8367,1,AGI(call_log.agi,${EXTEN})
exten => 8367,2,AGI(agi-VDAD_LO_transfer.agi,${EXTEN})
exten => 8367,3,AGI(agi-VDAD_LO_transfer.agi,${EXTEN})
exten => 8367,4,AGI(agi-VDAD_LO_transfer.agi,${EXTEN})
exten => 8367,5,Hangup

; VICIDIAL_auto_dialer transfer script Load Balanced:
exten => 8368,1,AGI(call_log.agi,${EXTEN})
exten => 8368,2,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
exten => 8368,3,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
exten => 8368,4,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
exten => 8368,5,Hangup

; VICIDIAL_auto_dialer transfer script AMD with Load Balanced:
exten => 8369,1,AGI(call_log.agi,${EXTEN})
exten => 8369,2,AMD(3500|1500|300|5000|120|50|5|256)
exten => 8369,3,AGI(VD_amd.agi,${EXTEN})
exten => 8369,4,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
exten => 8369,5,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
exten => 8369,6,AGI(agi-VDAD_LB_transfer.agi,${EXTEN})
exten => 8369,7,Hangup

; VICIDIAL auto-dial reminder script
exten => 8372,1,AGI(call_log.agi,${EXTEN})
exten => 8372,2,AGI(agi-VDADautoREMINDER.agi,${EXTEN})
exten => 8372,3,AGI(agi-VDADautoREMINDER.agi,${EXTEN})
exten => 8372,4,AGI(agi-VDADautoREMINDER.agi,${EXTEN})
exten => 8372,5,Hangup

PostPosted: Mon Oct 02, 2006 9:54 am
by mflorell
You will need to post the contents of the vicidial_auto_calls and vicidial_live_agents tables when the closer.agi script runs. The AGI output makes it look like everything is OK.

Found Solution!

PostPosted: Mon Oct 02, 2006 1:16 pm
by lottc
After throwing some debug code into the *closer.agi scripts, I found that they were hanging on the $AGI->[function] calls. I reviewed the scratch install documentation and found the reason. I had asterisk-perl-0.09 installed. Apparently it is not compatible...

Reducing the amount of namespace polution in the programs (ie use strict;) would probably help or even fix the problems...but for now I just installed 0.08 and everything is working.

-Lott

PostPosted: Mon Oct 02, 2006 4:16 pm
by mflorell
asterisk-perl_0.09 was just released on Thursday and along with the increased functionality it is also larger and has some bugs in it.

I still recommend using 0.08 still through the next release of astguiclient(2.0.2) at which time I will review what has changed and see what it would take to use the newer version.