[OpenSER-Devel] openserctl ping

Daniel-Constantin Mierla daniel at voice-system.ro
Fri Aug 24 14:43:44 CEST 2007


Hello,

looks like, perhaps we should import the style of  examples/ctd.sh . It 
is not exposed to shell interpretation and won't have to worry about 
adding extra escapes to quotes.

Cheers,
Daniel
 

On 08/24/07 12:15, Juha Heinanen wrote:
> Daniel-Constantin Mierla writes:
>
>  > what do you get in log messages (running with higher debug level)?
>
> with command
>
>  > > 	RET=`$CTLCMD t_uac_dlg OPTIONS "$1" "." "." "From: sip:daemon@$myhost\r\nTo: <$1>\r\nContact: <sip:daemon@!!>\r\n" \
>  > > 		| head -1 ` 
>
> looks like From, To and Contact are  parsed as separate parameters:
>
> Aug 24 12:09:35 localhost /usr/sbin/openser[9573]: DEBUG:mi_fifo:mi_parse_tree: adding node <> ; val <OPTIONS>
> Aug 24 12:09:35 localhost /usr/sbin/openser[9573]: DEBUG:mi_fifo:mi_parse_tree: adding node <> ; val <sip:192.98.101.10>
> Aug 24 12:09:35 localhost /usr/sbin/openser[9573]: DEBUG:mi_fifo:mi_parse_tree: adding node <> ; val <.>
> Aug 24 12:09:35 localhost /usr/sbin/openser[9573]: DEBUG:mi_fifo:mi_parse_tree: adding node <> ; val <.>
> Aug 24 12:09:35 localhost /usr/sbin/openser[9573]: DEBUG:mi_fifo:mi_parse_tree: adding node <> ; val <From: sip:daemon at taimen>
> Aug 24 12:09:35 localhost /usr/sbin/openser[9573]: DEBUG:mi_fifo:mi_parse_tree: adding node <> ; val <To: <sip:192.98.101.10>>
> Aug 24 12:09:35 localhost /usr/sbin/openser[9573]: DEBUG:mi_fifo:mi_parse_tree: adding node <> ; val <Contact: <sip:daemon@!!>>
> Aug 24 12:09:35 localhost /usr/sbin/openser[9573]: DEBUG:mi_fifo:mi_parse_tree: end of input tree
> Aug 24 12:09:35 localhost /usr/sbin/openser[9573]: DEBUG:mi_fifo:mi_fifo_server: done parsing the mi tree
> Aug 24 12:09:35 localhost /usr/sbin/openser[9573]: INFO:mi_fifo:mi_fifo_server: command empty
> Aug 24 12:09:35 localhost /usr/sbin/openser[9573]: DEBUG:mi_fifo:mi_fifo_server: entered consume
>
> perhaps some escaping of " chars is needed to that openser gets the
> headers as a single parameter.
>
> -- juha
>
>   



More information about the Devel mailing list