Hello,
Look at your onreply_route in ser.cfg .
Harry
--- TCCHAN tikchoong.chan@redtone.com a écrit :
Dear All,
I apologize for asking a repeated question.
I tried ser 0.8.14 and 0.9 to work with mediaproxy. I could setup call but there are silence.
I did try to bypass the proxydispatcher
modparam("mediaproxy", "mediaproxy_socket", "/var/run/mediaproxy.sock") #modparam("mediaproxy", "mediaproxy_socket","/var/run/proxydispatcher.sock")
and the result is the same.
I have been stuck for days.
Thanks in advenced for any help available.
Regards,
TC Chan
The proxydispatcher dump the following:
[root@ser mediaproxy]# ./proxydispatcher.py --no-fork Listening for commands on local socket `/var/run/proxydispatcher.sock' Default mediaproxy server is on `/var/run/mediaproxy.sock' command request fe5a6f36-c6092310@192.228.118.240 192.228.118.240:18278:audio 210.187.111.86 219.94.42.174 remote 210.187.111.86 remote Sipura/SPA2000-2.0.13(g)
info=from:01548900@219.94.42.174,to:01548901@219.94.42.174,fromtag:d9170fe31e4cbe8o0,totag:
forwarding to mediaproxy on /var/run/mediaproxy.sock: got: '127.0.0.1 35000' command execution time: 16.89 ms command lookup fe5a6f36-c6092310@192.228.118.240 192.228.118.240:18280:audio 210.187.111.86 219.94.42.174 remote 219.94.42.174 unknown Sipura/SPA2000-2.0.13(g)
info=from:01548900@219.94.42.174,to:01548901@219.94.42.174,fromtag:d9170fe31e4cbe8o0,totag:8f2251e89d625018i1
forwarding to mediaproxy on /var/run/mediaproxy.sock: got: '127.0.0.1 35000' command execution time: 3.92 ms
After a long while ..........
command delete fe5a6f36-c6092310@192.228.118.240 info= forwarding to mediaproxy on /var/run/mediaproxy.sock: got: '' command execution time: 2.53 ms
While Mediaproxy dump the following:
[root@ser mediaproxy]# ./mediaproxy.py --no-fork Listening for commands on local socket `/var/run/mediaproxy.sock' Listening for remote commands is disabled Using IP address `127.0.0.1' for the RTP/RTCP proxy command request fe5a6f36-c6092310@192.228.118.240 192.228.118.240:18278:audio 210.187.111.86 219.94.42.174 remote 210.187.111.86 remote Sipura/SPA2000-2.0.13(g)
info=from:01548900@219.94.42.174,to:01548901@219.94.42.174,fromtag:d9170fe31e4cbe8o0,totag:,dispatcher
session fe5a6f36-c6092310@192.228.118.240: started. listening on 127.0.0.1:35000 command execution time: 11.72 ms command lookup fe5a6f36-c6092310@192.228.118.240 192.228.118.240:18280:audio 210.187.111.86 219.94.42.174 remote 219.94.42.174 unknown Sipura/SPA2000-2.0.13(g)
info=from:01548900@219.94.42.174,to:01548901@219.94.42.174,fromtag:d9170fe31e4cbe8o0,totag:8f2251e89d625018i1,dispatcher
command execution time: 1.32 ms command status command execution time: 0.36 ms session fe5a6f36-c6092310@192.228.118.240: 0/0/0 packets, 0/0/0 bytes (caller/called/relayed) session fe5a6f36-c6092310@192.228.118.240: ended (did timeout). command status command execution time: 0.18 ms command delete fe5a6f36-c6092310@192.228.118.240 info=dispatcher command execution time: 0.24 ms
Session dump the following:
./[root@ser mediaproxy]# ./sessions.py
Caller Via Called Status Duration Codec Type Traffic
------------------------------------------------------------------------------------------------------------
192.228.118.240:18278 - 127.0.0.1:35000 - 192.228.118.240:18280 inactive 0'04" Unknown Audio 0/0/0
Total traffic: 0bps/0bps/0bps (in1/in2/out) Session count: 1
[root@ser mediaproxy]# ./sessions.py No RTP sessions
My ser script is as follow:
#debug=3 #fork=no #log_stderror=yes check_via=no # (cmd. line: -v) dns=no # (cmd. line: -r) rev_dns=no # (cmd. line: -R) #port=5060 #children=4 fifo="/tmp/ser_fifo"
# ------------------ module loading
#loadmodule "/usr/local/lib/ser/modules/nathelper.so" loadmodule "/usr/local/lib/ser/modules/mysql.so" loadmodule "/usr/local/lib/ser/modules/sl.so" loadmodule "/usr/local/lib/ser/modules/tm.so" loadmodule "/usr/local/lib/ser/modules/rr.so" loadmodule "/usr/local/lib/ser/modules/maxfwd.so" loadmodule "/usr/local/lib/ser/modules/usrloc.so" loadmodule "/usr/local/lib/ser/modules/registrar.so" loadmodule "/usr/local/lib/ser/modules/xlog.so" loadmodule "/usr/local/lib/ser/modules/exec.so" loadmodule "/usr/local/lib/ser/modules/auth.so" loadmodule "/usr/local/lib/ser/modules/auth_db.so" loadmodule "/usr/local/lib/ser/modules/acc.so" loadmodule "/usr/local/lib/ser/modules/group.so" loadmodule "/usr/local/lib/ser/modules/textops.so" #loadmodule "/usr/local/lib/ser/modules/uri.so"
loadmodule "/usr/local/lib/ser/modules/domain.so" loadmodule "/usr/local/lib/ser/modules/mediaproxy.so"
#----------------------------------------------------------------------
# mediaproxy modparam("mediaproxy", "natping_interval", 60) #modparam("mediaproxy", "mediaproxy_socket", "/var/run/mediaproxy.sock") modparam("mediaproxy", "mediaproxy_socket", "/var/run/proxydispatcher.sock") modparam("registrar", "nat_flag", 2)
#----------------------------------------------------------------------
#----------------------------------------------------------------------
# uri #modparam("uri", "db_url", "sql://root:heslo@localhost/ser") #modparam("uri", "uri_table", "subscriber")
#----------------------------------------------------------------------
#----------------------------------------------------------------------
# TCN: no forking #modparam("registrar","desc_time_order",1) #modparam("usrloc","desc_time_order",1) #modparam("registrar","append_branches",0)
#-----------------------------------------------------------------------
# ----------------- setting module-specific parameters --------------- modparam("usrloc", "db_mode", 1) #modparam("usrloc", "db_mode", 2)
#-------------------------------------------------------------------------------------
=== message truncated ===
___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com