Discussion:
Headless sip client?
Luca Olivetti
2007-03-27 07:31:31 UTC
Permalink
Hello,

I'm trying to use an usb phone under Linux. I already successfully used
Lazarus with libusb to quickly test the communication protocol that I
reverse engineered, so I can control the phone. My ultimate goal is to
connect the phone to a headless server, something like this:

http://www.devbase.at/voip/yeaphone.php
(my server, btw, is a linkstation pro, so it's arm based too, I suppose
that as long as I don't use the LCL but only the FCL that should be fine)

but obviously I'd avoid the pain of coding it in C ;-)

I thoght of a couple of options

1) do the same as yeaphone and use the linphone library after conversion
of the header with h2pas. This would be relatively straightforward,
however I'm not sure it will work (the library is heavily callback
based, besides I'll need the same patch to be informed of the status of
linphone)

2) try to port the non-visual parts of SIPInside
http://tothpaul.free.fr/sources.php?dprtcp.sipinside

I'd prefer the second option (everything in pascal), but then I'd need
good audio library (ACS maybe?) and I don't know yet how difficult it
would be to port (I suppose that, with some coaxing, I could use synapse
where sipinside uses winsock).

Any suggestion, other option, anything?

TIA

Bye
--
Luca

A: Because it destroys the flow of the conversation
Q: Why is it bad?
A: No, it's bad.
Q: Should I top post in replies to mailing lists?
ik
2007-03-27 12:55:20 UTC
Permalink
Hello,

I have a plan to implement both IAX2 and SIP in natural protocol using
FPC (at the moment i only have a problem for lack of time) .

The implementation will use LNET rather then any havy library.


Having said that, now to your questions. Why won't you use softphone
rather then usb VOIP phone?

Ido
Post by Luca Olivetti
Hello,
I'm trying to use an usb phone under Linux. I already successfully used
Lazarus with libusb to quickly test the communication protocol that I
reverse engineered, so I can control the phone. My ultimate goal is to
http://www.devbase.at/voip/yeaphone.php
(my server, btw, is a linkstation pro, so it's arm based too, I suppose
that as long as I don't use the LCL but only the FCL that should be fine)
but obviously I'd avoid the pain of coding it in C ;-)
I thoght of a couple of options
1) do the same as yeaphone and use the linphone library after conversion
of the header with h2pas. This would be relatively straightforward,
however I'm not sure it will work (the library is heavily callback
based, besides I'll need the same patch to be informed of the status of
linphone)
2) try to port the non-visual parts of SIPInside
http://tothpaul.free.fr/sources.php?dprtcp.sipinside
I'd prefer the second option (everything in pascal), but then I'd need
good audio library (ACS maybe?) and I don't know yet how difficult it
would be to port (I suppose that, with some coaxing, I could use synapse
where sipinside uses winsock).
Any suggestion, other option, anything?
TIA
Bye
--
Luca
A: Because it destroys the flow of the conversation
Q: Why is it bad?
A: No, it's bad.
Q: Should I top post in replies to mailing lists?
_________________________________________________________________
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
--
http://ik.homelinux.org/
Luca Olivetti
2007-03-27 13:36:04 UTC
Permalink
Post by ik
Having said that, now to your questions. Why won't you use softphone
rather then usb VOIP phone?
The "usb phone" is actually a glorified soundcard with a keypad, a
display and a ringer, so, yes, I'll need a softphone, but it has to be
controlled exclusively by the phone keypad and display everything on the
phone display, and signal incoming calls with the ringer.
Please look again at the yeaphone project , I want to do something
similar but with a different phone (mine is wireless and more
featureful) and in pascal ;-) but the motivation is the same
http://www.devbase.at/voip/yeaphone.php

Bye
--
Luca

