mflorell wrote:Next step is for you to post the screenlog.0 output from one of these calls. Make sure you have the Server set to use AGI Output to BOTH.
I hope this one is the right peace of code. I had to figure out how to do the screenlog. Again, thank you for your help.
49408XXXXXX0 = phone number where customers can call me
491791XXXXX1 = with this number I did the test call to this 49408XXXXXX0 number
49176595XXXX5 = to this number the calls get forwarded
[Feb 8 20:11:19] == Using SIP RTP CoS mark 5
[Feb 8 20:11:19] > 0x7fc8cc01e0b0 -- Strict RTP learning after remote address set to: 185.246.41.170:19418
[Feb 8 20:11:19] -- Executing [49408XXXXXX0@trunkinbound:1] AGI("SIP/telnyx-00000005", "agi-DID_route.agi") in new s
tack
[Feb 8 20:11:19] -- Launched AGI Script /usr/share/asterisk/agi-bin/agi-DID_route.agi
2023-02-08 20:11:19|agi-DID_route.agi||INSERT INTO vicidial_did_log SET uniqueid='1675883479.11',channel='SIP/telnyx-00000005',server_ip='XXX.XX.XXX.88',call
er_id_number='491791XXXXX1',caller_id_name='491791XXXXX1',extension='49408XXXXXX0',call_date='2023-02-08 20:11:19',did_id='6',did_route='EXTEN';|
2023-02-08 20:11:19|agi-DID_route.agi|-- DID LOG : |1|INSERT INTO vicidial_did_log SET uniqueid='1675883479.11',channel='SIP/telnyx-00000005',server_ip='XXX.XX.XXX.88',caller_id_number='491791XXXXX1',caller_id_name='491791XXXXX1',extension='49408XXXXXX0',call_date='2023-02-08 20:11:19',did_id='6',did_route='EX
TEN';|
2023-02-08 20:11:19|agi-DID_route.agi|-- CALL LOG : |1|INSERT INTO call_log SET uniqueid='1675883479.11', channel='SIP/telnyx-00000005', channel_group='DI
D_INBOUND', server_ip='XXX.XX.XXX.88', type='SIP', extension='494085XXXXX0', number_dialed='494085XXXXX0', caller_code='491791XXXXX1', start_time='2023-02-08
20:11:19', start_epoch='1675883479';|
2023-02-08 20:11:19|agi-DID_route.agi|exiting the DID app, transferring call to 949176595XXXX5 @ default
[Feb 8 20:11:19] -- <SIP/telnyx-00000005>AGI Script agi-DID_route.agi completed, returning 0
[Feb 8 20:11:19] -- Executing [949176595XXXX5@default:1] AGI("SIP/telnyx-00000005", "agi://127.0.0.1:4577/call_log")
in new stack
[Feb 8 20:11:19] -- <SIP/telnyx-00000005>AGI Script
agi://127.0.0.1:4577/call_log completed, returning 0
[Feb 8 20:11:19] -- Executing [949176595XXXX5@default:2] Dial("SIP/telnyx-00000005", "SIP/telnyx/176595XXXX5,60,tTor
") in new stack
[Feb 8 20:11:19] == Using SIP RTP CoS mark 5
[Feb 8 20:11:19] -- Called SIP/telnyx/176595XXXX5
[Feb 8 20:11:20] -- SIP/telnyx-00000006 is ringing
[Feb 8 20:11:24] > 0x7fc914015320 -- Strict RTP learning after remote address set to: 185.246.41.167:31216
[Feb 8 20:11:24] -- SIP/telnyx-00000006 is making progress passing it to SIP/telnyx-00000005
[Feb 8 20:11:34] == Spawn extension (default, 949176595XXXX5, 2) exited non-zero on 'SIP/telnyx-00000005'
[Feb 8 20:11:34] -- Executing [h@default:1] AGI("SIP/telnyx-00000005", "agi://127.0.0.1:4577/call_log--HVcauses--PRI---
--NODEBUG-----0-----CANCEL---------------SIP 183 Session Progress)") in new stack
[Feb 8 20:11:34] -- <SIP/telnyx-00000005>AGI Script
agi://127.0.0.1:4577/call_log--HVcauses ... -------SIP 183 Session Progress) completed, returning 0