Run pjsua in Background

LW
Lloyd Wittebol
Fri, Mar 27, 2009 10:26 AM

I know this question has been asked before and a soulution offered by editing the pjsip-apps/src/pjsua/pjsua_app.c , specifically the reference to the console_app() call and replacing this with while (1) sleep(1000);

I'm not a programmer and have tried this but pjsua runs and can be placed in the background but I'm unable to dial or use the app.

I have three sound cards and dial three different meetme's on Asterisk with Pjsua, I feed audio into the meetme's using the sound cards Line in and the audio is heard when users dial the meetme.

The problem is because I cant BG the pjsua the meetme die when I log off.

Any suggestion would be very helpful

Thanks

Lloyd

Lloyd Wittebol

JM Finn & Co
4 Coleman Street
London EC2R 5TA
T 020 7600 1660
F 020 3207 3920
jmfinn.com

JM Finn & Co
Registered office: 4 Coleman Street London EC2R 5TA
www.jmfinn.com
JM Finn & Co is a trading name of J.M. Finn & Co. Ltd which is registered in England with number 05772581. Authorised and regulated by The Financial Services Authority. This e-mail and any attachments are intended for the use of the persons to whom it is addressed. It may contain confidential information. If you are not an intended recipient, you must not disclose, distribute, copy or otherwise use the information contained in this e-mail and should ensure that it is deleted from your system. If you have received this e-mail in error, please contact the user by telephone (020 7600 1660). If you encounter any technical problems regarding this e-mail please contact us at helpdesk@jmfinn.com

I know this question has been asked before and a soulution offered by editing the pjsip-apps/src/pjsua/pjsua_app.c , specifically the reference to the console_app() call and replacing this with while (1) sleep(1000); I'm not a programmer and have tried this but pjsua runs and can be placed in the background but I'm unable to dial or use the app. I have three sound cards and dial three different meetme's on Asterisk with Pjsua, I feed audio into the meetme's using the sound cards Line in and the audio is heard when users dial the meetme. The problem is because I cant BG the pjsua the meetme die when I log off. Any suggestion would be very helpful Thanks Lloyd Lloyd Wittebol JM Finn & Co 4 Coleman Street London EC2R 5TA T 020 7600 1660 F 020 3207 3920 jmfinn.com JM Finn & Co Registered office: 4 Coleman Street London EC2R 5TA www.jmfinn.com JM Finn & Co is a trading name of J.M. Finn & Co. Ltd which is registered in England with number 05772581. Authorised and regulated by The Financial Services Authority. This e-mail and any attachments are intended for the use of the persons to whom it is addressed. It may contain confidential information. If you are not an intended recipient, you must not disclose, distribute, copy or otherwise use the information contained in this e-mail and should ensure that it is deleted from your system. If you have received this e-mail in error, please contact the user by telephone (020 7600 1660). If you encounter any technical problems regarding this e-mail please contact us at helpdesk@jmfinn.com
SM
Sebastian Mellmann
Fri, Mar 27, 2009 10:36 AM

I'm not a programmer and have tried this but pjsua runs and can be placed
in the background but I'm unable to dial or use the app.

I'm using 'screen' and a bash script to start PJSUA and put it in the
background.
After that I send commands with 'screen' into the running session, e.g. to
make a call or quit the app properly.

I have three sound cards and dial three different meetme's on Asterisk
with Pjsua, I feed audio into the meetme's using the sound cards Line in
and the audio is heard when users dial the meetme.

The problem is because I cant BG the pjsua the meetme die when I log off.

Any suggestion would be very helpful

Thanks

Lloyd

Regards,
Sebastian

Lloyd Wittebol

JM Finn & Co
4 Coleman Street
London EC2R 5TA
T 020 7600 1660
F 020 3207 3920
jmfinn.com

