Callback module flip call order!

Hello!

I have worked with the Callback module, but I need to flip the order of dialing so that the callback feature first calls the extension number, queue, and ring group then the caller

I have tried many custom dialplans with no hope.

Could you guide me?

Thank you in advance.

Regards,
Momen Amin

If the callback commercial module does not function that way you are wanting, you would need to submit a feature request to the vendor for a possible improvement:

How to open a feature request for Sangoma Phones - Phones - Documentation (freepbx.org)

Callback Module User Guide - PBX GUI - Documentation (freepbx.org)

If you want to do something immediately, a custom dialplan is likely what you would need. I found this on Google: How to create a Callback option (asteriskguru.com)

If you have a script you are working on currently, you can post it here and ask for specific feedback from the forum (where are you stuck, what is the experience, etc.).

If you are looking to have someone do the work for you, someone might, but there is also a JOBS section of the forum if you need specific help in a timelier manner.

1 Like

Thank you for your reply.

The Callback module is free, and I didn’t find a commercial version!
Are you sure about the commercial version?

Here are some of the dialplans I have tried.

[custom-callback]
exten => s,1,Answer()
exten => s,2,NoOp(Callback received for ${CALLERID(num)} to extension ${EXTEN})
exten => s,3,GotoIf($[${EXTEN} = 1234]?5:10)
exten => s,4,Playback(not-authorized)
exten => s,5,Dial(SIP/${EXTEN},20)
exten => s,6,VoiceMail(${EXTEN}@default,u)
exten => s,10,Hangup()
[default]
exten => _X.,1,Answer()
exten => _X.,2,NoOp(Processing callback for ${CALLERID(num)} to extension ${EXTEN})
exten => _X.,3,GotoIf($[${EXTEN} = 1234]?5:10)
exten => _X.,4,Dial(SIP/${EXTEN},20)
exten => _X.,5,NoOp(Prioritizing callback for extension 1234)
exten => _X.,6,Dial(SIP/${EXTEN},20)
exten => _X.,7,VoiceMail(${EXTEN}@default,u)
exten => _X.,10,Hangup()
[callback]
include => callback-custom
exten => 1,1,Set(CALL=${CALLERID(number)})
exten => 1,n,Set(DESTINATION=from-did-direct.911.1)
exten => 1,n,Set(SLEEP=2)
exten => 1,n,Set(TIMEOUT=15000)
exten => 1,n,GotoIf($[${CALL} = 1234]?5:10)
exten => 1,n,Set(CALLERID=Callback)
exten => 1,n,System(/var/lib/asterisk/bin/callback ${CALL} ${DESTINATION} ${SLEEP} ${TIMEOUT} ${BASE64_ENCODE(${CALLERID})} &)
exten => 1,n,Hangup()
exten => 1,5,NoOp(Prioritizing callback for extension 1234)
exten => 1,6,Dial(SIP/1234,20)
exten => 1,7,VoiceMail(1234@default,u)
exten => 1,10,Hangup()
[callback]
include => callback-custom
exten => 1,1,Set(CALL=${CALLERID(number)})
exten => 1,n,Set(DESTINATION=from-did-direct.911.1)
exten => 1,n,Set(SLEEP=2)
exten => 1,n,Set(TIMEOUT=15000)
exten => 1,n,GotoIf($[${CALL} = 1234]?priority_1234:priority_other)

; Priority for extension 1234
exten => priority_1234,1,NoOp(Prioritizing callback for extension 1234)
exten => priority_1234,n,Dial(SIP/1234,20)
exten => priority_1234,n,VoiceMail(1234@default,u)
exten => priority_1234,n,Hangup()

; Priority for other extensions
exten => priority_other,1,NoOp(Processing callback for other extensions)
exten => priority_other,n,System(/var/lib/asterisk/bin/callback ${CALL} ${DESTINATION} ${SLEEP} ${TIMEOUT} ${BASE64_ENCODE(${CALLERID})} &)
exten => priority_other,n,Hangup()

The FreePBX Queue Callback Module is part of the VQ Plus Commercial Module from Sangoma.

Queue Callback Module - PBX GUI - Documentation (freepbx.org)

What issues with the dial plans that you are implementing are you having an issue with? What happens?

Thanks for the information.

No one of them does what I mentioned.

I think I misinterpreted your request. You are talking about the callback module, yes? I assumed queue callback in error.

Callback Module User Guide - PBX GUI - Documentation (freepbx.org)

You will need to build in dial plan what you are asking to do. You can override the callback context by using /etc/asterisk/extensions_override.conf. That will make the callback use your custom dial plan instead. Then you just need to make your experience. This is a permanent override for all callback, so be careful if you choose to use it.

Here are some starting points for your dialplan:
Asterisk cmd Dial - VoIP-Info
Asterisk func dialgroup - VoIP-Info

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