[Freeswitch-users] message/external-body as content type in SIMPLE message

James Lotery jlotery at gmail.com
Mon Aug 5 16:04:57 MSD 2013


Hello, I'm using mod_sms in freeswitch for sending messages between
registered users. One thing I'm trying to get working is sharing of images
using SIP SIMPLE by setting the content-type to message/external-body (see
below). However it looks like any parameters after message/external-body
are being filtered out between hitting FS and reaching mod_sms.

If I turn on sip trace in sofia here's what I see:

  ------------------------------------------------------------------------
recv 517 bytes from udp/[xxxxx]:56692 at 11:56:34.486792:
   ------------------------------------------------------------------------
   MESSAGE sip:33979085 at xxxxx SIP/2.0
   Via: SIP/2.0/UDP xxx:56692;rport;branch=z9hG4bK1213589041
   From: <sip:1009 at xxxxx>;tag=133921508
   To: <sip:33979085 at xxxxx>
   Call-ID: 908346813
   CSeq: 20 MESSAGE
   Content-Type: message/external-body; access-type=URL; URL="
https://xxxxxxx/51ff92f903de3_6b94294d169daab4785f.jpg"
   Max-Forwards: 70
   Date: Mon Aug  5 13:56:01 2013
   Content-Length: 0


In this example all I do in my chatplan is execute a lua script that in
turn executes the send function of mod_sms without changing anything. Here
is what is sent from FS :

  ------------------------------------------------------------------------
send 1281 bytes to udp/[xxxx]:1024 at 11:56:34.489567:
   ------------------------------------------------------------------------
   MESSAGE sip:33979085 at xxxxx:1024 SIP/2.0
   Via: SIP/2.0/UDP xxxxx;rport;branch=z9hG4bKN90r1v1yvyt2j
   Route: <sip:33979085 at xxxxx
:1024>;app-id=622464153529;pn-type=google;pn-tok=APA91bH9NTVgzIyoSzaN7c4sf69gYMPd2acTQlLKEWt20_sX3acdti9EXBtpXfsHfi6RMwlq-zERhxwKmhu6pepI6rOCRZ6p5ZFC15Y-sgGyJ6HYRU93fi1SebSrsO8h679IOXSrxDTq;pn-msg-str=IM_MSG;pn-call-str=IC_MSG;pn-call-snd=ring.caf;pn-msg-snd=msg.caf;line=153ea365cc40ca1
   Max-Forwards: 70
   From: <sip:1009 at vxxxxx>;tag=133921508
   To: <sip:33979085 at xxxxx
:1024>;app-id=622464153529;pn-type=google;pn-tok=APA91bH9NTVgzIyoSzaN7c4sf69gYMPd2acTQlLKEWt20_sX3acdti9EXBtpXfsHfi6RMwlq-zERhxwKmhu6pepI6rOCRZ6p5ZFC15Y-sgGyJ6HYRU93fi1SebSrsO8h679IOXSrxDTq;pn-msg-str=IM_MSG;pn-call-str=IC_MSG;pn-call-snd=ring.caf;pn-msg-snd=msg.caf;line=153ea365cc40ca1
   Call-ID: 55302023-3114-432b-8b90-30a5d7e66706
   CSeq: 47515157 MESSAGE
   Contact: <sip:xxxxx>
   User-Agent: FreeSWITCH-mod_sofia/1.5.5b+git~20130729T215516Z~511efc5cf0
   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,
REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
   Supported: timer, precondition, path, replaces
   Content-Type: message/external-body
   Content-Length: 0
   X-FS-Sending-Message: 9dd08617-6b31-47dd-8f6f-ff46abf521b6


As you can see everything after message/extern-body has been removed in the
content type. What do I have to do so that this comes through to mod_sms
intact?

At which point passing through FS would this get filtered out? It is in the
SIP trace but not there when it gets to mod_sms it seems.

Any ideas ?

Thanks in adavnce

- J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130805/7d44c475/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list