Posted:
Sun Mar 13, 2011 3:13 pm
by rohitrmenon
is this what u are looking for ?
2011-03-13 15:23:19|agi-DID_route.agi||INSERT INTO vicidial_did_log SET uniqueid='1300044199.18',channel='IAX2/2489360208-530',server_ip='xxx.xxx.xxx.xxx',caller_id_number='2489361070',caller_id_name='SOUTHFIELD_MI',extension='12489360208',call_date='2011-03-13 15:23:19',did_id='1',did_route='EXTEN';|
2011-03-13 15:23:19|agi-DID_route.agi|-- DID LOG : |1|INSERT INTO vicidial_did_log SET uniqueid='1300044199.18',channel='IAX2/2489360208-530',server_ip='xxx.xxx.xxx.xxx',caller_id_number='2489361070',caller_id_name='SOUTHFIELD_MI',extension='12489360208',call_date='2011-03-13 15:23:19',did_id='1',did_route='EXTEN';|
2011-03-13 15:23:19|agi-DID_route.agi|-- CALL LOG : |1|INSERT INTO call_log SET uniqueid='1300044199.18', channel='IAX2/2489360208-530', channel_group='DID_INBOUND', server_ip='xxx.xxx.xxx.xxx', type='IAX2', extension='12489360208', number_dialed='12489360208', caller_code='2489361070', start_time='2011-03-13 15:23:19', start_epoch='1300044199';|
2011-03-13 15:23:19|agi-DID_route.agi|exiting the DID app, transferring call to 9998811112 @ default
2011-03-13 15:45:05|agi-DID_route.agi||INSERT INTO vicidial_did_log SET uniqueid='1300045505.4',channel='IAX2/2489360208-4943',server_ip='xxx.xxx.xxx.xxx',caller_id_number='5109967199',caller_id_name='SANDHU_PRO_AUTO',extension='12489360208',call_date='2011-03-13 15:45:05',did_id='1',did_route='EXTEN';|
2011-03-13 15:45:05|agi-DID_route.agi|-- DID LOG : |1|INSERT INTO vicidial_did_log SET uniqueid='1300045505.4',channel='IAX2/2489360208-4943',server_ip='xxx.xxx.xxx.xxx',caller_id_number='5109967199',caller_id_name='SANDHU_PRO_AUTO',extension='12489360208',call_date='2011-03-13 15:45:05',did_id='1',did_route='EXTEN';|
2011-03-13 15:45:05|agi-DID_route.agi|-- CALL LOG : |1|INSERT INTO call_log SET uniqueid='1300045505.4', channel='IAX2/2489360208-4943', channel_group='DID_INBOUND', server_ip='xxx.xxx.xxx.xxx', type='IAX2', extension='12489360208', number_dialed='12489360208', caller_code='5109967199', start_time='2011-03-13 15:45:05', start_epoch='1300045505';|
2011-03-13 15:45:05|agi-DID_route.agi|exiting the DID app, transferring call to 9998811112 @ default
2011-03-13 15:45:41|agi-DID_route.agi||INSERT INTO vicidial_did_log SET uniqueid='1300045541.5',channel='IAX2/2489360208-3801',server_ip='xxx.xxx.xxx.xxx',caller_id_number='5109967199',caller_id_name='SANDHU_PRO_AUTO',extension='12489360208',call_date='2011-03-13 15:45:41',did_id='1',did_route='EXTEN';|
2011-03-13 15:45:41|agi-DID_route.agi|-- DID LOG : |1|INSERT INTO vicidial_did_log SET uniqueid='1300045541.5',channel='IAX2/2489360208-3801',server_ip='xxx.xxx.xxx.xxx',caller_id_number='5109967199',caller_id_name='SANDHU_PRO_AUTO',extension='12489360208',call_date='2011-03-13 15:45:41',did_id='1',did_route='EXTEN';|
2011-03-13 15:45:41|agi-DID_route.agi|-- CALL LOG : |1|INSERT INTO call_log SET uniqueid='1300045541.5', channel='IAX2/2489360208-3801', channel_group='DID_INBOUND', server_ip='xxx.xxx.xxx.xxx', type='IAX2', extension='12489360208', number_dialed='12489360208', caller_code='5109967199', start_time='2011-03-13 15:45:41', start_epoch='1300045541';|
2011-03-13 15:45:41|agi-DID_route.agi|exiting the DID app, transferring call to 9998811112 @ default
2011-03-13 15:48:07|agi-DID_route.agi||INSERT INTO vicidial_did_log SET uniqueid='1300045687.6',channel='IAX2/2489360208-358',server_ip='xxx.xxx.xxx.xxx',caller_id_number='5109967199',caller_id_name='SANDHU_PRO_AUTO',extension='12489360208',call_date='2011-03-13 15:48:07',did_id='1',did_route='EXTEN';|
2011-03-13 15:48:07|agi-DID_route.agi|-- DID LOG : |1|INSERT INTO vicidial_did_log SET uniqueid='1300045687.6',channel='IAX2/2489360208-358',server_ip='xxx.xxx.xxx.xxx',caller_id_number='5109967199',caller_id_name='SANDHU_PRO_AUTO',extension='12489360208',call_date='2011-03-13 15:48:07',did_id='1',did_route='EXTEN';|
2011-03-13 15:48:07|agi-DID_route.agi|-- CALL LOG : |1|INSERT INTO call_log SET uniqueid='1300045687.6', channel='IAX2/2489360208-358', channel_group='DID_INBOUND', server_ip='xxx.xxx.xxx.xxx', type='IAX2', extension='12489360208', number_dialed='12489360208', caller_code='5109967199', start_time='2011-03-13 15:48:07', start_epoch='1300045687';|
2011-03-13 15:48:07|agi-DID_route.agi|exiting the DID app, transferring call to 9998811112 @ default
2011-03-13 15:50:25|agi-DID_route.agi||INSERT INTO vicidial_did_log SET uniqueid='1300045825.7',channel='IAX2/2489360208-390',server_ip='xxx.xxx.xxx.xxx',caller_id_number='5109967199',caller_id_name='SANDHU_PRO_AUTO',extension='12489360208',call_date='2011-03-13 15:50:25',did_id='1',did_route='EXTEN';|
2011-03-13 15:50:25|agi-DID_route.agi|-- DID LOG : |1|INSERT INTO vicidial_did_log SET uniqueid='1300045825.7',channel='IAX2/2489360208-390',server_ip='xxx.xxx.xxx.xxx',caller_id_number='5109967199',caller_id_name='SANDHU_PRO_AUTO',extension='12489360208',call_date='2011-03-13 15:50:25',did_id='1',did_route='EXTEN';|
2011-03-13 15:50:25|agi-DID_route.agi|-- CALL LOG : |1|INSERT INTO call_log SET uniqueid='1300045825.7', channel='IAX2/2489360208-390', channel_group='DID_INBOUND', server_ip='xxx.xxx.xxx.xxx', type='IAX2', extension='12489360208', number_dialed='12489360208', caller_code='5109967199', start_time='2011-03-13 15:50:25', start_epoch='1300045825';|
2011-03-13 15:50:25|agi-DID_route.agi|exiting the DID app, transferring call to 9998811112 @ default
2011-03-13 15:52:27|agi-DID_route.agi||INSERT INTO vicidial_did_log SET uniqueid='1300045947.11',channel='IAX2/2489360208-3195',server_ip='xxx.xxx.xxx.xxx',caller_id_number='5109967199',caller_id_name='SANDHU_PRO_AUTO',extension='12489360208',call_date='2011-03-13 15:52:27',did_id='1',did_route='EXTEN';|
2011-03-13 15:52:27|agi-DID_route.agi|-- DID LOG : |1|INSERT INTO vicidial_did_log SET uniqueid='1300045947.11',channel='IAX2/2489360208-3195',server_ip='xxx.xxx.xxx.xxx',caller_id_number='5109967199',caller_id_name='SANDHU_PRO_AUTO',extension='12489360208',call_date='2011-03-13 15:52:27',did_id='1',did_route='EXTEN';|
2011-03-13 15:52:27|agi-DID_route.agi|-- CALL LOG : |1|INSERT INTO call_log SET uniqueid='1300045947.11', channel='IAX2/2489360208-3195', channel_group='DID_INBOUND', server_ip='xxx.xxx.xxx.xxx', type='IAX2', extension='12489360208', number_dialed='12489360208', caller_code='5109967199', start_time='2011-03-13 15:52:27', start_epoch='1300045947';|
2011-03-13 15:52:27|agi-DID_route.agi|exiting the DID app, transferring call to 9998811112 @ default
2011-03-13 15:53:26|agi-DID_route.agi||INSERT INTO vicidial_did_log SET uniqueid='1300046006.12',channel='IAX2/2489360208-3936',server_ip='xxx.xxx.xxx.xxx',caller_id_number='5109967199',caller_id_name='SANDHU_PRO_AUTO',extension='12489360208',call_date='2011-03-13 15:53:26',did_id='1',did_route='EXTEN';|
2011-03-13 15:53:26|agi-DID_route.agi|-- DID LOG : |1|INSERT INTO vicidial_did_log SET uniqueid='1300046006.12',channel='IAX2/2489360208-3936',server_ip='xxx.xxx.xxx.xxx',caller_id_number='5109967199',caller_id_name='SANDHU_PRO_AUTO',extension='12489360208',call_date='2011-03-13 15:53:26',did_id='1',did_route='EXTEN';|
2011-03-13 15:53:26|agi-DID_route.agi|-- CALL LOG : |1|INSERT INTO call_log SET uniqueid='1300046006.12', channel='IAX2/2489360208-3936', channel_group='DID_INBOUND', server_ip='xxx.xxx.xxx.xxx', type='IAX2', extension='12489360208', number_dialed='12489360208', caller_code='5109967199', start_time='2011-03-13 15:53:26', start_epoch='1300046006';|
2011-03-13 15:53:26|agi-DID_route.agi|exiting the DID app, transferring call to 9998811112 @ default
2011-03-13 15:55:00|agi-DID_route.agi||INSERT INTO vicidial_did_log SET uniqueid='1300046100.13',channel='IAX2/2489360208-922',server_ip='xxx.xxx.xxx.xxx',caller_id_number='5109967199',caller_id_name='SANDHU_PRO_AUTO',extension='12489360208',call_date='2011-03-13 15:55:00',did_id='1',did_route='EXTEN';|
2011-03-13 15:55:00|agi-DID_route.agi|-- DID LOG : |1|INSERT INTO vicidial_did_log SET uniqueid='1300046100.13',channel='IAX2/2489360208-922',server_ip='xxx.xxx.xxx.xxx',caller_id_number='5109967199',caller_id_name='SANDHU_PRO_AUTO',extension='12489360208',call_date='2011-03-13 15:55:00',did_id='1',did_route='EXTEN';|
2011-03-13 15:55:00|agi-DID_route.agi|-- CALL LOG : |1|INSERT INTO call_log SET uniqueid='1300046100.13', channel='IAX2/2489360208-922', channel_group='DID_INBOUND', server_ip='xxx.xxx.xxx.xxx', type='IAX2', extension='12489360208', number_dialed='12489360208', caller_code='5109967199', start_time='2011-03-13 15:55:00', start_epoch='1300046100';|
2011-03-13 15:55:00|agi-DID_route.agi|exiting the DID app, transferring call to 9998811112 @ default
2011-03-13 16:02:18|agi-DID_route.agi||INSERT INTO vicidial_did_log SET uniqueid='1300046538.14',channel='IAX2/2489360208-1596',server_ip='xxx.xxx.xxx.xxx',caller_id_number='5109967199',caller_id_name='SANDHU_PRO_AUTO',extension='12489360208',call_date='2011-03-13 16:02:18',did_id='1',did_route='EXTEN';|
2011-03-13 16:02:18|agi-DID_route.agi|-- DID LOG : |1|INSERT INTO vicidial_did_log SET uniqueid='1300046538.14',channel='IAX2/2489360208-1596',server_ip='xxx.xxx.xxx.xxx',caller_id_number='5109967199',caller_id_name='SANDHU_PRO_AUTO',extension='12489360208',call_date='2011-03-13 16:02:18',did_id='1',did_route='EXTEN';|
2011-03-13 16:02:18|agi-DID_route.agi|-- CALL LOG : |1|INSERT INTO call_log SET uniqueid='1300046538.14', channel='IAX2/2489360208-1596', channel_group='DID_INBOUND', server_ip='xxx.xxx.xxx.xxx', type='IAX2', extension='12489360208', number_dialed='12489360208', caller_code='5109967199', start_time='2011-03-13 16:02:18', start_epoch='1300046538';|
2011-03-13 16:02:18|agi-DID_route.agi|exiting the DID app, transferring call to 9998811112 @ default
2011-03-13 16:02:24|agi-DID_route.agi||INSERT INTO vicidial_did_log SET uniqueid='1300046544.15',channel='IAX2/2489360208-384',server_ip='xxx.xxx.xxx.xxx',caller_id_number='5109967199',caller_id_name='SANDHU_PRO_AUTO',extension='12489360208',call_date='2011-03-13 16:02:24',did_id='1',did_route='EXTEN';|
2011-03-13 16:02:24|agi-DID_route.agi|-- DID LOG : |1|INSERT INTO vicidial_did_log SET uniqueid='1300046544.15',channel='IAX2/2489360208-384',server_ip='xxx.xxx.xxx.xxx',caller_id_number='5109967199',caller_id_name='SANDHU_PRO_AUTO',extension='12489360208',call_date='2011-03-13 16:02:24',did_id='1',did_route='EXTEN';|
2011-03-13 16:02:24|agi-DID_route.agi|-- CALL LOG : |1|INSERT INTO call_log SET uniqueid='1300046544.15', channel='IAX2/2489360208-384', channel_group='DID_INBOUND', server_ip='xxx.xxx.xxx.xxx', type='IAX2', extension='12489360208', number_dialed='12489360208', caller_code='5109967199', start_time='2011-03-13 16:02:24', start_epoch='1300046544';|
2011-03-13 16:02:24|agi-DID_route.agi|exiting the DID app, transferring call to 9998811112 @ default
agi-DID_route.agi:
#[trunkinbound]
# ;inbound DID catch-all:
#exten => _X.,1,AGI(agi-DID_route.agi)
#
Posted:
Sun Mar 13, 2011 5:33 pm
by rohitrmenon
Both never worked: only one will work either inbound or outbound
My trunk configuration :
Registration String:register => username:password@xxx.xxx.xxx.xxx/username
[username]
disallow=all
allow=alaw
allow=ulaw
type=friend
username=username
secret=password
host=xxx.xxx.xxx.xxx
dtmfmode=inband
context=trunkinbound
qualify=1000
Globals String: IAXTRUNK = IAX2/username
dialplanentry:
exten => _91NXXNXXXXXX,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,2,Dial(${IAXTRUNK}/${EXTEN:1},55,o)
exten => _91NXXNXXXXXX,3,Hangup
exten => _9011.,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _9011.,2,Dial(${IAXTRUNK}/${EXTEN:1},55,o)
exten => _9011.,3,Hangup
Where : 912547896555 says "dialed number" and where username is the username of the registration strings....
-- Executing [912547896555@default:1] AGI("SIP/1001-00000006", "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 [912547896555@default:2] Dial("SIP/1001-00000006", "IAX2/username/12547896555|55|o") in new stack
-- Called username/12547896555
-- Hungup 'IAX2/username-1510'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [912547896555@default:3] Hangup("SIP/1001-00000006", "") in new stack
== Spawn extension (default, 912547896555, 3) exited non-zero on 'SIP/1001-00000006'
-- Executing [h@default:1] DeadAGI("SIP/1001-00000006", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----50-----CHANUNAVAIL----------") in new stack
-- AGI Script
agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
[Mar 13 18:26:37] NOTICE[5213]: rtp.c:1339 ast_rtp_read: Unknown RTP codec 126 received from '172.17.87.14'
-- Executing [912547896555@default:1] AGI("SIP/1001-00000007", "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 [912547896555@default:2] Dial("SIP/1001-00000007", "IAX2/username/12547896555|55|o") in new stack
-- Called username/12547896555
-- Hungup 'IAX2/username-1700'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [912547896555@default:3] Hangup("SIP/1001-00000007", "") in new stack
== Spawn extension (default, 912547896555, 3) exited non-zero on 'SIP/1001-00000007'
-- Executing [h@default:1] DeadAGI("SIP/1001-00000007", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----50-----CHANUNAVAIL----------") in new stack
-- AGI Script
agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
== Spawn extension (default, 8600051, 1) exited non-zero on 'SIP/1001-00000002'
-- Executing [h@default:1] DeadAGI("SIP/1001-00000002", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack
-- AGI Script
agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
-- Executing [912547896555@default:1] AGI("SIP/1001-00000008", "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 [912547896555@default:2] Dial("SIP/1001-00000008", "IAX2/username/12547896555|55|o") in new stack
-- Called username/12547896555
-- Hungup 'IAX2/username-1452'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [912547896555@default:3] Hangup("SIP/1001-00000008", "") in new stack
== Spawn extension (default, 912547896555, 3) exited non-zero on 'SIP/1001-00000008'
-- Executing [h@default:1] DeadAGI("SIP/1001-00000008", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----50-----CHANUNAVAIL----------") in new stack
-- AGI Script
agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
-- Executing [912547896555@default:1] AGI("SIP/1001-00000009", "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 [912547896555@default:2] Dial("SIP/1001-00000009", "IAX2/username/12547896555|55|o") in new stack
-- Called username/12547896555
-- Hungup 'IAX2/username-1877'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [912547896555@default:3] Hangup("SIP/1001-00000009", "") in new stack
== Spawn extension (default, 912547896555, 3) exited non-zero on 'SIP/1001-00000009'
-- Executing [h@default:1] DeadAGI("SIP/1001-00000009", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----50-----CHANUNAVAIL----------") in new stack
-- AGI Script
agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
-- Executing [912547896555@default:1] AGI("SIP/1001-0000000a", "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 [912547896555@default:2] Dial("SIP/1001-0000000a", "IAX2/username/12547896555|55|o") in new stack
-- Called username/12547896555
-- Hungup 'IAX2/username-6405'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [912547896555@default:3] Hangup("SIP/1001-0000000a", "") in new stack
== Spawn extension (default, 912547896555, 3) exited non-zero on 'SIP/1001-0000000a'
-- Executing [h@default:1] DeadAGI("SIP/1001-0000000a", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----50-----CHANUNAVAIL----------") in new stack
-- AGI Script
agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
-- Executing [912547896555@default:1] AGI("SIP/1001-0000000b", "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 [912547896555@default:2] Dial("SIP/1001-0000000b", "IAX2/username/12547896555|55|o") in new stack
-- Called username/12547896555
-- Hungup 'IAX2/username-489'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [912547896555@default:3] Hangup("SIP/1001-0000000b", "") in new stack
== Spawn extension (default, 912547896555, 3) exited non-zero on 'SIP/1001-0000000b'
-- Executing [h@default:1] DeadAGI("SIP/1001-0000000b", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----50-----CHANUNAVAIL----------") in new stack
-- AGI Script
agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
-- Executing [912547896555@default:1] AGI("SIP/1001-0000000c", "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 [912547896555@default:2] Dial("SIP/1001-0000000c", "IAX2/username/12547896555|55|o") in new stack
-- Called username/12547896555
-- Hungup 'IAX2/username-21'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [912547896555@default:3] Hangup("SIP/1001-0000000c", "") in new stack
== Spawn extension (default, 912547896555, 3) exited non-zero on 'SIP/1001-0000000c'
-- Executing [h@default:1] DeadAGI("SIP/1001-0000000c", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----50-----CHANUNAVAIL----------") in new stack
-- AGI Script
agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0