Problems about sip trunk bewteen ISP and VOIP Gateway
Posted: Tue Mar 18, 2014 2:25 am
I installed Vicidial. Now, I have some problems. My script call is:
- customers establish a inbound calling to xxx. (xxx is a public exteion of my office)
- They'll hear instruction, after press 2, this call is moved to In-Groups:Sales .If agents in this group aren't available. They'll hear instruction (busy_agent file) and press 1 to be recalled later ( equivalence: Wait Time Option:PRESS_CID_CALLBACK, this is config in INBOUND -> show in-group ->Sales)
Problems are:
+Case A: When Vicidial is connected SIP trunk to VOIP_GATEWAY, and VOIP_GATEWAY has FXO port to connect PSTN. My scenario is executed successfuly. This log is:
Executing [8@Maint:1] AGI in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Started music on hold, class 'default', on SIP/trunk1
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
-- Stopped music on hold on SIP/trunk1
-- Started music on hold, class 'default', on SIP/trunk1
Parsing '/etc/asterisk/manager.conf': Found
Manager 'sendcron' logged on from 127.0.0.1
Manager 'sendcron' logged off from 127.0.0.1
-- Stopped music on hold on SIP/trunk1
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=1) (sample_offset 0)
-- Playing 'busy_agent' (escape_digits=1) (sample_offset 0)
[Mar 18 09:32:16] DTMF14178: channel.c:2530 __ast_read: DTMF begin '1' received on SIP/trunk1
[Mar 18 09:32:16] DTMF14178: channel.c:2534 __ast_read: DTMF begin ignored '1' on SIP/trunk1
[Mar 18 09:32:16] DTMF14178: channel.c:2449 __ast_read: DTMF end '1' received on SIP/trunk1, duration 250 ms
[Mar 18 09:32:16] DTMF14178: channel.c:2515 __ast_read: DTMF end passthrough '1' on SIP/trunk1
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'vm-goodbye' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- AGI Script agi-VDAD_ALL_inbound.agi completed, returning 0
+Case B: When Vicidial is connected SIP trunk to ISP. customers call to xxx,and press 2, establish successfully.But agents aren't available. They cant't hear busy_agent file, just hear music on hold until timout. This is log:
Executing [8@Maint:1] AGI in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=1) (sample_offset 0)
-- Playing 'busy_agent' (escape_digits=1) (sample_offset 0)
-- Started music on hold, class 'default', on SIP/sip-trunkISP
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
Manager 'sendcron' logged on from 127.0.0.1
Manager 'sendcron' logged off from 127.0.0.1
-- Stopped music on hold on SIP/sip-trunkISP
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=1) (sample_offset 0)
-- Playing 'busy_agent' (escape_digits=1) (sample_offset 0)
-- Started music on hold, class 'default', on SIP/sip-trunkISP == Refreshing DNS lookups.
-- AGI Script agi-VDAD_ALL_inbound.agi completed, returning 0
As you see, with only inbound-group Sales, but two scripts are different completely. Case A is ok. But Case B, script plays busy_agent two times. But I can't hear this sound
I wonder what diffrent bewteen two connections : Vicidial_ISP and Vicidial_VOIPGateway_COLine
Please help me. Thanks in advance.
- customers establish a inbound calling to xxx. (xxx is a public exteion of my office)
- They'll hear instruction, after press 2, this call is moved to In-Groups:Sales .If agents in this group aren't available. They'll hear instruction (busy_agent file) and press 1 to be recalled later ( equivalence: Wait Time Option:PRESS_CID_CALLBACK, this is config in INBOUND -> show in-group ->Sales)
Problems are:
+Case A: When Vicidial is connected SIP trunk to VOIP_GATEWAY, and VOIP_GATEWAY has FXO port to connect PSTN. My scenario is executed successfuly. This log is:
Executing [8@Maint:1] AGI in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Started music on hold, class 'default', on SIP/trunk1
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
-- Stopped music on hold on SIP/trunk1
-- Started music on hold, class 'default', on SIP/trunk1
Parsing '/etc/asterisk/manager.conf': Found
Manager 'sendcron' logged on from 127.0.0.1
Manager 'sendcron' logged off from 127.0.0.1
-- Stopped music on hold on SIP/trunk1
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=1) (sample_offset 0)
-- Playing 'busy_agent' (escape_digits=1) (sample_offset 0)
[Mar 18 09:32:16] DTMF14178: channel.c:2530 __ast_read: DTMF begin '1' received on SIP/trunk1
[Mar 18 09:32:16] DTMF14178: channel.c:2534 __ast_read: DTMF begin ignored '1' on SIP/trunk1
[Mar 18 09:32:16] DTMF14178: channel.c:2449 __ast_read: DTMF end '1' received on SIP/trunk1, duration 250 ms
[Mar 18 09:32:16] DTMF14178: channel.c:2515 __ast_read: DTMF end passthrough '1' on SIP/trunk1
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'vm-goodbye' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- AGI Script agi-VDAD_ALL_inbound.agi completed, returning 0
+Case B: When Vicidial is connected SIP trunk to ISP. customers call to xxx,and press 2, establish successfully.But agents aren't available. They cant't hear busy_agent file, just hear music on hold until timout. This is log:
Executing [8@Maint:1] AGI in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=1) (sample_offset 0)
-- Playing 'busy_agent' (escape_digits=1) (sample_offset 0)
-- Started music on hold, class 'default', on SIP/sip-trunkISP
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
Manager 'sendcron' logged on from 127.0.0.1
Manager 'sendcron' logged off from 127.0.0.1
-- Stopped music on hold on SIP/sip-trunkISP
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
-- Playing 'sip-silence' (escape_digits=1) (sample_offset 0)
-- Playing 'busy_agent' (escape_digits=1) (sample_offset 0)
-- Started music on hold, class 'default', on SIP/sip-trunkISP == Refreshing DNS lookups.
-- AGI Script agi-VDAD_ALL_inbound.agi completed, returning 0
As you see, with only inbound-group Sales, but two scripts are different completely. Case A is ok. But Case B, script plays busy_agent two times. But I can't hear this sound
I wonder what diffrent bewteen two connections : Vicidial_ISP and Vicidial_VOIPGateway_COLine
Please help me. Thanks in advance.