<!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> </DIV>
<DIV><FONT face=Arial size=2> 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> </DIV>
<DIV><FONT face=Arial size=2>Feb 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
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
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 5 21:26:05 server
mediaproxy[13965]: execution time: 1.49 ms<BR>Feb 5 21:26:05 server
proxydispatcher[13968]: forwarding to mediaproxy on /var/run/mediaproxy.sock:
got: '10.1.2.2 60006'<BR>Feb 5 21:26:05 server proxydispatcher[13968]:
execution time: 5.03 ms<BR>Feb 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 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 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 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 5 21:26:53 server mediaproxy[13965]: execution time:
0.60 ms<BR>Feb 5 21:26:53 server proxydispatcher[13968]: forwarding to
mediaproxy on /var/run/mediaproxy.sock: got: ''<BR>Feb 5 21:26:53 server
proxydispatcher[13968]: execution time: 1.51 ms<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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> </DIV>
<DIV><FONT face=Arial size=2>My openser route is very simple:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>route{</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if
(!mf_process_maxfwd_header("15"))
{<BR> sl_send_reply("483","Too Many
Hops");<BR>
exit;<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if (msg:len >= max_len
) {<BR> sl_send_reply("513", "Message
too big");<BR>
exit;<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>if (method=="OPTIONS")
{<BR> exit;<BR>
};</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if (method=="REGISTER")
{<BR>
record_route();<BR>
if (!save("location"))
{<BR>
sl_reply_error();<BR>
};<BR> exit;<BR>
};</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if (loose_route())
{<BR> append_hf("P-hint:
rr-enforced\r\n");<BR>
if(is_method("BYE"))<BR> { # log it
all the
time<BR>
acc_rad_request("200
ok");<BR>
acc_log_request("200
ok");<BR>
end_media_session();<BR>
}<BR> route(1);<BR>
};</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>
if(is_method("INVITE") && !has_totag())<BR>
{ # set the acc flags<BR>
record_route();<BR>
use_media_proxy();<BR>
setflag(1);<BR>#
setflag(2);<BR> $avp(s:can_uri) =
$ru;<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if (!uri==myself)
{<BR> append_hf("P-hint:
outbound\r\n");<BR>
route(1);<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if (uri==myself) {</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if
(!lookup("location"))
{<BR> # log to
acc as missed
call<BR>
acc_rad_request("404 Not
Found");<BR>
acc_log_request("404 Not
Found");<BR>
sl_send_reply("404", "Not
Found");<BR>
exit;<BR>
};<BR> append_hf("P-hint: usrloc
applied\r\n");<BR> };</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> route(1);<BR>}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># SECTION 5 - SECONDARY ROUTE BLOCKS</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>route[1] {<BR> if (!t_relay())
{<BR>
sl_reply_error();<BR> };<BR>
exit;<BR>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </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> </DIV>
<DIV><FONT face=Arial size=2>thanks for any help! Andy.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT></BODY></HTML>