[OpenSIPS-Users] ERROR:b2b_logic:mi_b2b_bridge: No entity found

Luke net.anecdotes at googlemail.com
Wed Dec 23 12:38:08 CET 2015


OpenSIPs operating as a b2bua with topology hiding.

My SIP softphone (which uses OpenSIPs as an outbound proxy) receives an incoming call, and I answer it.

I then try to transfer the call using the MI below:

:b2b_bridge:
1020.30
sip:07987654321 at 85.1.2.3
1

This results in "ERROR:b2b_logic:mi_b2b_bridge: No entity found". What am I doing wrong?


DBG:mi_datagram:mi_datagram_server: received :b2b_bridge:#0121020.30#012sip:07987654321 at 85.1.2.3#0120#012
DBG:mi_datagram:mi_datagram_server: mi_buf is :b2b_bridge:#0121020.30#012sip:07987654321 at 85.1.2.3#0120#012 and we have received 53 bytes
DBG:mi_datagram:identify_command: the command starts here: b2b_bridge:#0121020.30#012sip:07987654321 at 85.1.2.3#0120#012
DBG:mi_datagram:identify_command: the command is b2b_bridge
DBG:mi_datagram:identify_command: dtgram->len is 53
DBG:mi_datagram:identify_command: dtgram->len is 40
DBG:mi_datagram:mi_datagram_server: we have a valid command 
DBG:mi_datagram:mi_datagram_server: after identifing the command, the received datagram is 1020.30#012sip:07987654321 at 85.1.2.3#0120#012
DBG:mi_datagram:mi_datagram_server: parsing the command's params
DBG:mi_datagram:mi_datagram_parse_node: the remaining datagram to be parsed is 1020.30#012sip:07987654321 at 85.1.2.3#0120#012 and 40 in length 
DBG:mi_datagram:mi_datagram_parse_node: the string is not just a quoted string
DBG:mi_datagram:mi_datagram_parse_node: found newline before attr_separator--we have just the attribute's value
DBG:mi_datagram:mi_datagram_parse_node: empty name, attr not quoted value <1020.30> found
DBG:mi_datagram:mi_datagram_parse_node: 1 data->len is 40
DBG:mi_datagram:mi_datagram_parse_node: 2 data->len is 32
DBG:mi_datagram:mi_datagram_parse_tree: adding node <> ; val <1020.30>
DBG:mi_datagram:mi_datagram_parse_tree: the remaining datagram has 32 bytes
DBG:mi_datagram:mi_datagram_parse_node: the remaining datagram to be parsed is sip:07987654321 at 85.1.2.3#0120#012 and 32 in length 
DBG:mi_datagram:mi_datagram_parse_node: the string is not just a quoted string
DBG:mi_datagram:mi_datagram_parse_node: found newline before attr_separator--we have just the attribute's value
DBG:mi_datagram:mi_datagram_parse_node: empty name, attr not quoted value <sip:07987654321 at 85.1.2.3> found
DBG:mi_datagram:mi_datagram_parse_node: 1 data->len is 32
DBG:mi_datagram:mi_datagram_parse_node: 2 data->len is 2
DBG:mi_datagram:mi_datagram_parse_tree: adding node <> ; val <sip:07987654321 at 85.1.2.3>
DBG:mi_datagram:mi_datagram_parse_tree: the remaining datagram has 2 bytes
DBG:mi_datagram:mi_datagram_parse_node: the remaining datagram to be parsed is 0#012 and 2 in length 
DBG:mi_datagram:mi_datagram_parse_node: the string is not just a quoted string
DBG:mi_datagram:mi_datagram_parse_node: just a value, no new line
DBG:mi_datagram:mi_datagram_parse_node: empty name, attr not quoted value <0> found
DBG:mi_datagram:mi_datagram_parse_node: 1 data->len is 2
DBG:mi_datagram:mi_datagram_parse_node: 2 data->len is 0
DBG:mi_datagram:mi_datagram_parse_tree: adding node <> ; val <0>
DBG:mi_datagram:mi_datagram_parse_tree: the remaining datagram has 0 bytes
DBG:mi_datagram:mi_datagram_parse_tree: found end of input
DBG:mi_datagram:mi_datagram_server: done parsing the mi tree
DBG:b2b_logic:b2bl_parse_key: hash_index = [1020]  - local_index= [30]
DBG:b2b_logic:b2bl_create_new_entity: new entity type [1] [0x7f9901a49350]->[]
ERROR:b2b_logic:mi_b2b_bridge: No entity found




