<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">There is currently no plumbing in the stack for sending multipart while using the stack sdp/soa engine like we do. This will require patches down in sofia sip stack to allow a new tag to add other multipart bodies, that then builds out the multipart body in the stack after we have the sdp from soa, then plumbing up into mod_sofia to take advantage of that. The parts will be down in the nua layer where it interacts with soa.<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jan 28, 2019, at 7:14 AM, Akshay Patil <<a href="mailto:ahvpatil@gmail.com" class="">ahvpatil@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><span style="color:rgb(33,33,33);font-size:13px" class="">Hi All,</span><div style="color:rgb(33,33,33);font-size:13px" class=""><br class=""></div><div style="color:rgb(33,33,33);font-size:13px" class="">I am currently trying to develop a new module in freeswitch which requires SIP interaction.</div><div style="color:rgb(33,33,33);font-size:13px" class="">In this new mod, the primary decision making will be based on the multipart text received in the SIP INVITE message.</div><div style="color:rgb(33,33,33);font-size:13px" class="">So far, I am able to do the following:</div><div style="color:rgb(33,33,33);font-size:13px" class="">1. upon receiving SIP INVITE, separate the received multipart text</div><div style="color:rgb(33,33,33);font-size:13px" class="">2. do the required processing and take a decision based on this </div><div style="color:rgb(33,33,33);font-size:13px" class=""><br class=""></div><div style="color:rgb(33,33,33);font-size:13px" class="">Now I want to generate a new SIP INVITE (to a different user) having a similar structure (i.e. sending out a new text message to the user along with new parameters in SDP).</div><div style="color:rgb(33,33,33);font-size:13px" class=""><br class=""></div><div style="color:rgb(33,33,33);font-size:13px" class="">I was able to generate a SIP INVITE with help of switch_ivr_originate().</div><div style="color:rgb(33,33,33);font-size:13px" class="">I was also able to add the required Multipart Text part in the INVITE.</div><div style="color:rgb(33,33,33);font-size:13px" class=""><br class=""></div><div style="color:rgb(33,33,33);font-size:13px" class="">However, I am not sure how to proceed with adding new SDP part....</div><div style="color:rgb(33,33,33);font-size:13px" class="">(In below sample message, I was able to generate everything in Green but nothing in RED)<br class=""></div><div style="color:rgb(33,33,33);font-size:13px" class=""><br class=""></div><div style="color:rgb(33,33,33);font-size:13px" class="">So my question is this, where should I make changes to add to SDP.</div><div style="color:rgb(33,33,33);font-size:13px" class=""><br class=""></div><div style="font-size:13px" class=""><div style="color:rgb(33,33,33)" class="">Any help is appreciated<br class=""></div><div style="color:rgb(33,33,33)" class=""><br class=""></div><div style="color:rgb(33,33,33)" class="">Thanks</div><div style="color:rgb(33,33,33)" class="">Akshay Patil</div><div style="color:rgb(33,33,33)" class=""><br class=""></div><div style="color:rgb(33,33,33)" class="">P.S.:</div><div class=""><div class=""><font color="#38761d" class=""> --azdjBtlKrjBegB325WctViTwT8ZOCf9p</font></div><div class=""><font color="#38761d" class=""> Content-Type: application/sdp</font></div><div class=""><font color="#38761d" class=""> Content-Length: 407</font></div><div class=""><font color="#38761d" class=""> ...</font></div></div><div class=""><div class=""><font color="#ff0000" class="">a=fmtp:96 0-16</font></div><div class=""><font color="#ff0000" class=""> m=application 4121 UDP MCPTT</font></div><div class=""><font color="#ff0000" class=""> c=IN IP4 172.23.33.63</font></div><div class=""><font color="#ff0000" class=""> a=fmtp:MCPTT mc_queueing;mc_priority=5;mc_granted;mc_implicit_request</font></div><div class=""><font color="#ff0000" class=""> a=sendrecv</font></div></div><div class=""><font color="#38761d" class=""><br class=""></font></div><div class=""><div class=""><font color="#38761d" class=""> --azdjBtlKrjBegB325WctViTwT8ZOCf9p</font></div><div class=""><font color="#38761d" class=""> Content-Type: application/vnd.3gpp.mcptt-info+xml</font></div><div class=""><font color="#38761d" class=""> Content-Length: 513</font></div><div class=""><font color="#38761d" class=""> </font></div><div class=""><font color="#38761d" class=""> <?xml version="1.0" encoding="UTF-8"?></font></div><div class=""><font color="#38761d" class=""> <mcpttinfo xmlns="urn:3gpp:ns:mcpttInfo:1.0" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" class="">http://www.w3.org/2001/XMLSchema-instance</a>"></font></div></div><div class=""><font color="#38761d" class="">...</font></div><div class=""><font color="#38761d" class=""> --azdjBtlKrjBegB325WctViTwT8ZOCf9p--</font><br class=""></div></div></div>
_________________________________________________________________________<br class="">Professional FreeSWITCH Services<br class=""><a href="mailto:sales@freeswitch.com" class="">sales@freeswitch.com</a><br class="">https://freeswitch.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">https://freeswitch.com/oss<br class="">https://freeswitch.org/confluence<br class="">https://cluecon.com<br class=""><br class="">FreeSWITCH-dev mailing list<br class="">FreeSWITCH-dev@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev<br class="">https://freeswitch.com</div></blockquote></div><br class=""></body></html>