<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m trying to use the Media Exchange module and can’t seem to get it to work as I wish.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve enabled RTPProxy and have that working to anchor media for a SIP call with the OpenSIPS server. In the script I have the following code in the route section of the code:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">…<o:p></o:p></p>
<p class="MsoNormal"> # account only INVITEs<o:p></o:p></p>
<p class="MsoNormal"> if (is_method("INVITE")) {<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> xlog("Received INVITE ... start dialog, rtpproxy and then fork media\n");<o:p></o:p></p>
<p class="MsoNormal"> create_dialog();<o:p></o:p></p>
<p class="MsoNormal"> rtpproxy_engage();<o:p></o:p></p>
<p class="MsoNormal"> media_fork_to_uri("sip:12223334444@123.123.123.123:5060", "caller");<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> do_accounting("log");<o:p></o:p></p>
<p class="MsoNormal"> }<o:p></o:p></p>
<p class="MsoNormal">…<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I see the following errors:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Jan 29 22:31:51 ip-172-31-6-99 /usr/local/sbin/opensips[17084]: ERROR:media_exchange:uri2sock: no corresponding socket for af 2<o:p></o:p></p>
<p class="MsoNormal">Jan 29 22:31:51 ip-172-31-6-99 /usr/local/sbin/opensips[17084]: ERROR:media_exchange:media_fork_to_uri: could not find suitable socket for originating traffic to
<a href="sip:1222333444@123.123.123.123:5060">sip:1222333444@123.123.123.123:5060</a>
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any ideas what I am missing in my attempt?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is there a primer on the use of the media exchange module? Specifically with this particular API?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you.<o:p></o:p></p>
<p class="MsoNormal"><br>
Eugene Christensen.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:navy">CONFIDENTIALITY NOTICE.</span></b><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:navy"> This e-mail transmission, and any documents, files or
previous e-mail messages attached to it, may contain confidential and proprietary information. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying,
distribution or use of any of the information contained in or attached to this message is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify me by reply e-mail at
</span><a href="mailto:echristensen@sorenson.com"><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:blue">echristensen@sorenson.com</span></a><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:navy"> or by telephone at +1 (801)
287-9419, and destroy the original transmission and its attachments without reading them or saving them to disk.</span><span style="font-size:8.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>