Rafael,
You can use the sercmd(2) utility (utils/sercmd/ in the 'SER2' linked from SEMS' page); invoke it like this:
sercmd2> asi.uac.request 0 0 NOTIFY sip:receiver@127.0.0.1 sip:originator@foo.bar sip:receiver@127.0.0.1 65 my-call-id "" "Content-Type: text/plain; charset=UTF-8\r\nMy-header: you-content\r\n" "Hello world!!!! $@" ""
The docs miss, so far, but the comments in modules/asi/rpc.c should be of some help.
Hth, Bogdan.
Rafael wrote:
Hi all, i have running ser2-sasi. is there a possibility to send instant message from a shell script like in the older versions with the follow example ?
#!/bin/sh # cat > /tmp/ser_fifo <<EOF :t_uac_dlg:hh NOTIFY sip:receiver@127.0.0.1 . From: sip:originator@foo.bar To: sip:receiver@127.0.0.1 foo: bar_special_header x: y p_header: p_value Contact: sip:devnull@192.168.0.100:9 65 Chapter 4. Application Writing Content-Type: text/plain; charset=UTF-8 . Hello world!!!! $@ . EOF
regards rafael _______________________________________________ Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers