[OpenSIPS-Users] B2BModule and topology Hiding
Mehdi BOUDOU
mehdi.boudou at gmail.com
Mon Jul 8 21:10:22 CEST 2013
Hello,
I'm already testing the b2bua module with the simple topology Hiding test,
with a sipp scenario of a simple call.
The Call is OK but I set the modparam("b2b_entities", "replication_mode",
0) and the call id of new leg is the same for the new INVITE ?
Thanks in advance
Here my config file :
# $Id: opensips-b2b.cfg $
# Debugging mode:
debug=6
memlog= 6
fork=yes
auto_aliases=no
log_stderror=no
disable_dns_blacklist=yes
listen=udp:172.17.1.251:5060 # CUSTOMIZE ME
disable_tcp=no
listen=tcp:172.17.1.251:5060 # CUSTOMIZE ME
disable_tls=yes
# alias=OSIPS_REALM
#port=OSIPS_PORT
sip_warning=0
#server_header="SRV_SIGNATURE"
#user_agent_header="PP_USER_AGENT"
#mhomed=yes
#memlog=2
check_via=no
dns=off
rev_dns=off
children=8
disable_tcp=yes
log_facility=LOG_LOCAL1
# for more info: opensips -h
# ------------------ module loading ----------------------------------
mpath="/usr/local/src/1.9/modules/"
loadmodule "db_mysql.so"
#loadmodule "xlog.so"
loadmodule "sipmsgops.so"
loadmodule "textops.so"
loadmodule "maxfwd.so"
loadmodule "rr.so"
loadmodule "sl.so"
loadmodule "tm.so"
loadmodule "signaling.so"
loadmodule "b2b_entities.so"
loadmodule "b2b_logic.so"
loadmodule "usrloc.so"
loadmodule "registrar.so"
loadmodule "mi_fifo.so"
loadmodule "uac.so"
loadmodule "uac_auth.so"
# ----------------- setting module-specific parameters ---------------
modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")
modparam("usrloc|b2b_entities|b2b_logic", "db_url",
"mysql://opensips:opensipsrw@localhost/opensips")
modparam("usrloc", "db_mode", 2)
modparam("tm", "pass_provisional_replies", 1)
modparam("tm", "fr_timer", 5)
modparam("tm", "fr_inv_timer", 30)
modparam("tm", "restart_fr_on_each_reply", 0)
modparam("tm", "onreply_avp_mode", 1)
#modparam("b2b_entities", "server_address", "
sip:sa at pro1ras01.ims.sfr.net:5060")
#modparam("b2b_logic", "script_scenario",
"/usr/local/etc/opensips/scenario_script.xml")
#modparam("b2b_logic", "extern_scenario",
"/usr/local/etc/opensips/scenario_extern.xml")
modparam("b2b_entities", "script_req_route", "b2b_request")
modparam("b2b_entities", "script_reply_route", "b2b_reply")
modparam("b2b_entities", "replication_mode", 0)
route[b2b_request] {
xlog("b2b_request ($ci)\n");
}
route[b2b_reply] {
xlog("b2b_reply ($ci)\n");
}
route {
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
exit;
};
if (msg:len >= 2380 ) {
sl_send_reply("513", "Message too big");
exit;
};
#if (!method=="REGISTER")
# record_route();
# subsequent messages withing a dialog should take the
# path determined by record-routing
if (loose_route()) {
# mark routing logic in request
append_hf("P-hint: rr-enforced\r\n");
route(1);
};
if(is_method("INVITE")) /* skip Invite messages generated by the server*/
{
# DO NOT call t_newtran() on this request -> it will result in the
transaction never being deleted
b2b_init_request("top hiding");
exit; # do not forward this request, another one will be generated
};
if (!uri==myself) {
# mark routing logic in request
append_hf("P-hint: outbound\r\n");
route(1);
};
if (uri==myself) {
if (method=="REGISTER") {
save("location");
exit;
};
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
exit;
};
append_hf("P-hint: usrloc applied\r\n");
};
route(1);
}
route[1] {
# send it out now; use stateful forwarding as it works reliably
# even for UDP2TCP
if (!t_relay()) {
sl_reply_error();
};
exit;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130708/f897354f/attachment.htm>
More information about the Users
mailing list