[Serusers] SER Call forwording with Shell Skript

Like likeaghost at gmx.de
Mon Oct 17 15:30:54 CEST 2005


Hello Community,

How can I send a reply to a second SIP Uri ?
I found this code in the Web:
[CODE]
cat > /tmp/ser_fifo <<EOF
:t_uac_dlg:ser_fifo
MESSAGE
$SIP_ORUI
.
From: IMtoSMS at 192.168.0.16
To: $SIP_ORUI
Contact: $SIP_HF_CONTACT
Content-Type: text/plain; charset=UTF-8
x:+$SMS
.
#$SIP_HF_FROM: $text $@
.
EOF
[/CODE]
When I tried to send the Message , Ser show me a lot of errors like this:
[ERROR]
fifo_server: Command must begin with :: Message or must begin with to:
[/ERROR]

I become a Call from User A to User B. So User A called test at mydomain.de and 
Ser is routing this call to an Skript which start its work. At the End of 
these Skript, i will send this INVITE from Caller A to Caller B with 
forwording or so.

How can i do this ? Can i do this , with the Code from the upper Skript ?

Thanx for your help,

Dirk




More information about the sr-users mailing list