I am - by no means - an expert on FreePBX. Except for asking once in here, I’ve managed to get a setup working with a SIP trunk, a SIP-GSM gateway and some more stuff. Please bear with me.
New challenge though: I’m trying to integrate a door phone device which interfaces with a proprietary device bus (TwinBus, the device is a Ritto Door Wiser Gateway from Schneider Electric specifically). It comes with an abysmal app but also allows for one SIP endpoint. It seems to run Yate on the device for SIP stuff.
Add this thing as a trunk in FreePBX. When it rings, put it in a ring group and have someone pick up (and possibly open the door).
This basically works, but basic is the word to underline here:
1.) The call comes in to DID “s”. Okay. Since the CID is unique (enough, i.e. 9999), I’m using this for now as an identifier for an inbound route.
2.) Audio only works one way. I can hear the caller but not the other way around. Sometimes, it works intermittently though. Very strange. That might be a phone problem though (Grandstream GXV 3380). If I’m interpreting the SIP messages correctly, it only supports PCMU and PCMA. Sometimes (it’s really random, at least for my limited understanding) the phone showed G722 as the working codec and I still heard audio (see below). I have limited the trunk now to alaw and ulaw but that didn’t help. Not much too go on here
3.) Video doesn’t work and probably FreePBXs fault (well, more like my configuration of it). When I connect the phone directly to the gateway with the account I’m using on the trunk it works. Internal video calls with FreePBX work too.
What I can see with sngrep is:
Gate sending an invite to FPBX:
o=- 3791258676 3791258678 IN IP4 172.30.255.8
m=audio 4088 RTP/AVP 0 8 96
c=IN IP4 172.30.255.8
a=rtcp:4089 IN IP4 172.30.255.8
m=video 4090 RTP/AVP 97
c=IN IP4 172.30.255.8
a=rtcp:4091 IN IP4 172.30.255.8
a=fmtp:97 profile-level-id=42e01e; packetization-mode=1
FPBX sends an invite to my phone containing this:
o=- 677014478 677014478 IN IP4 172.30.1.9
c=IN IP4 172.30.1.9
m=audio 14138 RTP/AVP 8 0 9 111 3 101
No video here, right?
What is also strange is the additional codecs offered there? Is this because FPBX does a conversion in the middle?
Thanks for any input!