[OpenSIPS-Users] B2B BYEs

Søren Andersen SOAN at stofa.dk
Tue Jan 12 15:32:59 CET 2016


Hello there,

I've some strange issues with the B2B module. - I use MySQL as backend, and if I reload OpenSIPS the BYE is sent directly to the client, and not my SIP proxy. My B2B and OpenSIPS is two difference servers.
If I take a look in b2b_entities table I notice the contact1 field contains the IP address of the client.  But if I don't reload the OpenSIPS the BYE will be sent correctly the my proxy, and then to the client.

Now, my question is how can I make sure that B2B server will not try to communicate with the clients after a reload?

My topology:
ISP -> B2B -> Proxy -> Client

My config:

loadmodule "b2b_entities.so"
loadmodule "b2b_logic.so"
modparam("b2b_logic", "script_scenario", "/etc/opensips/b2b.xml")
modparam("b2b_entities", "db_url", "mysql://opensips:XXX@XX.XX.XX.XX/b2b")
modparam("b2b_entities", "db_mode", 1)
modparam("b2b_logic", "db_mode", 1)
modparam("b2b_logic", "db_url", "mysql://opensips:XXX@XX.XX.XX.XX/b2b")
modparam("b2b_entities", "replication_mode", 1)
modparam("b2b_logic", "init_callid_hdr", "Init-CallID")

if (is_method("INVITE") && !has_totag()) {
b2b_init_request("B2B","sip:$tU at XX.XX.XX.XX");
exit;
}

/Søren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160112/afcf5274/attachment.htm>


More information about the Users mailing list