JM Finn & Co
Registered office: 4 Coleman Street London EC2R 5TA
www.jmfinn.com
JM Finn & Co is a trading name of J.M. Finn & Co. Ltd which is registered
in England with number 05772581. Authorised and regulated by The Financial
Services Authority. This e-mail and any attachments are intended for the
use of the persons to whom it is addressed. It may contain confidential
information. If you are not an intended recipient, you must not disclose,
distribute, copy or otherwise use the information contained in this e-mail
and should ensure that it is deleted from your system. If you have
received this e-mail in error, please contact the user by telephone (020
7600 1660). If you encounter any technical problems regarding this e-mail
please contact us at helpdesk@jmfinn.com


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

> I'm not a programmer and have tried this but pjsua runs and can be placed > in the background but I'm unable to dial or use the app. I'm using 'screen' and a bash script to start PJSUA and put it in the background. After that I send commands with 'screen' into the running session, e.g. to make a call or quit the app properly. > I have three sound cards and dial three different meetme's on Asterisk > with Pjsua, I feed audio into the meetme's using the sound cards Line in > and the audio is heard when users dial the meetme. > > The problem is because I cant BG the pjsua the meetme die when I log off. > > Any suggestion would be very helpful > > Thanks > > Lloyd Regards, Sebastian > Lloyd Wittebol > > JM Finn & Co > 4 Coleman Street > London EC2R 5TA > T 020 7600 1660 > F 020 3207 3920 > jmfinn.com > > > > > > JM Finn & Co > Registered office: 4 Coleman Street London EC2R 5TA > www.jmfinn.com > JM Finn & Co is a trading name of J.M. Finn & Co. Ltd which is registered > in England with number 05772581. Authorised and regulated by The Financial > Services Authority. This e-mail and any attachments are intended for the > use of the persons to whom it is addressed. It may contain confidential > information. If you are not an intended recipient, you must not disclose, > distribute, copy or otherwise use the information contained in this e-mail > and should ensure that it is deleted from your system. If you have > received this e-mail in error, please contact the user by telephone (020 > 7600 1660). If you encounter any technical problems regarding this e-mail > please contact us at helpdesk@jmfinn.com > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
LW
Lloyd Wittebol
Fri, Mar 27, 2009 11:10 AM

Hi thanks for the quick response, I'm familiar with 'screen' I'll give it a try, I'm assumimg I can log off the ssh session and it will still run?

Regards

Lloyd

Lloyd Wittebol

JM Finn & Co
4 Coleman Street
London EC2R 5TA
T 020 7600 1660
F 020 3207 3920
jmfinn.com

From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Sebastian Mellmann
Sent: Friday, March 27, 2009 10:36 AM
To: pjsip list
Subject: Re: [pjsip] Run pjsua in Background

I'm not a programmer and have tried this but pjsua runs and can be placed
in the background but I'm unable to dial or use the app.

I'm using 'screen' and a bash script to start PJSUA and put it in the
background.
After that I send commands with 'screen' into the running session, e.g. to
make a call or quit the app properly.

I have three sound cards and dial three different meetme's on Asterisk
with Pjsua, I feed audio into the meetme's using the sound cards Line in
and the audio is heard when users dial the meetme.

The problem is because I cant BG the pjsua the meetme die when I log off.

Any suggestion would be very helpful

Thanks

Lloyd

Regards,
Sebastian

Lloyd Wittebol

JM Finn & Co
4 Coleman Street
London EC2R 5TA
T 020 7600 1660
F 020 3207 3920
jmfinn.com

JM Finn & Co
Registered office: 4 Coleman Street London EC2R 5TA
www.jmfinn.com
JM Finn & Co is a trading name of J.M. Finn & Co. Ltd which is registered
in England with number 05772581. Authorised and regulated by The Financial
Services Authority. This e-mail and any attachments are intended for the
use of the persons to whom it is addressed. It may contain confidential
information. If you are not an intended recipient, you must not disclose,
distribute, copy or otherwise use the information contained in this e-mail
and should ensure that it is deleted from your system. If you have
received this e-mail in error, please contact the user by telephone (020
7600 1660). If you encounter any technical problems regarding this e-mail
please contact us at helpdesk@jmfinn.com


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

