Send extra custom info (image data) on call to show in target endpoint
Hi, I'm looking for a way to be able to pass extra information (one image data for example) in a call. The purpose is to be able to display a preview image of the caller on the target device (mobile) so that they can see it before taking or rejecting the call. Currently, I have the image saved and send it using a push notification when the call occurs but I would like to skip that step and send it over SIP. In this way, you could send the image on the fly without having to store it on the server. For this, I need to know if there is the possibility of sending the image as data using the SIP protocol, in the SIP INVITE header or using an additional method so that the target endpoint (mobile) can see the image before to take the call. Any ideas on how to do it? José David Jurado Alonso
SIP messages (requests and replies) can have bodies. those bodies are composed exactly like in smtp (mail) so, they can be multipart, and contains any kind of stuff check MIME, multipart I do not think FreeSWITCH can compose multipart bodies, but you sure can do it easily with a proxy (or maybe a FreeSWITCH lua script that builds the body, then send that body, perhaps via ESL?) for proxies, check OpenSIPS and Kamailio, they have excellent body manipulation capabilities -giovanni On Fri, Mar 13, 2020 at 1:07 PM Jose David Jurado Alonso < josedavid@zennio.com> wrote:
Hi,
I'm looking for a way to be able to pass extra information (one image data for example) in a call.
The purpose is to be able to display a preview image of the caller on the target device (mobile) so that they can see it before taking or rejecting the call.
Currently, I have the image saved and send it using a push notification when the call occurs but I would like to skip that step and send it over SIP. In this way, you could send the image on the fly without having to store it on the server.
For this, I need to know if there is the possibility of sending the image as data using the SIP protocol, in the SIP INVITE header or using an additional method so that the target endpoint (mobile) can see the image before to take the call.
Any ideas on how to do it?
José David Jurado Alonso _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Sincerely, Giovanni Maruzzelli OpenTelecom.IT cell: +39 347 266 56 18
I’m not sure if it’s doable; but maybe you can enconde the image and send it in a header On Fri, 13 Mar 2020 at 12:10, Jose David Jurado Alonso <josedavid@zennio.com> wrote:
Hi,
I'm looking for a way to be able to pass extra information (one image data for example) in a call.
The purpose is to be able to display a preview image of the caller on the target device (mobile) so that they can see it before taking or rejecting the call.
Currently, I have the image saved and send it using a push notification when the call occurs but I would like to skip that step and send it over SIP. In this way, you could send the image on the fly without having to store it on the server.
For this, I need to know if there is the possibility of sending the image as data using the SIP protocol, in the SIP INVITE header or using an additional method so that the target endpoint (mobile) can see the image before to take the call.
Any ideas on how to do it?
José David Jurado Alonso _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Fri, Mar 13, 2020 at 2:06 PM David Villasmil < david.villasmil.work@gmail.com> wrote:
I’m not sure if it’s doable; but maybe you can enconde the image and send it in a header
mmmh, I believe the length limit on headers is pretty restrictive...
You can send image uri as a custom sip header <action application="set" data="sip_h_X-DisplayPicture= http://cdn.example.com/image.jpg"/> On Fri, Mar 13, 2020 at 5:05 PM Jose David Jurado Alonso < josedavid@zennio.com> wrote:
Hi,
I'm looking for a way to be able to pass extra information (one image data for example) in a call.
The purpose is to be able to display a preview image of the caller on the target device (mobile) so that they can see it before taking or rejecting the call.
Currently, I have the image saved and send it using a push notification when the call occurs but I would like to skip that step and send it over SIP. In this way, you could send the image on the fly without having to store it on the server.
For this, I need to know if there is the possibility of sending the image as data using the SIP protocol, in the SIP INVITE header or using an additional method so that the target endpoint (mobile) can see the image before to take the call.
Any ideas on how to do it?
José David Jurado Alonso _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
Hi, Thanks for the answers. In principle sending the URI of the image does not help me much as it is similar to the system I currently have (although I could avoid the push notification). The idea is to try to send all the content of the image in the SIP message and thus avoid its storage on disk. I am going to investigate how to do it through the body of the SIP message since by size I assume that it will not be able to be sent in the header. Any other idea or example of how to do it is welcome. José David Jurado Alonso El lun., 16 mar. 2020 a las 10:53, Ghulam Mustafa (<mustafa.pk@gmail.com>) escribió:
You can send image uri as a custom sip header
<action application="set" data="sip_h_X-DisplayPicture= http://cdn.example.com/image.jpg"/>
On Fri, Mar 13, 2020 at 5:05 PM Jose David Jurado Alonso < josedavid@zennio.com> wrote:
Hi,
I'm looking for a way to be able to pass extra information (one image data for example) in a call.
The purpose is to be able to display a preview image of the caller on the target device (mobile) so that they can see it before taking or rejecting the call.
Currently, I have the image saved and send it using a push notification when the call occurs but I would like to skip that step and send it over SIP. In this way, you could send the image on the fly without having to store it on the server.
For this, I need to know if there is the possibility of sending the image as data using the SIP protocol, in the SIP INVITE header or using an additional method so that the target endpoint (mobile) can see the image before to take the call.
Any ideas on how to do it?
José David Jurado Alonso _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
participants (4)
-
David Villasmil
-
Ghulam Mustafa
-
Giovanni Maruzzelli
-
Jose David Jurado Alonso