Inbound Dial Plan Understanding/Changing

All installation and configuration problems and questions

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

Inbound Dial Plan Understanding/Changing

Postby safiullahtariq » Fri Sep 02, 2016 11:19 am

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
safiullahtariq
 
Posts: 8
Joined: Sun Aug 28, 2016 3:01 pm

Re: Inbound Dial Plan Understanding/Changing

Postby kumar2arbind » Mon Sep 05, 2016 3:54 am

hello safiullahtariq

you may use Admin-> Audio_store to upload or replace audio File


According to you, you 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

For this your custom dialplan is ok,but i don't undestand the requirement of line

exten => _x,5,Dial(SIP/${EXTEN:11}@VT,,tTo)
exten => _x,6,WaitExten(2)

and after answering the call, why you are getting

<SIP/VT-00000015> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')

which means something wrong in group configuration.

According to my understanding,their is one more way to do this. your dialplan will be somthing like

exten => _x,1,Ringing
exten => _x,2,Wait(1)
exten => _x,3,Answer
exten => _x,4,AGI(agi-DID_route.agi)
exten => _x,5,Hangup

now
1) create a did
2) create an inbound group
3)point did to inbound group
kumar2arbind
 
Posts: 27
Joined: Mon Aug 29, 2016 2:01 am

Re: Inbound Dial Plan Understanding/Changing

Postby safiullahtariq » Thu Sep 08, 2016 9:37 am

Thank you for your reply.

I studied many forum replies and I went on to make an IVR. So, in a way, my issue is solved without tinkering with the Dial plan. And the IVR works fine.

I have to admit. Vicidial is a wonderful creation. All hail to the makers/developers of this system.

And the free support is also awesome. I will be contacting the support in future if I require any help.

Best Regards to all,

Safiullah
safiullahtariq
 
Posts: 8
Joined: Sun Aug 28, 2016 3:01 pm

Re: Inbound Dial Plan Understanding/Changing

Postby williamconley » Sun Sep 11, 2016 2:59 pm

1) Vicibox 7.0.3 is good to know. However: You must post your Vicidial version with Build for support on this site. Note that Vicibox is the Installer, not the software and any version of this installer will install any version of ViciDIAL. Include the Vicidial Version With Build in all your posts to be clear what you are using.

2) I do not normally recommend editing the "stock" asterisk ".conf" files, so I will offer you two options:
* Modify extensions.conf's [trunkinbound] context and add your ",1,Ringing" and of course your 'wait 1 second' line to each of the available extens.
* Or use "context=trunkinbound2" as the context for your inbound sip connection and then put [trunkinbound2] and re-create the entire [trunkinbound] context without the comments but with these lines added. This version would be upgrade-proof and portable (helpful for backup/restore as well).

In both of these scenarios the MOH would be used for the ring while awaiting an agent, of course.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 68 guests