Problem with BLF - Hint

Hi to everyone, thnxs for reading
I’ve a trunk with multiple channels, and I want to see in a BLF, which DID was called. Is it possible?
With hint, I don’t found the way to identify the DID. I can only make reference to the entire trunk.
I imagine that there is a way, and I can’t find it

My particular problem is with FlyNumber, but I imagine that apply to all the trunk’s config

Thnxs to everybody
Regards

You could probably fudge this with customdevice states.

In you inbound context look up the called number and manipulate a hint based on what number is called.

You’ll likely need to use a hangup handler to reset the light to not inuse when calls hang up.

1 Like

Excellent!
Thanks a lot
The clue was the hangup handler, I didn’t know it

For somebody who is interested
When you answer the call

exten => xxxxx,n,Set(DEVICE_STATE(Custom:BLFing)=INUSE)
exten => xxxxx,n,Set(CHANNEL(hangup_handler_push)=test-ing,s,1(args));

[test-ing]
exten => s,1,NoOp(apagando lampara INGLATERRA)
exten => s,2,Set(DEVICE_STATE(Custom:BLFing)=NOT_INUSE)
same => n,Return()

and you need a hint

exten => 8001,hint,Custom:BLFing

Regards

1 Like