Call forwarding only for incoming external calls

I would like unanswered incoming calls from outside to be forwarded to a queue, it’s possible?

I have currently set a custom destination “from-did-direct,${FROM_DID:-3},1”, as suggested by @lgaetz in …default-inbound-route-to-matching-extensions/57539/13

I set up a “return” in the custom destination but it does not work, probably because the from-did-direct context doesn’t end with return()

Thank you in advance


Using a custom dest with that particular context will never reach the return destination. It may help if you describe your goal in more detail.

Thanks for the reply.

I would like to make sure that when a call comes from outside (from-pstn) if the user does not answer it is diverted to a queue.

I could do a custom context like this:

from-pstn-custom, $ {FROM_DID: -3}, 1

exten => _XXX, 1, Dial (SIP / $ {EXTEN}, 20,)
exten => _XXX, n, Goto (s - $ {DIALSTATUS}, 1)

exten => s-NOANSWER, 1, Queue (200)
exten => s-BUSY, 1, Busy
exten => s-CHANUNAVAIL, 1, Hangup
exten => s-CONGESTION, 1, Congestion

but so I lose all the features of freepbx, for example the management of call transfer via * 72.

I’d like to have a 100% GUI solution

thank you

Inbound call -> Ring Group -> Queue

Your ring group will just be a single extension.

thanks, great idea

I created a 97201 group with the 201 extension inside

but when the call went to the custom destination “from-did-direct, $ {FROM_DID: -3}, 1” gave me this error

sent to invalid extension but no invalid handler: context, exten, priority = from-did-direct, 97201.1

to keep the custom destination and not make an inbound route for each extension, I modified it like this:

“from-internal, $ {FROM_DID: -3}, 1”

do you think it’s correct?

thank you


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.