<div class="gmail_quote">Hi,<br><br>I've got a litlle problem : Asterisk rewrite every SDP in codec negociation, even for video. I would have liked that I don't loose any information for video, as some are constructor specific.<br>
Here is a litlle exemple of what I have :<br>
<br>An Asterisk, doing NAT, so every RTP flow comes to and goes from it.<br>An Tandberg (or other ;)) system (VCS, ...) connected to the Asterisk<br>Another Tandberg (or other ;)) system (VCS, ...) connected to the Asterisk<br>
<br>It can be drawed like that : TDB visiophone <--> VCS 1 <--> Asterisk <--> VCS 2 <--> TDB visiophone<br><br>Tandberg add some information in his SDP, eg a=profile-level-id=428016;max-mbps=35000;max-fs=3600;max-smbps=323500<br>
Other systems add their own information too.<br><br>The result is that, when Asterisk strips theses information, I've got a QCIF codec negociation, whereas I could have w720p (which is a litlle better ;))<br><br>So how could have a SDP passthrough for video codec negotiation ? I've checked the code, but didn't find a way to do it :<br>
<br>process_sdp_a_video : get the string and have a sip_pvt structure<br>add_vcodec_to_sdp : write a_video string from another sip_pvt structure<br><br>What I've done is adding an ast_str to sip_pvt structure and to sip_request structure)<br>
<br>In process_sdp_a_video, I copy the string to sip_pvt<br>In process_sdp, I copy the sip_pvt data to the sip_request "req"<br>In respprep, I copy the data from "req" to "resp"<br>In add_sdp, I copy the data from resp to the new sip_pvt<br>
In add_vcodec_to_sdp, I copy the data from sip_pvt to a_video<br><br>But it didn't work. What did I missed ? Is ther a simple way to do it ?<br><br>Thanks for you answer (and sorry for my poor english ;))<br><br><br>
<br>
For Information : I'm running asterisk 1.6<br><br>
</div><br>