Caller ID with FXO

All installation and configuration problems and questions

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

Caller ID with FXO

Postby mtancoff » Mon Aug 28, 2006 3:58 pm

Im using TDM2400B. The problem is that I can't get caller ID displayed in agent interface. The line is sending caller ID and Asterisk receives just fine.

Posting results:

Parsing '/etc/asterisk/manager.conf': Found
== Connect attempt from '127.0.0.1' unable to authenticate
-- Starting simple switch on 'Zap/3-1'
-- Executing Answer("Zap/3-1", "") in new stack
-- Executing Verbose("Zap/3-1", "Incoming call from BT line . CallerID=071200282") in new stack
Incoming call from BT line . CallerID=071200282
-- Executing AGI("Zap/3-1", "agi-VDADcloser_inboundCID.agi|CL_ENTRANTES-----7275555134-----Closer-----park----------999-----1") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDADcloser_inboundCID.agi
Perl Environment Dump:
0|CL_ENTRANTES-----7275555134-----Closer-----park----------999-----1|
AGI Environment Dump:
-- accountcode =
-- callerid = 071200282
-- calleridname = unknown
-- callingani2 = 0
-- callingpres = 0
-- callingtns = 0
-- callington = 0
-- channel = Zap/3-1
-- context = default
-- dnid = unknown
-- enhanced = 0.0
-- extension = s
-- language = en
-- priority = 3
-- rdnis = unknown
-- request = agi-VDADcloser_inboundCID.agi
-- type = Zap
-- uniqueid = 1156798411.2
== Parsing '/etc/asterisk/manager.conf': Found

INBOUND CALL VDCL STARTED
+++++ INBOUND CALL VDCL STARTED : |1156798411.2|CL_ENTRANTES|Zap/3-1|s|Zap|Closer-7275555134|2006-08-28 17:53:33
AGI Environment Dump: |1156798411.2|Zap/3-1|s|Zap|Closer|

INBOUND CALL RECEIVED IN FROM VDCL: Closer Zap/3-1
+++++ INBOUND VDCL START : |1156798411.2|Zap/3-1|s|Zap|2006-08-28 17:53:33

|INSERT INTO vicidial_list (entry_date,modify_date,status,user,vendor_lead_code,source_id,list_id,called_since_last_reset,phone_code,phone_number,security_phrase,called_count,gmt_offset_now,comments) values('2006-08-28 17:53:33','20060828175333','INBND','7275555134','CL_ENTRANTES','VDCL','999','Y','1','','CL_ENTRANTES','1','-5.00','');|416|
FAIL (unexpected result '')
callerID changed: Y0828175333000000416

|INSERT INTO vicidial_auto_calls values('','127.0.0.1','CL_ENTRANTES','LIVE','416','1156798411.2','Y0828175333000000416','Zap/3-1','1','','2006-08-28 17:53:33','IN')|

|INSERT INTO vicidial_closer_log (lead_id,campaign_id,call_date,start_epoch,status,phone_code,phone_number,user,processed) values('416','CL_ENTRANTES','2006-08-28 17:53:33','1156798413','QUEUE','1','','VDCL','N')|
-- VDCL : |416|insert to vicidial_closer_log


|SELECT count(*) FROM vicidial_auto_calls where status = 'LIVE' and server_ip='127.0.0.1' and campaign_id = 'CL_ENTRANTES' and call_time < "2006-08-28 17:53:33" and lead_id != '416';|
-- VDAD get agent: |360|0|1|update of vla table: CL_ENTRANTES|127.0.0.1
|UPDATE vicidial_live_agents set status='QUEUE',lead_id='416',uniqueid='1156798411.2', channel='Zap/3-1', callerid='Y0828175333000000416' where status IN('CLOSER','READY') and server_ip='127.0.0.1' and campaign_id LIKE "%CLOSER%" and closer_campaigns LIKE "% CL_ENTRANTES %" and last_update_time > '19691231205955' order by last_call_time limit 1;|


|SELECT conf_exten,user,extension FROM vicidial_live_agents where status = 'QUEUE' and server_ip='127.0.0.1' and campaign_id LIKE "%CLOSER%" and callerid='Y0828175333000000416' and channel='Zap/3-1' order by last_call_time limit 1;|
-- VDCL XFER : |1|update of vac table: Y0828175333000000416
|UPDATE vicidial_auto_calls set status='CLOSER' where callerid='Y0828175333000000416';|
-- closer log : |1|update of vcl table: 416
|UPDATE vicidial_closer_log set user='1600' where lead_id='416' order by call_date desc limit 1;|

exiting the VDAD app, transferring call to 8600051
FAIL (unexpected result '')
FAIL (unexpected result '')
FAIL (unexpected result '')

