[Serusers] ser+messenger+msilo

Walter Willis walter_wn at yahoo.com
Tue Nov 9 04:14:46 CET 2004


I am problem with messenger 5.0 (microsoft!!!) and
msilo using serweb send IM but I am logeing messenger
not receive.
i am view in the database phpmyadmin are receive. but
the messenger no receive the message.

use the script the ser into  tar 



it is log:

8(1553)  status:  <200>
 8(1553)  reason:  <OK>
 8(1553) parse_headers: flags=1
 8(1553) Found param type 232, <branch> =
<z9hG4bKd97b.5d4a9985.0>; state=16
 8(1553) end of header reached, state=5
 8(1553) parse_headers: Via found, flags=1
 8(1553) parse_headers: this is the first via
 8(1553) After parse_msg...
 8(1553) check_self - checking if host==us: 13==9 && 
[192.168.0.185] == [127.0.0.1]
 8(1553) check_self - checking if port 5060 matches
port 5060
 8(1553) check_self - checking if host==us: 13==13 && 
[192.168.0.185] == [192.168.0.185]
 8(1553) check_self - checking if port 5060 matches
port 5060
 8(1553) forward_reply: found module tm, passing reply
to it
 8(1553) DEBUG: t_check: msg id=15 global id=14 T
start=0xffffffff
 8(1553) parse_headers: flags=17
 8(1553) Found param type 232, <branch> =
<z9hG4bKd97b.4d4a9985.0>; state=16
 8(1553) end of header reached, state=5
 8(1553) parse_headers: Via found, flags=17
 8(1553) parse_headers: this is the second via
 8(1553) DEBUG: add_param:
tag=ae8784314f2b4e519ab915e390a68848
 8(1553) end of header reached, state=29
 8(1553) DEBUG: get_hdr_field: <To> [63];
uri=[sip:6000 at cwafrica.com.pe]
 8(1553) DEBUG: to body [sip:6000 at cwafrica.com.pe]
 8(1553) get_hdr_field: cseq <CSeq>: <10> <MESSAGE>
 8(1553) DEBUG: t_reply_matching: hash 47005 label
1486464213 branch 0
 8(1553) DEBUG: t_reply_matching: reply matched
(T=0x2ad692b0)!
 8(1553) DBG: callback type 1, id 5 entered
 8(1553) DEBUG: t_check: msg id=15 global id=15 T
end=0x2ad692b0
 8(1553) DEBUG: t_on_reply: org. status uas=200,
uac[0]=200 local=0 is_invite=0)
 8(1553) ->>>>>>>>> T_code=200, new_code=200
 8(1553) DEBUG: relay_reply: branch=0, save=0,
relay=-1
 8(1553) DEBUG:destroy_avp_list: destroing list (nil)
 8(1553) receive_msg: cleaning up
SIP Reply  (status):
 7(1548)  version: <SIP/2.0>
 7(1548)  status:  <200>
 7(1548)  reason:  <OK>
 7(1548) parse_headers: flags=1
 7(1548) Found param type 232, <branch> =
<z9hG4bKc97b.eda95792.0>; state=16
 7(1548) end of header reached, state=5
 7(1548) parse_headers: Via found, flags=1
 7(1548) parse_headers: this is the first via
 7(1548) After parse_msg...
 7(1548) check_self - checking if host==us: 13==9 && 
[192.168.0.185] == [127.0.0.1]
 7(1548) check_self - checking if port 5060 matches
port 5060
 7(1548) check_self - checking if host==us: 13==13 && 
[192.168.0.185] == [192.168.0.185]
 7(1548) check_self - checking if port 5060 matches
port 5060
 7(1548) forward_reply: found module tm, passing reply
to it
 7(1548) DEBUG: t_check: msg id=9 global id=8 T
start=0xffffffff
 7(1548) parse_headers: flags=17
 7(1548) Found param type 232, <branch> =
<z9hG4bKc97b.dda95792.0>; state=16
 7(1548) end of header reached, state=5
 7(1548) parse_headers: Via found, flags=17
 7(1548) parse_headers: this is the second via
 7(1548) DEBUG: add_param:
