Hello All,
I hope you are doing fine.
Im using ViciBox 7.0.3
I am stuck with something, actually this i dont understand properly.
I want to create a custom Dial plan, I have a SIP trunk and use only inbound.
At the moment when a call arrives, the caller just hears a silence and a generic_hold message, no ringing no answer etc.
Following is what I actually require.
1. caller hears a ringing
2. After 1 second wait,
3. then the call answers
4. Sends the call to inbound group
5. while the agent is receives the call, the caller again hears a ringing sound.
6. call is received by the agent
This is what I have written as my proposed dialplan (have not implemented it).
exten => _x,1,Ringing
exten => _x,2,Wait(1)
exten => _x,3,Answer
exten => _x,4,AGI(agi://127.0.0.1:4577/call_log)
exten => _x,5,Dial(SIP/${EXTEN:11}@VT,,tTo)
exten => _x,6,WaitExten(2)
exten => _x,7,Hangup
------
Following is my current output of asterisk.
== Using SIP RTP CoS mark 5
-- Executing [xxxxx@trunkinbound:1] AGI("SIP/VT-00000015", "agi-DID_route.agi") in new stack
-- Launched AGI Script /usr/share/asterisk/agi-bin/agi-DID_route.agi
-- AGI Script Executing Application: (Monitor) Options: (wav,/var/spool/asterisk/monitor/MIX/20160901192937_04232500810_03459668505)
-- <SIP/VT-00000015>AGI Script agi-DID_route.agi completed, returning 0
-- Executing [99909*2***DID@default:1] Answer("SIP/VT-00000015", "") in new stack
> 0x7fc9a4028a60 -- Probation passed - setting RTP source address to 10.11.11.120:12158
-- Executing [99909*2***DID@default:2] AGI("SIP/VT-00000015", "agi-VDAD_ALL_inbound.agi") in new stack
-- Launched AGI Script /usr/share/asterisk/agi-bin/agi-VDAD_ALL_inbound.agi
-- <SIP/VT-00000015> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')
-- <SIP/VT-00000015> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')
-- Started music on hold, class 'default', on SIP/VT-00000015
-- Stopped music on hold on SIP/VT-00000015
-- <SIP/VT-00000015> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')
-- <SIP/VT-00000015> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')
-- <SIP/VT-00000015> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')
-- <SIP/VT-00000015> Playing 'generic_hold.gsm' (escape_digits=) (sample_offset 0) (language 'en')
-- Started music on hold, class 'default', on SIP/VT-00000015
-- Stopped music on hold on SIP/VT-00000015
-- <SIP/VT-00000015>AGI Script agi-VDAD_ALL_inbound.agi completed, returning 4
== Spawn extension (default, 99909*2***DID, 2) exited non-zero on 'SIP/VT-00000015'
-- Executing [h@default:1] AGI("SIP/VT-00000015", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
-- <SIP/VT-00000015>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
As you can see from the above, it plays sip_silence and generic hold, which is sort of OK if i can replace these files with my own audio files, but i dont know how to replace/change them.
Can anyone please help ?
regards