I had a request to create an extension a user could call that they would be able to dial, hang up, and then have PBX would dial them back at their extension so they could answer with their bluetooth headset to use for the call. Final destination # could be either entered after dialling the extension, or after the PBX calls them back, haven’t gotten too far with it.
So far in my extensions_custom.conf this is what I have and where I am stuck (which leads me to believe I am approaching this problem wrong).
[bluetooth-headset]
exten => s,1,NoOp(Bluetooth Headset Initiaed From: ${CALLERID(num)} )
exten => s,n,Set(CHANNEL(hangup_handler_push)=bluetooth-headset-callback,s,1)
exten => s,n,Set(TIMEOUT(absolute)=1800)
exten => s,n,Background(silence/1)
exten => s,n,WaitExten(12)
exten => s,n,Goto(s,4)
[bluetooth-headset-callback]
exten => s,1,NoOp(Bluetooth callback from: ${CALLERID(num)})
exten => s,n,Dial(local/${CALLERID(num)}@from-internal)
exten => s,n,Return
When I try calling the extension linked to bluetooth-headset,s,1, and hang up, I do see both NoOps, and the following:
2604 [2020-12-01 10:46:01] VERBOSE[23740][C-000001a3] app_dial.c: Caller hung up before dial.
Which makes sense, I hung up, and this is where I am stuck, how to get PBX to call someone back after a hang up (and also not create an endless loop of callbacks).
I seem to be looking at the wrong documentation, so if anyone can point me to the right stuff, it would be appreciated.
Ty,