[asterisk-dev] Separate Audio/Video

Sergio Muñoz smtello at gmail.com
Mon Dec 2 10:36:42 CST 2013


Hello,

If I want to modify the C code, which part of the code should be modified?.
I suppose I'll have to modify some function of chan_sip.c or create a new
function, am I right?

thanks!!


2013/11/26 Mark Michelson <mmichelson at digium.com>

> On 11/26/2013 02:26 PM, Sergio Muñoz wrote:
>
>> Hello,
>>
>> In my case it would be, device “A” makes a SIP call, Asterisk receives
>> and modifies the SDP, then Asterisk sends the audio (RTP) to device “B” and
>> the video (RTP) to device “C”.
>>
>> Can Asterisk modify the SDP? ... how?
>>
>> Thanks!
>>
>>
> Asterisk does not provide a facility to directly rewrite the SDP, not at
> the level you describe. The best option you have, without changing the C
> code of course, is to use the "media_address" option in sip.conf. This way,
> you could have a scenario like so:
>
> Device A makes a SIP call to Asterisk. Asterisk sends the audio and video
> to server B (as specified by the media_address option). Server B runs a
> program that redirects the audio to device C and the video to device D.
> Note that Asterisk and server B could presumably be the same server, if you
> chose.
>
>
> Mark Michelson
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20131202/4644623f/attachment.html>


More information about the asterisk-dev mailing list