<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp; Im trying to test mediaproxy for the first 
time, I am forcing all traffic through mediaproxy in the openser.cfg 
(there's</FONT></DIV>
<DIV><FONT face=Arial size=2>nothing wrong with that in principal is there?). I 
have one SIP handset hanging directly off OpenSER and another</FONT></DIV>
<DIV><FONT face=Arial size=2>connected to Asterisk which has a channel 
configured to OpenSER. I can get the call answered but there is 
audio</FONT></DIV>
<DIV><FONT face=Arial size=2>only in one direction and even more strangely I see 
that mediaproxy has not handled any data at all in the audio 
stream.</FONT></DIV>
<DIV><FONT face=Arial size=2>This is what I see from mediaproxy:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Feb&nbsp; 5 21:26:05 server proxydispatcher[13968]: 
request <A 
href="mailto:75c5e34d0e567d5f1fa22f583ecc7af0@10.1.1.1">75c5e34d0e567d5f1fa22f583ecc7af0@10.1.1.1</A> 
10.1.1.1:16042:audio 10.1.1.1 10.1.1.1 remote server.domain.net local 
Asterisk=20PBX 
info=from:0042*001@10.1.1.1,to:0044208888888@server.domain.net,fromtag:as1a72639d,totag:<BR>Feb&nbsp; 
5 21:26:05 server mediaproxy[13965]: request <A 
href="mailto:75c5e34d0e567d5f1fa22f583ecc7af0@10.1.1.1">75c5e34d0e567d5f1fa22f583ecc7af0@10.1.1.1</A> 
10.1.1.1:16042:audio 10.1.1.1 10.1.1.1 remote server.domain.net local 
Asterisk=20PBX 
info=totag:,to:0044208888888@server.domain.net,from:0042*001@10.1.1.1,fromtag:as1a72639d<BR>Feb&nbsp; 
5 21:26:05 server mediaproxy[13965]: session <A 
href="mailto:75c5e34d0e567d5f1fa22f583ecc7af0@10.1.1.1">75c5e34d0e567d5f1fa22f583ecc7af0@10.1.1.1</A>: 
started. listening on 10.1.2.2:60006<BR>Feb&nbsp; 5 21:26:05 server 
mediaproxy[13965]: execution time:&nbsp; 1.49 ms<BR>Feb&nbsp; 5 21:26:05 server 
proxydispatcher[13968]: forwarding to mediaproxy on /var/run/mediaproxy.sock: 
got: '10.1.2.2 60006'<BR>Feb&nbsp; 5 21:26:05 server proxydispatcher[13968]: 
execution time:&nbsp; 5.03 ms<BR>Feb&nbsp; 5 21:26:53 server 
proxydispatcher[13968]: delete <A 
href="mailto:75c5e34d0e567d5f1fa22f583ecc7af0@10.1.1.1">75c5e34d0e567d5f1fa22f583ecc7af0@10.1.1.1</A> 
info=<BR>Feb&nbsp; 5 21:26:53 server mediaproxy[13965]: delete <A 
href="mailto:75c5e34d0e567d5f1fa22f583ecc7af0@10.1.1.1">75c5e34d0e567d5f1fa22f583ecc7af0@10.1.1.1</A> 
info=<BR>Feb&nbsp; 5 21:26:53 server mediaproxy[13965]: session <A 
href="mailto:75c5e34d0e567d5f1fa22f583ecc7af0@10.1.1.1">75c5e34d0e567d5f1fa22f583ecc7af0@10.1.1.1</A>: 
0/0/0 packets, 0/0/0 bytes (caller/called/relayed)<BR>Feb&nbsp; 5 21:26:53 
server mediaproxy[13965]: session <A 
href="mailto:75c5e34d0e567d5f1fa22f583ecc7af0@10.1.1.1">75c5e34d0e567d5f1fa22f583ecc7af0@10.1.1.1</A>: 
ended.<BR>Feb&nbsp; 5 21:26:53 server mediaproxy[13965]: execution time:&nbsp; 
0.60 ms<BR>Feb&nbsp; 5 21:26:53 server proxydispatcher[13968]: forwarding to 
mediaproxy on /var/run/mediaproxy.sock: got: ''<BR>Feb&nbsp; 5 21:26:53 server 
proxydispatcher[13968]: execution time:&nbsp; 1.51 ms<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This "0/0/0 packets, 0/0/0 bytes 
(caller/called/relayed)" being the part that I dont understand, well it proves 
its not handling the audio</FONT></DIV>
<DIV><FONT face=Arial size=2>stream, but other than put a use_media_proxy 
command in the openser route there isnt anything else I can do to get the data 
stream</FONT></DIV>
<DIV><FONT face=Arial size=2>to </FONT><FONT face=Arial size=2>route via media 
proxy is there?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>My openser route is very simple:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>route{</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; if 
(!mf_process_maxfwd_header("15")) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply("483","Too Many 
Hops");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
exit;<BR>&nbsp;&nbsp;&nbsp; };</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; if (msg:len &gt;=&nbsp; max_len 
) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply("513", "Message 
too big");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
exit;<BR>&nbsp;&nbsp;&nbsp; };</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>if (method=="OPTIONS") 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp; 
};</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; if (method=="REGISTER") 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
record_route();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if (!save("location")) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
sl_reply_error();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
};<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<BR>&nbsp;&nbsp;&nbsp; 
};</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; if (loose_route()) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; append_hf("P-hint: 
rr-enforced\r\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if(is_method("BYE"))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { # log it 
all the 
time<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
acc_rad_request("200 
ok");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
acc_log_request("200 
ok");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
end_media_session();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; route(1);<BR>&nbsp;&nbsp;&nbsp; 
};</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if(is_method("INVITE") &amp;&amp; !has_totag())<BR>&nbsp;&nbsp;&nbsp; 
{&nbsp;&nbsp; # set the acc flags<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
record_route();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
use_media_proxy();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
setflag(1);<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
setflag(2);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $avp(s:can_uri) = 
$ru;<BR>&nbsp;&nbsp;&nbsp; };</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; if (!uri==myself) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; append_hf("P-hint: 
outbound\r\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
route(1);<BR>&nbsp;&nbsp;&nbsp; };</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; if (uri==myself) {</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
(!lookup("location")) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # log to 
acc as missed 
call<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
acc_rad_request("404 Not 
Found");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
acc_log_request("404 Not 
Found");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
sl_send_reply("404", "Not 
Found");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
exit;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
};<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; append_hf("P-hint: usrloc 
applied\r\n");<BR>&nbsp;&nbsp;&nbsp; };</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; route(1);<BR>}</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2># SECTION 5 - SECONDARY ROUTE BLOCKS</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>route[1] {<BR>&nbsp;&nbsp;&nbsp; if (!t_relay()) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
sl_reply_error();<BR>&nbsp;&nbsp;&nbsp; };<BR>&nbsp;&nbsp;&nbsp; 
exit;<BR>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Anyone any ideas what might be going on or how I 
can investigate the issue further?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>thanks for any help! Andy.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;</DIV></FONT></BODY></HTML>