debug=6
log_stderror=no
log_facility=LOG_LOCAL0
fork=yes
children=4

listen=udp:192.168.1.64:5060



####### Modules Section ########

#set module path
mpath="/usr//lib64/opensips/modules/"

#### SIGNALING module
loadmodule "signaling.so"

#### StateLess module
loadmodule "sl.so"

#### Transaction Module
loadmodule "tm.so"
modparam("tm", "fr_timeout", 5)
modparam("tm", "fr_inv_timeout", 30)
modparam("tm", "restart_fr_on_each_reply", 0)
modparam("tm", "onreply_avp_mode", 1)

#### Record Route Module
loadmodule "rr.so"
/* do not append from tag to the RR (no need for this script) */
modparam("rr", "append_fromtag", 0)

#### MAX ForWarD module
loadmodule "maxfwd.so"

#### SIP MSG OPerationS module
loadmodule "sipmsgops.so"

#### FIFO Management Interface
loadmodule "mi_fifo.so"
modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")
modparam("mi_fifo", "fifo_mode", 0666)

#### URI module
loadmodule "uri.so"
modparam("uri", "use_uri_table", 0)

#### USeR LOCation module
loadmodule "usrloc.so"
modparam("usrloc", "nat_bflag", "NAT")
modparam("usrloc", "db_mode",   0)

#### REGISTRAR module
loadmodule "registrar.so"

/* uncomment the next line not to allow more than 10 contacts per AOR */
#modparam("registrar", "max_contacts", 10)

#### ACCounting module
#loadmodule "acc.so"
#/* what special events should be accounted ? */
#modparam("acc", "early_media", 0)
#modparam("acc", "report_cancels", 0)
#/* by default we do not adjust the direct of the sequential requests.
#   if you enable this parameter, be sure the enable "append_fromtag"
#   in "rr" module */
#modparam("acc", "detect_direction", 0)
#modparam("acc", "failed_transaction_flag", "ACC_FAILED")
#/* account triggers (flags) */
#modparam("acc", "log_flag", "ACC_DO")
#modparam("acc", "log_missed_flag", "ACC_MISSED")

#### UDP protocol
loadmodule "proto_udp.so"




loadmodule "b2b_entities.so"
loadmodule "b2b_logic.so"

modparam("b2b_entities", "script_req_route", "b2b_request")
modparam("b2b_entities", "script_reply_route", "b2b_reply")

modparam("tm","onreply_avp_mode", 1)
modparam("tm", "pass_provisional_replies", 1)

loadmodule "mi_datagram.so"
 modparam("mi_datagram", "socket_name", "udp:192.168.1.64:8070")


####### Routing Logic ########


route[b2b_request]
{
raise_event("E_SCRIPT_CALL_B2BREQUEST");
}
route[b2b_reply]
{
raise_event("E_SCRIPT_CALL_B2BREPLY");
}

route
{
	if (!mf_process_maxfwd_header("10")) 
	{
		sl_send_reply("483","Too Many Hops");
		exit;
	}


	# record routing
	if (!is_method("REGISTER"))
	{
		record_route();
        }



	if (is_method("INVITE") && !(src_ip == "192.168.1.64" && src_port==5060))
  	{
		b2b_init_request("top hiding");
		exit;
  	} 

	route(1);

}



route[1]
{
	if (!t_relay())
	{
		sl_reply_error();
	}

	exit;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20151223/20cc8c64/attachment.htm>


More information about the Users mailing list