tag=c5608f0e727c4431b48bfd4376f42787
 7(1548) end of header reached, state=29
 7(1548) DEBUG: get_hdr_field: <To> [63];
uri=[sip:6000 at cwafrica.com.pe]
 7(1548) DEBUG: to body [sip:6000 at cwafrica.com.pe]
 7(1548) get_hdr_field: cseq <CSeq>: <10> <MESSAGE>
 7(1548) DEBUG: t_reply_matching: hash 47004 label
695573214 branch 0
 7(1548) DEBUG: t_reply_matching: reply matched
(T=0x2ad8db38)!
 7(1548) DBG: callback type 1, id 5 entered
 7(1548) DEBUG: t_check: msg id=9 global id=9 T
end=0x2ad8db38
 7(1548) DEBUG: t_on_reply: org. status uas=200,
uac[0]=200 local=0 is_invite=0)
 7(1548) ->>>>>>>>> T_code=200, new_code=200
 7(1548) DEBUG: relay_reply: branch=0, save=0,
relay=-1
 7(1548) DEBUG:destroy_avp_list: destroing list (nil)
 7(1548) receive_msg: cleaning up
10(1558) DEBUG: timer routine:0,tl=0x2ad68764
next=0x2ad693d4
10(1558) DEBUG: timer routine:0,tl=0x2ad693d4
next=(nil)
10(1558) DEBUG: timer routine:6,tl=0x2ad68750
next=(nil)
10(1558) DEBUG: timer routine:7,tl=0x2ad693c0
next=(nil)
10(1558) MSILO:clean_silo: cleaning stored messages -
1410
10(1558) MSILO: msg_list_check: mid:10 got reply
10(1558) MSILO:clean_silo: cleaning sent message [10]
10(1558) DEBUG: timer routine:2,tl=0x2ad8cf10
next=0x2ad6a5c0
10(1558) DEBUG: wait_handler : removing 0x2ad8cec8
from table
10(1558) DEBUG: delete transaction 0x2ad8cec8
10(1558) DEBUG: wait_handler : done
10(1558) DEBUG: timer routine:2,tl=0x2ad6a5c0
next=0x2ad8f030
10(1558) DEBUG: wait_handler : removing 0x2ad6a578
from table
10(1558) DEBUG: delete transaction 0x2ad6a578
10(1558) DEBUG: wait_handler : done
10(1558) DEBUG: timer routine:2,tl=0x2ad8f030
next=(nil)
10(1558) DEBUG: wait_handler : removing 0x2ad8efe8
from table
10(1558) DEBUG: delete transaction 0x2ad8efe8
10(1558) DEBUG: wait_handler : done
10(1558) DEBUG: timer routine:2,tl=0x2ad6b268
next=0x2ad8db80
10(1558) DEBUG: wait_handler : removing 0x2ad6b220
from table
10(1558) DEBUG: delete transaction 0x2ad6b220
10(1558) DEBUG: wait_handler : done
10(1558) DEBUG: timer routine:2,tl=0x2ad8db80
next=(nil)
10(1558) DEBUG: wait_handler : removing 0x2ad8db38
from table
10(1558) DEBUG: delete transaction 0x2ad8db38
10(1558) DEBUG: wait_handler : done
10(1558) DEBUG: timer routine:2,tl=0x2ad692f8
next=0x2ad68688
10(1558) DEBUG: wait_handler : removing 0x2ad692b0
from table
10(1558) DEBUG: delete transaction 0x2ad692b0
10(1558) DEBUG: wait_handler : done
10(1558) DEBUG: timer routine:2,tl=0x2ad68688
next=(nil)
10(1558) DEBUG: wait_handler : removing 0x2ad68640
from table
10(1558) DEBUG: delete transaction 0x2ad68640
10(1558) DEBUG: wait_handler : done
10(1558) MSILO:clean_silo: cleaning stored messages -
1440
10(1558) MSILO: msg_list_check: mid:9 got reply
10(1558) MSILO:clean_silo: cleaning sent message [9]
10(1558) MSILO:clean_silo: cleaning stored messages -
1470
10(1558) MSILO: msg_list_check: mid:8 got reply
10(1558) MSILO:clean_silo: cleaning sent message [8]
10(1558) MSILO:clean_silo: cleaning stored messages -
1500
10(1558) MSILO:clean_silo: cleaning expired messages
10(1558) MSILO:clean_silo: cleaning stored messages -
1530
10(1558) Binding '6000','sip:192.168.0.182:12956' has
expired
10(1558) MSILO:clean_silo: cleaning stored messages -
1560
10(1558) MSILO:clean_silo: cleaning stored messages -
1590
 

