I am trying to integrate a SIP endpoint that is not a standard phone but rather an interface that speaks with the door “bell”, purpose being (obviously) to see and speak with people at the front door.
The device (it’s a “Ritto Wiser Door Gateway”) allows to create (exactly) one SIP account for a phone to connect to it. If I configure my phone (a Grandstream GXV 3380) to connect to it directly, I get both audio and video.
To actually make use of the setup, I want to integrate this device with FreePBX. I need FPBX to connect to the account created on the device so I used a trunk setup.
My idea was now to have an inbound route to a ring group to be able to let someone in from multiple phones. Works, with audio only though. Same thing, if I use an inbound route that directly goes to only one extension.
From what I understand now, video is not allowed for calls coming in from a trunk (i.e. the “from-pstn” context). I used the config editor to add the following to pjsip_custom_post.conf:
(ritto-gw is, of course, the name of the trunk for the device)
This didn’t help. Video is also enabled in the general SIP settings: Video calls between the phones internally work perfectly fine.
The console tells me that video is allowed for the endpoint:
allow : (alaw|ulaw|h264|h263|h261|h263p)
SIP looks like this from the door device to FPBX:
v=0 o=- 3791703424 3791703427 IN IP4 172.30.255.8 s=pjmedia b=AS:352 t=0 0 a=X-nat:0 m=audio 4140 RTP/AVP 8 96 c=IN IP4 172.30.255.8 b=TIAS:64000 a=rtcp:4141 IN IP4 172.30.255.8 a=rtpmap:8 PCMA/8000 a=rtpmap:96 telephone-event/8000 a=fmtp:96 0-16 a=sendrecv m=video 4142 RTP/AVP 97 c=IN IP4 172.30.255.8 b=TIAS:256000 a=rtcp:4143 IN IP4 172.30.255.8 a=rtpmap:97 H264/90000 a=fmtp:97 profile-level-id=42e01e; packetization-mode=1 a=sendrecven
And then from FPBX to the phone like this:
v=0 o=- 1134391926 1134391926 IN IP4 172.30.1.9 s=Asterisk c=IN IP4 172.30.1.9 t=0 0 m=audio 16374 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
I did this with sngrep. If I interpret this correctly, the video gets “lost” on the way to my actual phone
I also have a SIP log taken from a packet capture when the phone is directly connected to the door device:
Sorry for the long post, that’s all I have and did to find the problem.
Full disclosure also: I already posted this a while ago as part of a post where I mixed a lot of different issues together. This is hopefully “untangles” this a bit. Thanks.