[OpenSIPS-Users] Send simultaneous commands with exec module

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon Jan 4 15:27:14 CET 2010


Hi Jennifer,

A Happy New Year to you too!

for CMD1 and CMD2, try from command line
    (CMD1 & CMD2)
or
    (CMD1 & CMD2) &

Regards,
Bogdan

Jennifer-4 wrote:
> Hi everybody and Happy New Year!!
>
> I´m working with Opensips 1.4.
>
> I need to send two commands simultaneously from Opensips, specifically I
> want to send two flows with ITG.
>
> If I write two sentences with exec_avp or exec_dset, the commands are sent
> in order, not simultaneously.
>
> So I´m trying to send the commands in the same exec sentence and launching
> the first command in background:
>
>  exec_dset("ssh -l root 192.168.0.56 ./D-ITG-2.6.1d/bin/ITGSend -a
> 192.168.4.38 -rp 12003 -t 16000 -x
> lograror VoIP -x G.729.2 -h RTP < /dev/null & ssh -l root 192.168.0.38
> ./D-ITG-2.6.1d/bin/ITGSend -a 192.168.2.56 -rp 11003 -t 16000 -x lograror2
> VoIP -x G.729.2 -h RTP");
>
> But with this sentence, only the first command is executed, and the second
> is "lost".
>
> Can anybody help me?
>
> Thanks!
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list