create log file without quit from pjsua, quit automatically from pjsua

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for your reply,

I run pjsua in rc.local as below:

(sleep 20; echo q) | ./pjsua --config-file config.cfg sip:**@*****

After 20 seconds, it quit automatically. This link help me:
http://aminastaneh.net/2012-05-06/fun-with-command-line-sip.html


<http://aminastaneh.net/2012-05-06/fun-with-command-line-sip.html>

I don't know whether this method right or not?!

The os on qemues is vyatta.


On Sat, Oct 18, 2014 at 7:21 PM, Bill Gardner <billg at wavearts.com> wrote:

>  The logfile output is buffered in the OS and is written when pjsua quits.
> When enough information is written to logfile it will get written to disk,
> so if you increase the log level or make additional calls you should see
> data written to the logfile while pjsua is running.
>
> Bill
>
>
> On 10/18/2014 3:37 AM, Fatemeh Mehdizadeh wrote:
>
>  Hello,
>
>  I install pjsua on two qemues for my voice tests(q1 call q2). I need log
> file so in config file I add --log-file log.txt and --log-level 3. But I
> must type "q" to quit from pjsua and then log file create.
>
>  *my config file is:*
>  --id sip:**@*****
>  --registrar sip:***
>  --realm ****
>  --username **
>  --auto-answer 200
>  --duration 20
>  --null-audio
>  --log-file log.txt
>  --log-level 3
>
>  I do not care that get out of the pjsus, I just need the log file.
>
> Is that any way to create log file without quiting from pjsua?
>  *or*
>  Is that any way except writing code to quit from pjsua after some
> seconds?
>  Thanks
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing listpjsip at lists.pjsip.orghttp://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20141019/bc8b4b29/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux