I am trying to learn how i can add call forwarding facility for few phones by default in Asterisk via conf files entries. My Asterisk version 1.6.2.6
I read voip-info.org/wiki/view/Aste … forwarding
In my scenario i have 3 entries like 10,11,12 which always answer the calls.
But i am trying to do call forwarding ie if 10 busy then call should go to 11, if 11 busy then call goes to 12,if 12 then call end with recorded tape that ‘all are busy’. For that i read above link data, as per my knowledge i have to change my dial plan. but in examples all showing first i should click # key & save it. but i need by default call forwarding. As if phone 50 calls 10 then if 10 not busy then it goes to 10 only. But if 51 calls 10 then it goes to 11 because 10 busy with 50. I am giving example of phone 10 entries in Asterisk conf files same for other also. My extension.conf entries:
Where & what i should add in above entries so call forwarding done by default in my Asterisk?
I need to call forwarding for only 00 entities of 10,11,12.
Please need help. I try, if succeed then i will post what i done.
You are using an obsolete version of Asterisk, and you are using the non-final version of that obsolete version, so you will have known security bugs.
The simple call forward busy/no answer sequence for SIP devices aaa, bbb and ccc called from extension 555, with a no answer timeout of 15 seconds at each stage, is:
exten => 555,1,Dial(SIP/aaa,15)
exten => 555,n,Dial(SIP/bbb,15)
exten => 555,n,DIal(SIP/ccc,15)
exten => 555,n,Answer() ; Playback should answer by default, but make it explicit
exten => 555,n,Playback(…)
You can test the values of DIALSTATUS and HANGUPCAUSE between each step, and use more complex logic to decide whether to continue, but that is the basic logic… This should all be fairly obvious if you have the minimum understanding of dialplans needed to use Asterisk effectively. There is at least one example of this (although slighlty more complicated, in the sample configuraton file which acts as the primary documentation.
Also, you have insecure=invite on your local device entries in sip.conf. That is very insecure and makes you very vulnerable to toll fraud.
As per my project there is needed very basic dial plan which use for basic demo.Currently no worry about hacking etc. I am the only user who use 5-6 phone for study in Own LAN & pc with no internet.
So i need to show very basic call forwarding functionality. For understanding how call should forward in Asterisk Your example is useful. But i need to call forward for entity 00 which not completely in extensions.conf some part in queues.conf
As compare my code with your example
i will try in extensions.conf:-
As per my understanding if some one try to call extension 10 then first it use 2nd line & establish call
If 10 busy then it use 3rd line where we write to connect 0011 after 15 sec. & same for 0012 in 4th line.
For playback etc i will write those line afterword when i understood this step by step!
Am i right in understanding?
Should i write some thing in queues.conf also?
You will need a timeout on the Queue application call. The whole point of queuse is to handle busy cases, so you obviously should only be interested in timeouts for the for Queue case.