I have a sip trunk established between two FreePBX systems.
I have it working just fine.
Is it possible to somehow tie this to a BLF /BLF subscription?
I just want to see if I can make a BLF button on a phone “light up” when the SIP trunk has
call activity on it.
This is just for fun and coolness.
I do not expect and am not worried about any kind of functionality if the button is pressed.
Or what happens if it is pressed.
Just want to know if I can somehow use BLF to see when the trunk is in any kind of call use.
I’m not trying to emulate key system or anything crazy.
Might be considered crazy anyway.
I could really use a hand with this..
I think you have to somehow create a hint but I’m not sure where or how.
And I do not know how to associate the hint to the SIP trunk and how to monitor activity on it.
Thumbed through a lot of posts many just get dropped and never answered.
I’ll keep trying.
This is an interesting idea and I could personally benefit from it for no other reason than seeing the benefit of glancing at my phone occasionally and knowing all is well with the world. I will have a play with this when I get time. I also have 6 BLF keys free on my P330 currently, so why not. K
Yep, looking for clues on how to do this.
I think it involves somehow creating custom “hints” in a custom dialplan.
I’ve never worked with this kind of thing in FreeFBX yet and not sure how.
I’m also not sure how to link hints to a trunk or other things that are just not available in the UI.
Same goes for other things I have asked how to do that seems nobody really know exactly how to do them. Not very easy but worthwhile to do if I knew how.
Such as using Polycom Phone Intercom mode outside of FreePBx’s *80 feature code.
And be able to sent Proper Alert-Info headers end to end by using the built in Intercom feature in the phones.
FreePBX strips these headers and inserts it’s own “standard” headers..
No easy way to pass this stuff through..
I think it would require a custom dialplan to run it through header re-writing on these types of calls.
I’m a bit lost in how to do this.
Thanks!!!
Silly AI said to try this and holy cow, it actually worked!!
I totally do not get why it says to put an “*” in front of the number.
I’m also going to try it without the asterisk.. Meaning “ * ”
-Steve
* Identify Trunk Name: Go to Connectivity > Trunks and note the exact name of your SIP trunk (e.g., my-sip-trunk).
Edit Custom Extensions: Open /etc/asterisk/extensions_custom.conf and add the following context to create the hint:
text
[from-internal-custom]
exten => *999,hint,PJSIP/my-sip-trunk ; For PJSIP
; OR
exten => *999,hint,SIP/my-sip-trunk ; For Chan_SIP
Furthermore it works exactly like I wanted!!
Lights up RED when there is any active call on it.
I half expected it to only light when the trunk was registered..
Which would have been a start, but it’s working exactly how I’d like it to.
It’s also doing flashing green when ringing..
How cool is that?
==Polycom phone==
Way more than I expected.
That I got it to do anything at all is more than I expected.
Still wondering what it might do if the trunk is unregistered/not connected.. but am pretty happy with this as it is.
I’d rather have it doing what it’s doing versus only showing if the trunk is registered or not with the far end. This is just a “private” trunk that connects two PBX system together.
Pretty cool what we have here.
-Steve
Outbound registration is not a factor on the status of a hint and the subsequent subscription. It’s based around the state of the endpoint in the case of PJSIP. That is: Is it reachable, does it have a call up, is it ringing.
Wow. This is pretty awesome from a maintenance standpoint too. If we have to restart the system for any reason we can instantly see if there are any active calls at all and not have to go look at reports and stuff.
Would something like this work with getting an inbound call, activating a ringer or light flasher module in a warehouse while the IVR is still playing the menu and navigation ? This way if you have to shut down loud equipment and run across the building to answer a phone, the BLF could possibly alert us to an incoming call that is still “in progress” but the phone extension has not started ringing yet.
There’s probably more elegant way to do this than I would do, like output a signal to some kind of GPIO on the server that could power about anything..
I can do this quick and dirty by simply wiring the signal from the BLF led out to a driver circuit to make “something big and visible” out on the floor light up & flash along with the BLF LED on the phone.
Could also tie it to one of those big loud “breaktime” shop buzzers with a switch so you can turn it off when not needed.
That crap I know how to do all day long.
I’d be a bit mote valuable if I were better with software and knew how to write/throw something together to tie into software to get status items like that and talk to other stuff easily.