[Serusers] ser2-sasi : how to send instant message from shell script

Bogdan Pintea pintea at iptego.de
Thu Jul 3 20:58:15 CEST 2008


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 at 127.0.0.1 
sip:originator at foo.bar sip:receiver at 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 at 127.0.0.1
> .
> From: sip:originator at foo.bar
> To: sip:receiver at 127.0.0.1
> foo: bar_special_header
> x: y
> p_header: p_value
> Contact: <sip:devnull at 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 at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
>   


-- 
Bogdan Pintea

iptego GmbH  -  VoIP Security
http://www.iptego.com




More information about the sr-users mailing list