<div dir="ltr">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.<div>
<br></div><div>If I turn on sip trace in sofia here's what I see:</div><div><br></div><div><div><div> ------------------------------------------------------------------------</div><div>recv 517 bytes from udp/[xxxxx]:56692 at 11:56:34.486792:</div>
<div> ------------------------------------------------------------------------</div><div> MESSAGE sip:33979085@xxxxx SIP/2.0</div><div> Via: SIP/2.0/UDP xxx:56692;rport;branch=z9hG4bK1213589041</div><div> From: <sip:1009@xxxxx>;tag=133921508</div>
<div> To: <sip:33979085@xxxxx></div><div> Call-ID: 908346813</div><div> CSeq: 20 MESSAGE</div><div> Content-Type: message/external-body; access-type=URL; URL="<a href="https://xxxxxxx/51ff92f903de3_6b94294d169daab4785f.jpg">https://xxxxxxx/51ff92f903de3_6b94294d169daab4785f.jpg</a>"</div>
<div> Max-Forwards: 70</div><div> Date: Mon Aug 5 13:56:01 2013</div><div> Content-Length: 0</div></div><div><br></div><div><br></div><div>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 :</div>
<div><br></div><div><div> ------------------------------------------------------------------------</div><div>send 1281 bytes to udp/[xxxx]:1024 at 11:56:34.489567:</div><div> ------------------------------------------------------------------------</div>
<div> MESSAGE sip:33979085@xxxxx:1024 SIP/2.0</div><div> Via: SIP/2.0/UDP xxxxx;rport;branch=z9hG4bKN90r1v1yvyt2j</div><div> Route: <sip:33979085@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</div>
<div> Max-Forwards: 70</div><div> From: <sip:1009@vxxxxx>;tag=133921508</div><div> To: <sip:33979085@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</div>
<div> Call-ID: 55302023-3114-432b-8b90-30a5d7e66706</div><div> CSeq: 47515157 MESSAGE</div><div> Contact: <sip:xxxxx></div><div> User-Agent: FreeSWITCH-mod_sofia/1.5.5b+git~20130729T215516Z~511efc5cf0</div><div>
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE</div><div> Supported: timer, precondition, path, replaces</div><div> Content-Type: message/external-body</div>
<div> Content-Length: 0</div><div> X-FS-Sending-Message: 9dd08617-6b31-47dd-8f6f-ff46abf521b6</div><div><br></div></div><div><br></div><div>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? </div>
<div><br></div><div>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.</div><div><br></div><div>Any ideas ?</div><div><br></div><div>Thanks in adavnce</div>
<div><br></div><div>- J</div><div><div><div><br></div></div></div></div></div>