Hello guys,
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.
My idea:
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:
v=0
o=- 3791258676 3791258678 IN IP4 172.30.255.8
s=pjmedia
b=AS:352
t=0 0
a=X-nat:0
m=audio 4088 RTP/AVP 0 8 96
c=IN IP4 172.30.255.8
b=TIAS:64000
a=rtcp:4089 IN IP4 172.30.255.8
a=sendrecv
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-16
m=video 4090 RTP/AVP 97
c=IN IP4 172.30.255.8
b=TIAS:256000
a=rtcp:4091 IN IP4 172.30.255.8
a=sendrecv
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42e01e; packetization-mode=1
FPBX sends an invite to my phone containing this:
v=0
o=- 677014478 677014478 IN IP4 172.30.1.9
s=Asterisk
c=IN IP4 172.30.1.9
t=0 0
m=audio 14138 RTP/AVP 8 0 9 111 3 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:9 G722/8000
a=rtpmap:111 G726-32/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
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!