IP-Doorbell Asterisk show Picture before accept call

Hello, since some days i am trying to setup my Asterisk Server on an Debian machine for my IP-VideoDoorbell Dahua VTO2000. As Clients i am using only Android SIP Clients (Linphone).
I have fixed to work almost everything except the possibility, to show me a Picture in my SIP Client before i accept the Call from my door.
With the following command i managed to take a picture when someone ring the door.

exten => _9901,n,TrySystem(ffmpeg -i 'rtsp://admin:xxx@192.168.178.180' -f image2 -vframes 1 -pix_fmt yuvj420p /tmp/snapshot1.jpg -y)

But how can i attach the taken picture to the call to my Linphone Client?
Also before i accept the Call from the door, i would like to see who is at the door.
I hope you guys can help me.
Thank you in advance!

Sorry for my bad english.

my /etc/asterisk/extensions.conf

[ausgehend]

exten => _9901,1,Set(CALLERID(name)=VTO2000A)
exten => _9901,n,TrySystem(ffmpeg -i 'rtsp://admin:xxx@192.168.178.180' -f image2 -vframes 1 -pix_fmt yuvj420p /tmp/snapshot1.jpg -y)
exten => _9901,n,Dial(Local/alle@tfe-zuhause,50,w)
exten => _8001,1,Dial(SIP/8001,50,w)

[default]
include => ausgehend

[tfe-zuhause]
exten =>  alle,1,Ringing()
exten =>  alle,n,Dial(SIP/801&SIP/802&SIP/803,50,w)

It is like some kind of early media but instead of playing audio displaying a picture. I dont think you can transfer a picture if the SIP session has not been established previously. You could transfer the picture outside SIP session, and open it in separate software and after that decide if answer or not the call

1 Like

I am using a different door bell and have solved this differently. Instead of playing too much with the Asterisk config, I am using vlc to see what’s going on whenever I want to.

1 Like

Playing with same device since a while on an asterisk 16.2.1 (chan_sip).
In fact, the device is able to send early media when requested by the destination with “101 Dialog Establishment”. My problem, asterisk does not forward the messages to VTO2000A:


Any idea what setting would effect this? Would moving to PJSIP probably improve behaviour?

1 Like

@ambiorixg12
I also thinked about that. That would be the alternative, to send an push to my Telegram Account.
But i thinked maybe it could be possible to see the picture directly in my SIP Client.

@riogrande75
It would be very nice, if you will find an solution for this :slight_smile:
Unfortunately i am a noob in such things :confused:

After reconfig of the devices, asterisk receives “180 Ringing/SDP” from destination and sends correctly “183 Session Progress/SDP” to the doorphone. This leads to early media (acc. RFC3960) and video stream get’s shown on indoor display.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.