Some time ago I wrote a spec file for latest kphone (4.0.1) for
RH/Fedora. Maybe some of you will find it usefully. I tested on my
computer but I have installed all libraries needed by old kphone
versions (KDE dependent). If someone has a KDE-clean system and gets
some dependency problems, just drop a mail and I will try to fix the spec.
.Daniel
%define name kphone
%define ver 4.0.1
%define rel 0
Summary: KPhone - SIP user agent
Name: %name
Version: %ver
Release: %rel
License: GPL
Group: Applications/Internet
Source: http://www.wirlab.net/kphone/%{name}-%{ver}.tgz
URL: http://www.wirlab.net/kphone/index.html
Packager: Daniel Mierla <daniel(a)iptel.org>
Requires: qt >= 3.0.0
Requires: XFree86-libs >= 4.0.0
Requires: openssl >= 0.9.6
Requires: libpng >= 1.0.0
BuildPrereq: XFree86-devel >= 4.0.0
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
%description
KPhone is a SIP (Session Initiation Protocol) user agent for Linux,
with which you can initiate VoIP (Voice over IP) connections over the
Internet. It supports Presence and Instant Messaging, and, to some extent,
video calls between two hosts.
%prep
%setup
%build
%configure
%{__make}
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
install -d $RPM_BUILD_ROOT%{_sysconfdir}/X11/applnk/Internet
install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/icons
install -d $RPM_BUILD_ROOT%{_docdir}/%{name}
install -d $RPM_BUILD_ROOT%{_bindir}
echo -e "[Desktop Entry]\nName=KPhone\nComment=SIP User Agent\nExec=%{_bindir}/%{name}\nIcon=%{_datadir}/%{name}/icons/large-kphone.png\nTerminal=0\nType=Application" >$RPM_BUILD_ROOT%{_sysconfdir}/X11/applnk/Internet/%{name}.desktop
install -m644 icons/*.png $RPM_BUILD_ROOT%{_datadir}/%{name}/icons/
install -m755 kphone/kphone $RPM_BUILD_ROOT%{_bindir}/kphone
install -m644 README $RPM_BUILD_ROOT%{_docdir}/%{name}/README
install -m644 COPYING $RPM_BUILD_ROOT%{_docdir}/%{name}/COPYING
install -m644 CHANGES $RPM_BUILD_ROOT%{_docdir}/%{name}/CHANGES
%post
%postun
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/kphone
%{_sysconfdir}/X11/applnk/Internet/%{name}.desktop
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/icons
%{_datadir}/%{name}/icons/dial.png
%{_datadir}/%{name}/icons/enter.png
%{_datadir}/%{name}/icons/hangup.png
%{_datadir}/%{name}/icons/large-kphone.png
%{_datadir}/%{name}/icons/lo-kphone.png
%{_datadir}/%{name}/icons/mini-kphone.png
%{_datadir}/%{name}/icons/offline.png
%{_datadir}/%{name}/icons/online.png
%{_datadir}/%{name}/icons/phonebook.png
%{_datadir}/%{name}/icons/videocall.png
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/README
%doc %{_docdir}/%{name}/CHANGES
%doc %{_docdir}/%{name}/COPYING
%changelog
* Thu Feb 12 2004 Daniel Mierla <daniel(a)iptel.org>
- Initial version for RH/Fedora
i have written a small module but need one help in it...i am able to return
only two values from my function...like 1 or -1 only two values work in
ser.cfg...either i can return true or false....is there anyway i can return
more than one value and treat them in ser.cfg and then depending upon
returned value from module....can do specific action.....
_________________________________________________________________
Skin is in! Bollywood is sizzling.
http://server1.msn.co.in/slideshow/striptease/ Check out these hot pics!
Thx Jan i am working on it now
>From: Jan Janak <jan(a)iptel.org>
>To: Kapil Dhawan <sersavvy(a)hotmail.com>
>CC: serusers(a)lists.iptel.org
>Subject: Re: [Serusers] Own Module
>Date: Thu, 4 Mar 2004 12:42:50 +0100
>
>See how registrar module looks for usrloc module functions.
>
> Jan.
>
>On 03-03 16:32, Kapil Dhawan wrote:
> > Hi i want to allow other ppl to use my declared function..how can this
>be
> > done....
> >
> > what i have done is..i have properly declared a function call like this
> >
> > {"load_tm", (cmd_function)load_tm, NO_SCRIPT, 0,
>0},
> >
> > as in tm module...but how can we include all this stuff in some other
> > module or lets say....vm module declares one function called vm_action
> > which can be called by ser.cfg only...but i will change it to be called
> > from other modules as well...now in my module how can i use that
>function
> > vm_action...how to define it..etc...i hope i explained my problem....
> >
> >
> > regards
> >
> > _________________________________________________________________
> > Skin is in! Bollywood is sizzling.
> > http://server1.msn.co.in/slideshow/striptease/ Check out these hot pics!
> >
> > _______________________________________________
> > Serusers mailing list
> > serusers(a)lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
_________________________________________________________________
Contact brides & grooms FREE! http://www.shaadi.com/ptnr.php?ptnr=hmltag
Only on www.shaadi.com. Register now!
thx i am trying it now
>From: Daniel-Constantin Mierla <daniel(a)iptel.org>
>Reply-To: daniel(a)iptel.org
>To: Kapil Dhawan <sersavvy(a)hotmail.com>
>CC: serusers(a)lists.iptel.org
>Subject: Re: [Serusers] SER module
>Date: Thu, 04 Mar 2004 13:08:59 +0100
>
>One way around "having many return values" is to keep a global variable
>into your module which stores the code and an exported function that check
>this value.
>
>You would have
>
>if(do_whatever(...))
>{ # function processed, no check the code
> if(check_whatever_code("1")) # that returns true of the code is 1
> {
> };
> if(check_whatever_code("2")) # and so on...
> {
> };
>};
>
>.Daniel
>
>On 3/3/2004 10:43 PM, Andrei Pelinescu-Onciul wrote:
>
>>On Mar 03, 2004 at 13:48, Kapil Dhawan <sersavvy(a)hotmail.com> wrote:
>>
>>
>>>i have written a small module but need one help in it...i am able to
>>>return only two values from my function...like 1 or -1 only two values
>>>work in ser.cfg...either i can return true or false....is there anyway i
>>>can return more than one value and treat them in ser.cfg and then
>>>depending upon returned value from module....can do specific action.....
>>>
>>>
>>
>>You can return 3 values: 1 (true), -1 (false) and 0 (which will stop the
>>script processing, equivalent with break or drop).
>>
>>Right you can't return more values and there is no way to treat them in
>>ser.cfg. This will change when we will add variables and functions in
>>script.
>>
>>Andrei
>>
>>P.S.: for development please use serdev(a)lists.iptel.org
>>
>>
>>>_________________________________________________________________
>>>Skin is in! Bollywood is sizzling.
>>>http://server1.msn.co.in/slideshow/striptease/ Check out these hot pics!
>>>
>>>_______________________________________________
>>>Serusers mailing list
>>>serusers(a)lists.iptel.org
>>>http://lists.iptel.org/mailman/listinfo/serusers
>>>
>>>
>>
>>_______________________________________________
>>Serusers mailing list
>>serusers(a)lists.iptel.org
>>http://lists.iptel.org/mailman/listinfo/serusers
>>
>>
>>
_________________________________________________________________
INDIA TODAY @ Rs. 5 for 5 years !
http://www.indiatoday.com/itoday/intlsubscription/itsubs/it_offer.html
Subcribe Now ...
Hi,
I'm trying SER postgres module. How can i create the database tables? Are there a script? A ser.cfg using postgres module will be valuable too.
Thank you in advance, best regards.
G.
Hello,
I would like to know if SER can support dabases other than MySQL, (e.g. Microsoft SQL, Oracle...etc)
If yes, How is it possible?
Thanks
Adil Laari
Hi!
I'm in some trouble with my SER and rtpproxy, the problem is simple (I think),
during a call, I can see ACK debug messages and in ngrep, but afet 30 seconds
after pink up phone, the call are hang-up.
Take a look in this debug from ser.cfg:
0(8226) >=====> remember this is ATA
0(8226) INVITE
The phone rings, ok!
0(8226) >=====> force_rtp_proxy
0(8226) >=====> yes, it is a request for our domain
0(8226) >=====> Forwarding to PSTN
0(8226) >=====> going to primus
0(8226) >=====> reply 1
0(8226) >=====> remember this is ATA
Pick-up and can speak and listen!
0(8226) ACK
0(8226) >=====> yes, it is a request for our domain
0(8226) >=====> Forwarding to PSTN
0(8226) >=====> going to primus
0(8226) >=====> remember this is ATA
0(8226) INVITE
0(8226) >=====> force_rtp_proxy
0(8226) >=====> yes, it is a request for our domain
0(8226) >=====> Forwarding to PSTN
0(8226) >=====> going to primus
0(8226) >=====> remember this is ATA
0(8226) ACK
0(8226) >=====> yes, it is a request for our domain
0(8226) >=====> Forwarding to PSTN
0(8226) >=====> going to primus
0(8226) >=====> reply 1
0(8226) >=====> remember this is ATA
0(8226) ACK
0(8226) >=====> yes, it is a request for our domain
0(8226) >=====> Forwarding to PSTN
0(8226) >=====> going to primus
0(8226) >=====> reply 1
0(8226) >=====> reply force_rtp_proxy
0(8226) >=====> reply 1
0(8226) >=====> reply force_rtp_proxy
0(8226) >=====> remember this is ATA
0(8226) ACK
0(8226) >=====> reply 1
0(8226) >=====> reply force_rtp_proxy
0(8226) >=====> remember this is ATA
0(8226) ACK
0(8226) >=====> remember this is ATA
0(8226) ACK
0(8226) >=====> reply 1
0(8226) >=====> reply force_rtp_proxy
0(8226) >=====> remember this is ATA
Can speak and listen.
0(8226) ACK
0(8226) >=====> reply 1
0(8226) >=====> reply force_rtp_proxy
0(8226) >=====> remember this is ATA
0(8226) ACK
After this, the loop dont pass anymore on t_on_reply("1");
0(8226) >=====> remember this is ATA
0(8226) ACK
0(8226) >=====> remember this is ATA
0(8226) ACK
0(8226) >=====> remember this is ATA
0(8226) ACK
0(8226) >=====> remember this is ATA
0(8226) ACK
0(8226) >=====> remember this is ATA
0(8226) BYE
0(8226) >=====> remember this is ATA
0(8226) ACK
Regards.
--
|o
|o Learn the rules so you know how to break them properly. -- Dalai
|o Lama
|o
|o Fabio Silvestri
|o fabio(a)informatec.com.br
|o ICQ: 1667351
|o
I am running a SER proxy, and have sucessfully connected to it. Now I would
like to set up the proxy to make and receive telephone calls using my
Deltathree account to do so. I don't just want to proxy requests from my
clients directly to the Deltathree server - I want the SER proxy to act like
a client, register with deltathree (which requires digest authentication),
and then when I make calls to a tel: url send them to Deltathree. Also when
calls come in from Deltathree, I'd like all my telephones to ring at the
same time - so I can pick up my calls whether I'm logged in at work on my
PC, or from my Grandstream at home. All my clients would register with my
server using my own local username and password. Only the server would know
the username and password for the Deltathree account.
To do this I think I need 2 things that SER does not do.
1. Generate a REGISTER request at startup, and maintain a registration. 2.
Be able to respond to a "407 Unauthorized" by retrying a request with
authentication.
Is there anything else I need?
Where would this best be implemented - as a module, a fifo extension?
Simon
Guys,
I have ser-0.8.12 installed, and I'm tring to install SERWEB. I download
serweb_2004-01-04, but the table fields do not match. Is there a fix for
serweb? How do I get it? serweb seems a little hard to get then ser, could
someone please help?
-Greg