[Freeswitch-dev] Question regarding modification of SDP in INVITE generated by FreeSwitch Server

Mike Jerris mike at freeswitch.org
Fri Feb 8 17:36:03 UTC 2019


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.

> On Jan 28, 2019, at 7:14 AM, Akshay Patil <ahvpatil at gmail.com> wrote:
> 
> Hi All,
> 
> I am currently trying to develop a new module in freeswitch which requires SIP interaction.
> In this new mod, the primary decision making will be based on the multipart text received in the SIP INVITE message.
> So far, I am able to do the following:
> 1. upon receiving SIP INVITE, separate the received multipart text
> 2. do the required processing and take a decision based on this 
> 
> 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).
> 
> I was able to generate a SIP INVITE with help of switch_ivr_originate().
> I was also able to add the required Multipart Text part in the INVITE.
> 
> However, I am not sure how to proceed with adding new SDP part....
> (In below sample message, I was able to generate everything in Green but nothing in RED)
> 
> So my question is this, where should I make changes to add to SDP.
> 
> Any help is appreciated
> 
> Thanks
> Akshay Patil
> 
> P.S.:
>  --azdjBtlKrjBegB325WctViTwT8ZOCf9p
>    Content-Type: application/sdp
>    Content-Length:   407
>    ...
> a=fmtp:96 0-16
>    m=application 4121 UDP MCPTT
>    c=IN IP4 172.23.33.63
>    a=fmtp:MCPTT mc_queueing;mc_priority=5;mc_granted;mc_implicit_request
>    a=sendrecv
> 
>  --azdjBtlKrjBegB325WctViTwT8ZOCf9p
>    Content-Type: application/vnd.3gpp.mcptt-info+xml
>    Content-Length:   513
>    
>    <?xml version="1.0" encoding="UTF-8"?>
>    <mcpttinfo xmlns="urn:3gpp:ns:mcpttInfo:1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance <http://www.w3.org/2001/XMLSchema-instance>">
> ...
>   --azdjBtlKrjBegB325WctViTwT8ZOCf9p--
> _________________________________________________________________________
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
> 
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
> 
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> https://freeswitch.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20190208/9c5918bf/attachment.html>


More information about the FreeSWITCH-dev mailing list