XXXXXXXXXX VDAD transferred: start|stop 2006-08-28 17:53:33|2006-08-28 17:53:34
-- AGI Script agi-VDADcloser_inboundCID.agi completed, returning 0
-- Executing MeetMe("Zap/3-1", "8600051") in new stack
== Connect attempt from '127.0.0.1' unable to authenticate
== Parsing '/etc/asterisk/manager.conf': Found
== Connect attempt from '127.0.0.1' unable to authenticate
== Spawn extension (default, 8600051, 1) exited non-zero on 'Zap/3-1'
-- Executing DeadAGI("Zap/3-1", "call_log.agi|h") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/call_log.agi
+++++ CALL LOG HUNGUP: |1156798411.2|Zap/3-1|h|2006-08-28 17:53:46|min: |
-- AGI Script call_log.agi completed, returning 0
-- Executing DeadAGI("Zap/3-1", "VD_hangup.agi|PRI-----NODEBUG-----0---------------") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/VD_hangup.agi
Perl Environment Dump:
0|PRI-----NODEBUG-----0---------------|
AGI Environment Dump:
-- accountcode =
-- callerid = unknown
-- calleridname = Y0828175333000000416
-- callingani2 = 0
-- callingpres = 0
-- callingtns = 0
-- callington = 0
-- channel = Zap/3-1
-- context = default
-- dnid = unknown
-- enhanced = 0.0
-- extension = h
-- language = en
-- priority = 2
-- rdnis = unknown
-- request = VD_hangup.agi
-- type = Zap
-- uniqueid = 1156798411.2
AGI Environment Dump: |1156798411.2|Zap/3-1|h|Zap|Y0828175333000000416|Y0828175333000000416|2|

DEBUG: NODEBUG

VD_hangup : Y0828175333000000416 Zap/3-1 2
+++++ VD hangup START : |1156798411.2|Zap/3-1|h|Zap|Y0828175333000000416|416|2006-08-28 17:53:46||2|Y0828175333000000416|


|SELECT lead_id,callerid FROM vicidial_auto_calls where uniqueid = '1156798411.2' limit 1;|
-- VDAC record deleted: |1| |416|1156798411.2|Y0828175333000000416|127.0.0.1


|SELECT start_epoch,status FROM vicidial_log where uniqueid='1156798411.2' and lead_id='416' limit 1;|

VD hangup: no VDL record found: 1156798411.2 Y0828175333000000416 416 1156798411.2


|SELECT start_epoch,status,closecallid FROM vicidial_closer_log where lead_id = '416' and call_date > "2006-08-28 11:53:46" order by call_date desc limit 1;|


|UPDATE vicidial_log set end_epoch='1156798426',length_in_sec='13' where uniqueid = '1156798411.2';|
-- VDAD vicidial_log update: |0|1156798411.2|


|UPDATE vicidial_closer_log set status='DROP',end_epoch='1156798426',length_in_sec='13' where closecallid = '410';|
-- VDCL update: |1|1156798411.2|410|
-- AGI Script VD_hangup.agi completed, returning 0
-- Hungup 'Zap/3-1'
== Parsing '/etc/asterisk/manager.conf': Found
== Connect attempt from '127.0.0.1' unable to authenticate
== Parsing '/etc/asterisk/manager.conf': Found
== Connect attempt from '127.0.0.1' unable to authenticate
== Parsing '/etc/asterisk/manager.conf': Found
== Connect attempt from '127.0.0.1' unable to authenticate
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'sendcron' logged on from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
== Manager 'sendcron' logged off from 127.0.0.1
== Parsing '/etc/asterisk/manager.conf': Found
== Connect attempt from '127.0.0.1' unable to authenticate
Beginning asterisk shutdown....
-- Hungup 'Zap/pseudo-1391599778'
== Spawn extension (default, 8600051, 1) exited non-zero on 'IAX2/1600-3'
-- Executing DeadAGI("IAX2/1600-3", "call_log.agi|h") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/call_log.agi
+++++ CALL LOG HUNGUP: |1156798385.0|IAX2/1600-3|h|2006-08-28 17:54:08|min: |
-- AGI Script call_log.agi completed, returning 0
-- Executing DeadAGI("IAX2/1600-3", "VD_hangup.agi|PRI-----NODEBUG-----0---------------") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/VD_hangup.agi
Perl Environment Dump:
0|PRI-----NODEBUG-----0---------------|
AGI Environment Dump:
-- accountcode =
-- callerid = unknown
-- calleridname = S0608281753048600051
-- callingani2 = 0
-- callingpres = 0
-- callingtns = 0
-- callington = 0
-- channel = IAX2/1600-3
-- context = default
-- dnid = unknown
-- enhanced = 0.0
-- extension = h
-- language = en
-- priority = 2
-- rdnis = unknown
-- request = VD_hangup.agi
-- type = IAX2
-- uniqueid = 1156798385.0
AGI Environment Dump: |1156798385.0|IAX2/1600-3|h|IAX2|S0608281753048600051|S0608281753048600051|2|

DEBUG: NODEBUG

VD_hangup : S0608281753048600051 IAX2/1600-3 2
+++++ VD hangup START : |1156798385.0|IAX2/1600-3|h|IAX2|S0608281753048600051|48600051|2006-08-28 17:54:08||2|S0608281753048600051|


|SELECT lead_id,callerid FROM vicidial_auto_calls where uniqueid = '1156798385.0' limit 1;|
mtancoff
 
Posts: 41
Joined: Mon Jul 31, 2006 11:42 am

Postby mflorell » Mon Aug 28, 2006 6:39 pm

The inboundCID agi script is looking for 10 digits so you will have to alter the script to work with your 9 digit CID delivery. I think this is the line:

if (length($callerid)<10) {$callerid = $parked_by;}
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Support

Who is online

Users browsing this forum: No registered users and 68 guests