<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">Hello,</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">If I want to modify the C code, which part of the code should be modified?.</div>
<div style="font-family:arial,sans-serif;font-size:13px">I suppose I'll have to modify some function of chan_sip.c or create a new function, am I right? </div><div style="font-family:arial,sans-serif;font-size:13px"><br>
</div><div style="font-family:arial,sans-serif;font-size:13px">thanks!!</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/26 Mark Michelson <span dir="ltr"><<a href="mailto:mmichelson@digium.com" target="_blank">mmichelson@digium.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 11/26/2013 02:26 PM, Sergio Muñoz wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br><div class="im">
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”.<br>
<br>
Can Asterisk modify the SDP? ... how?<br>
<br>
Thanks!<br>
<br>
</div></blockquote>
<br>
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:<br>

<br>
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.<div class="HOEnZb">
<div class="h5"><br>
<br>
Mark Michelson<br>
<br>
-- <br>
______________________________<u></u>______________________________<u></u>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
  <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/<u></u>mailman/listinfo/asterisk-dev</a><br>
</div></div></blockquote></div><br></div>