Upgrade 3CX to v18 and get it hosted free!

Asterisk tips call through

Author image

Asterisk call through

This is a simple call through example, after calling the system (extension 500), enter a phonenumber and the system dials it after pressing ‘#’. You can reenter the number after pressing ‘*’. After the “call through call” you can enter a new number, it is also possible to disconnect a call with ‘*’ and enter a new number. If the called party hangs up, you can even dial a new number, this is because of the g option in the Dial command.
To end it, just hang up.
The sound files are not optimal, but I think these are the best ones, which are availible in the standard distribution.

In extensions.conf:

exten => 500,1,Goto(callthrough,s,1)

[callthrough]
exten => s,1,Set(NR=)
exten => s,2,Background(privacy-prompt)
exten => s,3,ResponseTimeout(10)
exten => s,4,WaitExten

exten => _X,1,Set(NR=${NR}${EXTEN})
exten => _X,2,Goto(s,3)

exten => *,1,Goto(s,1)

exten => #,1,Dial(${TRUNK}/${NR},30,H|g)
exten => #,2,GotoIf($[${DIALSTATUS} = NOANSWER]?4)
exten => #,3,GotoIf($[${DIALSTATUS} = CONGESTION]?4:5)
exten => #,4,Playback(vm-nobodyavail)
exten => #,5,Goto(s,1)
exten => #,102,Playback(tt-allbusy)

exten => t,1,Playback(vm-goodbye)
exten => t,2,HangUp

 


Article Reviews

Write a Review

Your email address will not be published. Required fields are marked *

Required Field. Minimum 5 characters.

Required Field. Minimum 5 characters, maximum 50.

Required field.There is an error with this field.

Required Field.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

There are no reviews for this article. Be the first one to write a review.

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.