#
# MSILO usage example
#
# $ID: daniel $
#



children=2
check_via=no      # (cmd. line: -v)
dns=off           # (cmd. line: -r)
rev_dns=off       # (cmd. line: -R)


# ------------------ module loading
----------------------------------

loadmodule "../sip_router/modules/print/print.so"
loadmodule "../sip_router/modules/textops/textops.so"

loadmodule "../sip_router/modules/sl/sl.so"
loadmodule "../sip_router/modules/mysql/mysql.so"
loadmodule "../sip_router/modules/maxfwd/maxfwd.so"
loadmodule "../sip_router/modules/msilo/msilo.so"
loadmodule "../sip_router/modules/tm/tm.so"
loadmodule
"../sip_router/modules/registrar/registrar.so"
loadmodule "../sip_router/modules/usrloc/usrloc.so"

# ----------------- setting module-specific parameters
---------------

# -- registrar params --

modparam("registrar", "default_expires", 120)

# -- registrar params --

modparam("usrloc", "db_mode", 0)

# -- msilo params --

modparam("msilo","db_url","sql://user:xxx@127.0.0.1/msilo")
modparam("msilo","registrar","sip:registrar at mydomain.com")

# -- tm params --

modparam("tm", "fr_timer", 10 )
modparam("tm", "fr_inv_timer", 15 )
modparam("tm", "wt_timer", 10 )


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


	if (uri==myself) {
		# for testing purposes, simply okay all REGISTERs
		if (method=="REGISTER")
		{
			save("location");
			log("REGISTER received -> dumping messages with
MSILO\n");

			# MSILO - dumping user's offline messages
			if (m_dump())
			{
				log("MSILO: offline messages dumped - if they
were\n");
			}else{
				log("MSILO: no offline messages dumped\n");
			};
			break;
		};

		# domestic SIP destinations are handled using our
USRLOC DB
		
		if(!lookup("location")) 
		{
			if (! t_newtran())
   			{
				sl_reply_error();
				break;
   			};
			# we do not care about anything else but MESSAGEs
			if (!method=="MESSAGE")
			{
				if (!t_reply("404", "Not found")) 
				{
					sl_reply_error();
				};
    			break;
			};
			log("MESSAGE received -> storing using MSILO\n");
			# MSILO - storing as offline message
			if (m_store("0"))
			{
				log("MSILO: offline message stored\n");
				if (!t_reply("202", "Accepted")) 
				{
					sl_reply_error();
				};
			}else{
				log("MSILO: offline message NOT stored\n");
				if (!t_reply("503", "Service Unavailable")) 
				{
					sl_reply_error();
				};
			};
			break;
		};
		# if the downstream UA does not support MESSAGE
requests
		# go to failure_route[1]
		t_on_failure("1");
		t_relay();
		break;
	};

	# forward anything else
	t_relay();
}

failure_route[1] {
	# forwarding failed -- check if the request was a
MESSAGE 
	if (!method=="MESSAGE")
	{
    	break;
	};
	
	log(1,"MSILO: the downstream UA does not support
MESSAGE requests ...\n");
	# we have changed the R-URI with the contact address
-- ignore it now
	if (m_store("1"))
	{
		log("MSILO: offline message stored\n");
		t_reply("202", "Accepted"); 
	}else{
		log("MSILO: offline message NOT stored\n");
		t_reply("503", "Service Unavailable");
	};
}




_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com




More information about the sr-users mailing list