[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)
    (CMD1 & CMD2) &


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 ./D-ITG-2.6.1d/bin/ITGSend -a
> -rp 12003 -t 16000 -x
> lograror VoIP -x G.729.2 -h RTP < /dev/null & ssh -l root
> ./D-ITG-2.6.1d/bin/ITGSend -a -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

More information about the Users mailing list