No of rings before get connected to IVR prompt


#1

hi,

Asterisk was installed on fedora a long back auio codes viop gate way and 8 channel digium card also connected and installed. every thing was fine, but mistake was when any one calls my number it rings around 10 times then "welcome to mycompany"voice wishes, can any one tel me where to reduce or increase no of rings before some one gets connected to IVR and listen the voice.

thank you very much in advance.

Please also give me any link that tel s how to build own ivr from scratch, it’s very important for me. thank you.


#2

Although there may be some delay in dahdi, this sounds like an issue with the dialplan. Asterisk doesn’t come with a dialplan, so you need to contact whoever provided the dialplan, or quote the relevant parts, here.


#3

Without seeing dial plan code(extensions.conf) or config files(zap/dahdi/sip) it is difficult to provide a good answer. If the delay exists on the PSTN trunks and sip trunks, I would first start looking in the dial plan for the IVR, there may be a wait() call in there before the answer.

As to learning to write an IVR, or any dial plan code, I would recommend the ‘Asterisk: The definitive Guide’. It is available in both dead tree and electric versions.


#4

thanks for your reply, k i can see all the .conf files you mentioned above. but to check dial plan what should i do.

thank you.


#5

Preferred option: read Asterisk: The Future of Telephony, or its successor, and extension.conf.sample, and understand how dialplans work.

Alternative: post the complete files here.

We cannot guess what the person that wrote your dialplan actually wrote.

(If it is a GUI, seeking support from a support channel for the GUI may avoid posting large amounts of code that no-one will have time to plough through.)


#6

david55 does has a point, if you have no experience with dial plan, you really should spend some time with the books.

If you are using a web base GUI and that is where the IVR is defined, it may be very easy to do with the GUI and very difficult to do with the config files. If you are not using a web GUI, perhaps these tips may help get you going.

In you zap or dahdi config files, look for a line that starts with ‘context =’. There may be several of them, you are interested in the one prior to a ‘channels =>’ line. That context defines where the inbound call starts processing in the extensions.conf file.

In extensions.conf, there may be lines that start with ‘#include’, this indicates another file that is read in as part of the extensions.conf, so there may be some searching that needs to be done.

Look for the context(s) you found above. they will the name you found enclosed in [ and ] (example: context=ivr — [ivr])
After that context label are extensions, starting with the text ‘exten =>’ , look for ‘exten => s,1,…’, that is where the inbound call will most likely start processing. From that point down, it is simply a script in a specific language. You are looking for any line that says something like… ‘wait(10)’.

Please understand, this is a really rough tutorial and making changes could be a dangerous thing of you do not know what you are doing. Make sure you make backups of any file you change.