A: Because it destroys the flow of the conversation
Q: Why is it bad?
A: No, it's bad.
Q: Should I top post in replies to mailing lists?
Luca Olivetti
2007-03-30 10:44:02 UTC
Permalink
Post by Luca Olivetti
Hello,
I'm trying to use an usb phone under Linux. I already successfully used
Lazarus with libusb to quickly test the communication protocol that I
reverse engineered, so I can control the phone. My ultimate goal is to
http://www.devbase.at/voip/yeaphone.php
(my server, btw, is a linkstation pro, so it's arm based too, I suppose
that as long as I don't use the LCL but only the FCL that should be fine)
but obviously I'd avoid the pain of coding it in C ;-)
I thoght of a couple of options
1) do the same as yeaphone and use the linphone library after conversion
of the header with h2pas. This would be relatively straightforward,
however I'm not sure it will work (the library is heavily callback
based, besides I'll need the same patch to be informed of the status of
linphone)
2) try to port the non-visual parts of SIPInside
http://tothpaul.free.fr/sources.php?dprtcp.sipinside
I'd prefer the second option (everything in pascal), but then I'd need
good audio library (ACS maybe?) and I don't know yet how difficult it
would be to port (I suppose that, with some coaxing, I could use synapse
where sipinside uses winsock).
Well, I tried both approaches. I started with the SIP component of
SIPInside, but, though I succeeded in sending and receiving data, my
registrar tells me that it's sending an invalid request, and I think
it's because SIPInside is not fully sip compliant. Instead of debugging
it more (considering that then I had to port STUN, RTP and audio
components) I tried to use linphone. Converting the h file was a pain
(and I'm not completely satisfied with the result), but at least basic
functionality is working (register, make calls, receive calls).
I'm testing it on x86, I hope that it'll work when I compile it for arm.

Bye
--
Luca

A: Because it destroys the flow of the conversation
Q: Why is it bad?
A: No, it's bad.
Q: Should I top post in replies to mailing lists?
ik
2007-03-30 11:00:19 UTC
Permalink
Hi,

Please try the soft-phone called twinkle (by the house of KDE), or if
you simply wish to create tests for SIP, use SIPp
(http://sipp.sourceforge.net/).

Ido
Post by Luca Olivetti
Post by Luca Olivetti
Hello,
I'm trying to use an usb phone under Linux. I already successfully used
Lazarus with libusb to quickly test the communication protocol that I
reverse engineered, so I can control the phone. My ultimate goal is to
http://www.devbase.at/voip/yeaphone.php
(my server, btw, is a linkstation pro, so it's arm based too, I suppose
that as long as I don't use the LCL but only the FCL that should be fine)
but obviously I'd avoid the pain of coding it in C ;-)
I thoght of a couple of options
1) do the same as yeaphone and use the linphone library after conversion
of the header with h2pas. This would be relatively straightforward,
however I'm not sure it will work (the library is heavily callback
based, besides I'll need the same patch to be informed of the status of
linphone)
2) try to port the non-visual parts of SIPInside
http://tothpaul.free.fr/sources.php?dprtcp.sipinside
I'd prefer the second option (everything in pascal), but then I'd need
good audio library (ACS maybe?) and I don't know yet how difficult it
would be to port (I suppose that, with some coaxing, I could use synapse
where sipinside uses winsock).
Well, I tried both approaches. I started with the SIP component of
SIPInside, but, though I succeeded in sending and receiving data, my
registrar tells me that it's sending an invalid request, and I think
it's because SIPInside is not fully sip compliant. Instead of debugging
it more (considering that then I had to port STUN, RTP and audio
components) I tried to use linphone. Converting the h file was a pain
(and I'm not completely satisfied with the result), but at least basic
functionality is working (register, make calls, receive calls).
I'm testing it on x86, I hope that it'll work when I compile it for arm.
Bye
--
Luca
A: Because it destroys the flow of the conversation
Q: Why is it bad?
A: No, it's bad.
Q: Should I top post in replies to mailing lists?
_________________________________________________________________
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
--
http://ik.homelinux.org/
Luca Olivetti
2007-03-30 11:24:55 UTC
Permalink
Post by ik
Hi,
Please try the soft-phone called twinkle (by the house of KDE), or if
you simply wish to create tests for SIP, use SIPp
(http://sipp.sourceforge.net/).
Hi, yes, I normally use twinkle, but for this project isn't really
suitable, unless there's a way to make it work headless and controlling
it completely from a freepascal program.

Bye
--
Luca

A: Because it destroys the flow of the conversation
Q: Why is it bad?
A: No, it's bad.
Q: Should I top post in replies to mailing lists?
ik
2007-03-30 11:51:23 UTC
Permalink
Have you tried using it using dcop ?

Ido
Post by Luca Olivetti
Post by ik
Hi,
Please try the soft-phone called twinkle (by the house of KDE), or if
you simply wish to create tests for SIP, use SIPp
(http://sipp.sourceforge.net/).
Hi, yes, I normally use twinkle, but for this project isn't really
suitable, unless there's a way to make it work headless and controlling
it completely from a freepascal program.
Bye
--
Luca
A: Because it destroys the flow of the conversation
Q: Why is it bad?
A: No, it's bad.
Q: Should I top post in replies to mailing lists?
_________________________________________________________________
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
--
http://ik.homelinux.org/
Luca Olivetti
2007-03-30 12:56:14 UTC
Permalink
Post by ik
Have you tried using it using dcop ?
No, I wouldn't even know how to start (and a quick search on the
freepascal site, either using its search or google, doesn't offer any
hint). And then it has to be seen if it could work on an arm machine,
with limited memory and no X in sight.
It's much simpler to just call, e.g., linphone_core_invite(@lc,number)
to make a call (and linphone *is* working on arm, and there's an arm
version of the fpc compiler).
Anyway, I plan to write a separate class managing the conversation with
the usb phone, so you can do whatever you want with it if you happen to
have the same model.

Bye
--
Luca

A: Because it destroys the flow of the conversation
Q: Why is it bad?
A: No, it's bad.
Q: Should I top post in replies to mailing lists?
Continue reading on narkive:
Search results for 'Headless sip client?' (Questions and Answers)
24
replies
whats the best lyric in rock history?
started 2007-06-24 16:21:20 UTC
music
Loading...