[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Linphone-users] External interaction with linphonec 2.1.1
From: |
address@hidden |
Subject: |
Re: [Linphone-users] External interaction with linphonec 2.1.1 |
Date: |
Fri, 12 Feb 2010 13:00:26 +0100 |
Hi,
I start linphone with the --pipe argument:
voyage:~# linphonec --pipe
ALSA lib conf.c:3952:(snd_config_expand) Unknown parameters 0
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL default:0
Ready
Warning: video is disabled in linphonec, use -V or -C or -D to enable.
linphonec> Registration on sip:10.1.1.3 successful.
I see that it creates the file socket:
voyage:~# find /tmp/
/tmp/
/tmp/linphonec-0
I confirm that the process number is not 0:
voyage:~# ps fax|grep -i lin|grep -v grep
23045 pts/1 Sl+ 0:00 | \_ linphonec --pipe
and when trying to communicate with linphone I get:
voyage:~# echo "call 203" | /tmp/linphonec-0
-bash: /tmp/linphonec-0: Permission denied
-bash: echo: write error: Broken pipe
thanks for your attention,
Mike
On Tue, 09 Feb 2010 17:11:26 +0100
Simon Morlat <address@hidden> wrote:
> Hi Mike,
>
> Yes, with version 3.1 and later you can use linphonecsh (see man
> linphonecsh ) to control a linphonec running in background.
> It is not really a programmatic api, but a kind of scripting api.
>
> If you want raw access to linphonec's pipe, start linphonec --pipe and
> send commands using a UNIX named pipe to /tmp/linphonec-<uid>, where uid
> is you used id as returned by the 'id' unix command.
>
> Simon
>
> Le mardi 09 février 2010 à 16:29 +0100, address@hidden a écrit :
> > Hi All, first post here :)
> >
> > I'm currently running the Debian Lenny version of linphone (2.1.1) but to
> > compile a newer version would not be a problem.
> >
> > Question: is it possible to control (dial a number, terminate) linphonec
> > from an external api ?
> > Something like a socket or a pipe.
> >
> >
> > Thanks for supporting,
> > have a nice day.
> > Mike
> >
> >
> > _______________________________________________
> > Linphone-users mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/linphone-users
>
>