JM Finn & Co
Registered office: 4 Coleman Street London EC2R 5TA
www.jmfinn.com
JM Finn & Co is a trading name of J.M. Finn & Co. Ltd which is registered in England with number 05772581. Authorised and regulated by The Financial Services Authority. This e-mail and any attachments are intended for the use of the persons to whom it is addressed. It may contain confidential information. If you are not an intended recipient, you must not disclose, distribute, copy or otherwise use the information contained in this e-mail and should ensure that it is deleted from your system. If you have received this e-mail in error, please contact the user by telephone (020 7600 1660). If you encounter any technical problems regarding this e-mail please contact us at helpdesk@jmfinn.com

Hi thanks for the quick response, I'm familiar with 'screen' I'll give it a try, I'm assumimg I can log off the ssh session and it will still run? Regards Lloyd Lloyd Wittebol JM Finn & Co 4 Coleman Street London EC2R 5TA T 020 7600 1660 F 020 3207 3920 jmfinn.com From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Sebastian Mellmann Sent: Friday, March 27, 2009 10:36 AM To: pjsip list Subject: Re: [pjsip] Run pjsua in Background > I'm not a programmer and have tried this but pjsua runs and can be placed > in the background but I'm unable to dial or use the app. I'm using 'screen' and a bash script to start PJSUA and put it in the background. After that I send commands with 'screen' into the running session, e.g. to make a call or quit the app properly. > I have three sound cards and dial three different meetme's on Asterisk > with Pjsua, I feed audio into the meetme's using the sound cards Line in > and the audio is heard when users dial the meetme. > > The problem is because I cant BG the pjsua the meetme die when I log off. > > Any suggestion would be very helpful > > Thanks > > Lloyd Regards, Sebastian > Lloyd Wittebol > > JM Finn & Co > 4 Coleman Street > London EC2R 5TA > T 020 7600 1660 > F 020 3207 3920 > jmfinn.com > > > > > > JM Finn & Co > Registered office: 4 Coleman Street London EC2R 5TA > www.jmfinn.com > JM Finn & Co is a trading name of J.M. Finn & Co. Ltd which is registered > in England with number 05772581. Authorised and regulated by The Financial > Services Authority. This e-mail and any attachments are intended for the > use of the persons to whom it is addressed. It may contain confidential > information. If you are not an intended recipient, you must not disclose, > distribute, copy or otherwise use the information contained in this e-mail > and should ensure that it is deleted from your system. If you have > received this e-mail in error, please contact the user by telephone (020 > 7600 1660). If you encounter any technical problems regarding this e-mail > please contact us at helpdesk@jmfinn.com > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org JM Finn & Co Registered office: 4 Coleman Street London EC2R 5TA www.jmfinn.com JM Finn & Co is a trading name of J.M. Finn & Co. Ltd which is registered in England with number 05772581. Authorised and regulated by The Financial Services Authority. This e-mail and any attachments are intended for the use of the persons to whom it is addressed. It may contain confidential information. If you are not an intended recipient, you must not disclose, distribute, copy or otherwise use the information contained in this e-mail and should ensure that it is deleted from your system. If you have received this e-mail in error, please contact the user by telephone (020 7600 1660). If you encounter any technical problems regarding this e-mail please contact us at helpdesk@jmfinn.com
LW
Lloyd Wittebol
Fri, Mar 27, 2009 11:12 AM

Ignore my last question, I know that screen allows you too logout and log back into the same screen/session.

Regards

Lloyd

Lloyd Wittebol

JM Finn & Co
4 Coleman Street
London EC2R 5TA
T 020 7600 1660
F 020 3207 3920
jmfinn.com

From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Sebastian Mellmann
Sent: Friday, March 27, 2009 10:36 AM
To: pjsip list
Subject: Re: [pjsip] Run pjsua in Background

I'm not a programmer and have tried this but pjsua runs and can be placed
in the background but I'm unable to dial or use the app.

I'm using 'screen' and a bash script to start PJSUA and put it in the
background.
After that I send commands with 'screen' into the running session, e.g. to
make a call or quit the app properly.

I have three sound cards and dial three different meetme's on Asterisk
with Pjsua, I feed audio into the meetme's using the sound cards Line in
and the audio is heard when users dial the meetme.

The problem is because I cant BG the pjsua the meetme die when I log off.

Any suggestion would be very helpful

Thanks

Lloyd

Regards,
Sebastian

Lloyd Wittebol

JM Finn & Co
4 Coleman Street
London EC2R 5TA
T 020 7600 1660
F 020 3207 3920
jmfinn.com

JM Finn & Co
Registered office: 4 Coleman Street London EC2R 5TA
www.jmfinn.com
JM Finn & Co is a trading name of J.M. Finn & Co. Ltd which is registered
in England with number 05772581. Authorised and regulated by The Financial
Services Authority. This e-mail and any attachments are intended for the
use of the persons to whom it is addressed. It may contain confidential
information. If you are not an intended recipient, you must not disclose,
distribute, copy or otherwise use the information contained in this e-mail
and should ensure that it is deleted from your system. If you have
received this e-mail in error, please contact the user by telephone (020
7600 1660). If you encounter any technical problems regarding this e-mail
please contact us at helpdesk@jmfinn.com


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

JM Finn & Co
Registered office: 4 Coleman Street London EC2R 5TA
www.jmfinn.com
JM Finn & Co is a trading name of J.M. Finn & Co. Ltd which is registered in England with number 05772581. Authorised and regulated by The Financial Services Authority. This e-mail and any attachments are intended for the use of the persons to whom it is addressed. It may contain confidential information. If you are not an intended recipient, you must not disclose, distribute, copy or otherwise use the information contained in this e-mail and should ensure that it is deleted from your system. If you have received this e-mail in error, please contact the user by telephone (020 7600 1660). If you encounter any technical problems regarding this e-mail please contact us at helpdesk@jmfinn.com

Ignore my last question, I know that screen allows you too logout and log back into the same screen/session. Regards Lloyd Lloyd Wittebol JM Finn & Co 4 Coleman Street London EC2R 5TA T 020 7600 1660 F 020 3207 3920 jmfinn.com From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Sebastian Mellmann Sent: Friday, March 27, 2009 10:36 AM To: pjsip list Subject: Re: [pjsip] Run pjsua in Background > I'm not a programmer and have tried this but pjsua runs and can be placed > in the background but I'm unable to dial or use the app. I'm using 'screen' and a bash script to start PJSUA and put it in the background. After that I send commands with 'screen' into the running session, e.g. to make a call or quit the app properly. > I have three sound cards and dial three different meetme's on Asterisk > with Pjsua, I feed audio into the meetme's using the sound cards Line in > and the audio is heard when users dial the meetme. > > The problem is because I cant BG the pjsua the meetme die when I log off. > > Any suggestion would be very helpful > > Thanks > > Lloyd Regards, Sebastian > Lloyd Wittebol > > JM Finn & Co > 4 Coleman Street > London EC2R 5TA > T 020 7600 1660 > F 020 3207 3920 > jmfinn.com > > > > > > JM Finn & Co > Registered office: 4 Coleman Street London EC2R 5TA > www.jmfinn.com > JM Finn & Co is a trading name of J.M. Finn & Co. Ltd which is registered > in England with number 05772581. Authorised and regulated by The Financial > Services Authority. This e-mail and any attachments are intended for the > use of the persons to whom it is addressed. It may contain confidential > information. If you are not an intended recipient, you must not disclose, > distribute, copy or otherwise use the information contained in this e-mail > and should ensure that it is deleted from your system. If you have > received this e-mail in error, please contact the user by telephone (020 > 7600 1660). If you encounter any technical problems regarding this e-mail > please contact us at helpdesk@jmfinn.com > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org JM Finn & Co Registered office: 4 Coleman Street London EC2R 5TA www.jmfinn.com JM Finn & Co is a trading name of J.M. Finn & Co. Ltd which is registered in England with number 05772581. Authorised and regulated by The Financial Services Authority. This e-mail and any attachments are intended for the use of the persons to whom it is addressed. It may contain confidential information. If you are not an intended recipient, you must not disclose, distribute, copy or otherwise use the information contained in this e-mail and should ensure that it is deleted from your system. If you have received this e-mail in error, please contact the user by telephone (020 7600 1660). If you encounter any technical problems regarding this e-mail please contact us at helpdesk@jmfinn.com