[OpenSER-Devel] openserctl ping

Juha Heinanen jh at tutpro.com
Fri Aug 24 08:28:31 CEST 2007


should trunk openserctl ping work?  it looks to me that its arguments
don't conform to new t_uac_dlg syntax:

options_ping() {
	require_ctlengine
	myhost=`get_my_host`
	RET=`$CTLCMD t_uac_dlg OPTIONS "$1" "." \
		"From: sip:daemon@$myhost" \
		"To: <$1>" "Contact: <sip:daemon@!!>" "." "." \
		| head -1 ` 
	print_status $RET
}

i tried to change it as follows:

options_ping() {
	require_ctlengine
	myhost=`get_my_host`
	RET=`$CTLCMD t_uac_dlg OPTIONS "$1" "." "." "From: sip:daemon@$myhost\r\nTo: <$1>\r\nContact: <sip:daemon@!!>\r\n" \
		| head -1 ` 
	print_status $RET
}

but then the command never returns.

-- juha



More information about the Devel mailing list