Dear all,
Thank you very much to Karel Kozlik and all of you who always kind-hearted to help me. Thank you very much.
Karel, I have tried your suggestion in installing serweb. I have installed the DB-1.7.6 and classkit-0.4 .
This is the installation message :
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
running: make INSTALL_ROOT="/var/tmp/pear-build-root/install-classkit-0.4" insta ll
Installing shared extensions: /var/tmp/pear-build-root/install-classkit-0.4/ usr/lib/php/modules/
running: find "/var/tmp/pear-build-root/install-classkit-0.4" -ls
362402 8 drwxr-xr-x 3 root root 4096 Sep 12 16:54 /var/tmp/pear -build-root/install-classkit-0.4
362423 8 drwxr-xr-x 3 root root 4096 Sep 12 16:54 /var/tmp/pear -build-root/install-classkit-0.4/usr
362424 8 drwxr-xr-x 3 root root 4096 Sep 12 16:54 /var/tmp/pear -build-root/install-classkit-0.4/usr/lib
362425 8 drwxr-xr-x 3 root root 4096 Sep 12 16:54 /var/tmp/pear -build-root/install-classkit-0.4/usr/lib/php
362426 8 drwxr-xr-x 2 root root 4096 Sep 12 16:54 /var/tmp/pear -build-root/install-classkit-0.4/usr/lib/php/modules
362422 60 -rwxr-xr-x 1 root root 49885 Sep 12 16:54 /var/tmp/pear -build-root/install-classkit-0.4/usr/lib/php/modules/classkit.so
Build process completed successfully
Installing '/var/tmp/pear-build-root/install-classkit-0.4//usr/lib/php/modules/c lasskit.so'
install ok: classkit 0.4
Segmentation fault
But when I tried to run it in the browser, the error message.
The message says :
Function aggregate_methods() doesn't exists. Try install Classkit extension. http://pecl.php.net/package/classkit
I have add "extension=classkit.so" in php.ini file. But why this message still appear?
When I tried to look the error_log file in /var/log/httpd/, I got this error message:
[Tue Sep 12 16:59:45 2006] [notice] Digest: generating secret for digest authentication ...
[Tue Sep 12 16:59:45 2006] [notice] Digest: done
[Tue Sep 12 16:59:45 2006] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Tue Sep 12 16:59:45 2006] [notice] LDAP: SSL support unavailable
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/classkit.so' - /usr/lib/php/modules/classkit.so: cannot open shared object file: Permission denied in Unknown on line 0
[Tue Sep 12 16:59:45 2006] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue Sep 12 16:59:45 2006] [notice] Apache/2.0.54 (Fedora) configured -- resuming normal operations
[Tue Sep 12 17:00:04 2006] [error] [client 202.95.149.251] File does not exist: /var/www/serweb/html/favicon.ico
[Tue Sep 12 17:00:12 2006] [error] [client 202.95.149.251] File does not exist: /var/www/serweb/html/favicon.ico
Sep 12 11:56:07 sip kernel: audit(1158036967.878:16): avc: denied { read } for pid=2958 comm="httpd" name="classkit.so" dev=hdb6 ino=1499281 scontext=root:system_r:httpd_t:s0 tcontext=root:object_r:tmp_t:s0 tclass=file
Sep 12 11:56:07 sip kernel: audit(1158036967.878:17): avc: denied { read } for pid=2958 comm="httpd" name="classkit.so" dev=hdb6 ino=1499281 scontext=root:system_r:httpd_t:s0 tcontext=root:object_r:tmp_t:s0 tclass=file
Sep 12 11:56:11 sip kernel: audit(1158036971.482:18): avc: denied { read } for pid=2978 comm="httpd" name="classkit.so" dev=hdb6 ino=1499281 scontext=root:system_r:httpd_t:s0 tcontext=root:object_r:tmp_t:s0 tclass=file
Sep 12 11:56:11 sip kernel: audit(1158036971.482:19): avc: denied { read } for pid=2978 comm="httpd" name="classkit.so" dev=hdb6 ino=1499281 scontext=root:system_r:httpd_t:s0 tcontext=root:object_r:tmp_t:s0 tclass=file
As I read from the error message, the file classkit.so can not be loaded? Why? Would you mind give me a solution? Please....
Thank you very much,
Regards,
Ferianto
Karel Kozlik <karel(a)iptel.org> wrote: Hi,
> Thank you much for your help. I am very happy to read this relpy message
> from you . Thanks you..thank you very much.
> Karel, may I ask you again..Please..
> What you mean by pear library?
> I am using Fedora Core 5 and I found these packages are installed in my
sorry, I don't know Fedora
>
> Do you mean that pear library is *php-pear-1.4.6-2 *that is installed?
I think so.
Karel
> or I have install pear again?
> Please help me..Karel.. I too lack. Please...
>
> Thank you very much..Thank you.
>
>
> Regards,
>
> Ferianto
>
> */Karel Kozlik /* wrote:
>
> Hi,
>
> > 1. I have downloaded from pear.net the DB packet. The version of the
> > packet is DB-1.7.6. I have untar it in root directory. I can
> found the
> > file DB.php in it. But I am confused, where should I place this
> > DB.php file? So I can solve this error? Would ypu mind telling
> me..Please..
> > Sould I have internet connection to install it? Because I do not
> have
> > internet connection now.
>
> Please read the documentation!
> http://pear.php.net/manual/en/installation.cli.php
>
> You should not untar the file in clasic way. You should use:
> pear install .tgz
> instead. You have to have 'pear' binary installed before, of course. I
> don't know what OS are you useing. There should be some package
> containing the 'pear' binary. If there is not, read the instructions
> here:
> http://pear.php.net/manual/en/installation.getting.php
>
>
> > 2. Would you mind telling me what you mean by "fix include_path
> in your
> > php.ini".
> > Would you mind give me an example? Please...
>
> This mean if you have your pear library in diferent directory (e.g.
> /usr/share/foo/bar/pear) you have to append this directory to
> 'include_path' variable within php.ini (php configuration file). Read
> the comments within php.ini for more info.
>
> regards Karel
>
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail.
>
>
---------------------------------
Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business.
Hi,
I have installed SER and asterisk on a redhat enterprise 4 linux box. I would like to find out how to:
1. configure SER so that when people dial 9,2226665555 it will redirect the call to asterisk for processing and forwarding to PSTN
2. I heard mentioned several times how asterisk can provide voicemail for SER clients and I would like to know how to set this up so that user can login to their mailbox
3. I would also like to know how users can be notified of their message indicators.
4. In addition to the info above I would like to know if there are links that describe this in greater details.
Thanks,
Mario
Im running the latest ser with sems.
Whenever I dial 958 I get the number reader announcement everytime.
However when I dial an offline user or conference room, many times I dont
get any speech. The call is connected but I just get silence.
The server is on a public IP, so no nat issues. Firewall is correct,
otherwise I wouldnt get the number reader working!
All my fifo's are correct with the correct permissions etc, and my config
file must be ok, as sometimes voicemail & conference announcements are
played, sometimes not.
Sems in debug mode displays this error everytime I get silence rather than
the voicemail announcement-
(4836) ERROR: stop (AmThread.cpp:99): pthread_detach failed with code
EINVAL: thread already in detached state.
Any ideas anyone??
Andy Thomas
Hello list,
I have searched this list for an answer to the 302 response handling problem
but found no real solution. It seems no one actually has an aswer for this
so I studied the RFC 3261 and found the following statement:
The requesting client SHOULD retry the request at the new address(es) given
by the contact header field.
In my mind that statement is completely off the wall, it is not the
requesting client that should be responsible for establishing the forwarded
call, it never is in the rest of the telecom industry so why should it be
the case for SIP? Instead, this should ofcourse be the responsibility of the
forwarding client or the service provider on behalf of the forwarding
client. But as the RFC is not crafted that way I need to find a way to
handle call forwarding in a proper way so that the cost for the forwarded
call ends up on the forwarding clients bill. As call forwarding is a basic
requirement in any phone network there must be some one reading this list
who has solved this issue that can share there insight.
Any help on this issue is highly apreciated.
Kind regards
Roger Lewau
I understand that SER is not an SBC, but I can see how it could maybe do it.
So I started with hello-world.cfg from the onsip.org crowd and started
playing. So I rewrite the contact address to send the address and port of
the SER server and that works. I can make calls out, but when call come in
they get routed to SER and it fails because my UA is not in the location
database.
#
------------------------------------------------------------------------
# Call Type Processing Section
#
------------------------------------------------------------------------
if (uri!=myself) {
if (method=="REGISTER") {
if (!subst('/Contact: <sip:(.*)@(.*)>/Contact:
<sip:\1@206.123.214.55:5060>/ig')) {
log("******************************SUBST
FAILED ************************************\n");
};
# save("location");
};
if (!t_relay()) {
sl_reply_error();
};
break;
};
When I have 'save("location")' in my configuration, Then I don't get
registered with my softswitch. So what does 'save("location")' do exactly?
Beside put an entry in my location database? Thanks.
In my setup I am not using NAT at all. UA, SER, and my softswitch all have
public ip addresses.
Natambu Obleton
Network Engineer
FastTrack Communications
nobleton(a)fasttrackcomm.net
(970) 247-3366 office
(970) 247-2426 fax
Hi Ricardo ,
I too need the same process which you had done by subst(); function.
two weeks back i had posted a mail to ser-users . regarding this issue.
because one call-shop with the small sip-proxy using private ip-adress
controls the remaing phones . and with one username i am giving access to
all phones so that i can bill for one account only .
but when a sip-phone registered to that callshop make call it forwards to
my SER with contact id
as eg: 12345(a)192.168.2.101 .so, the call comes in as it just requires
authorise but when we hung the phone the "BYE" messages are not recieving by
both end parties because SER is sending "BYE" messages to that contact-id
that is private ip so call became "idle" for 30-40 seconds and after it shut
down.
so now i need to rewrite the contact part of that private ip-address and
just use NAT ipadress
of that sip-proxy(call-shop)
i saw your subst(); funct. in your mail but i dont know where and how to
use that,(I am not a programmer)
So how you suggest me to do that for rewriting any private ip-adresss and
replacing NAT-address so that the call will ends when it recieve "BYE"
message .
below is the trace of that:
U 82.102.69.105:39871 -> 81.21.33.35:5060
INVITE sip:99106883@81.21.33.35:5060 SIP/2.0.
To: "99106883"<sip:99106883@81.21.33.35 :5060>.
From: "12345"<sip:12345@81.21.33.35:5060>;tag=c86b66ad8b9187c8.
Via: SIP/2.0/UDP
192.168.1.100:5060;branch=z9hG4bK-d87543-bcf89635ebeba2e78782465686dfaf52-1--d87543-;rport.
Via: SIP/2.0/UDP 192.168.1.102 ;branch=z9hG4bKf638e18b56022ea3.
Call-ID: a78d5c993a9dd6b4(a)192.168.1.102.
CSeq: 47344 INVITE.
Record-Route: <sip:192.168.1.100:5060>.
Contact: <sip: 192.168.1.100:5060>.
Max-Forwards: 69.
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, OPTIONS, INFO, SUBSCRIBE.
Content-Type: application/sdp.
Supported: replaces.
User-Agent: Grandstream BT110 1.0.8.23 .
Content-Length: 361.
Ricardo here i need to replace
contact<sip:192.168.1.100> with above NAT ip address
that is with 82.102.69.105:39871
how ??/
please assist me so that i can solve my problem.
Thank You.
Regards,
Ravi.
Anyone has experience with jabber module ?
I have a jabber server working, and openser working
but I can't connect both.
please, send me an example of openser.cfg if you want.
best regards
Javier
Anyone has experience with jabber module ?
I have a jabber server working, and ser working
but I can't connect both.
please, send me an example of ser.cfg if you want.
best regards
Javier
Bill,
I think there is different syntax for this, I used to
use something like:
if(len_gt(max_len))
{
}
But, I don't check for max length any more. Operating system
assembly/disassembly for
packets bigger than the mtu is transparent to me, I often work with
big packets. Also,
the mtu is different depending on where you look. I think some of
the gig-ethernets
use jumbo packets, then there is the 1500 byte or so regular mtu,
then there
is also possible modifications to the mtu depending on what the local
transport is (cable,
dsl, frame relay, etc).
I still check for max hops :-)
-g
On Sep 12, 2006, at 8:38 PM, Bill Zhang wrote:
> OK, I solved the problem(though I don't understand how it solved)
> by adding
> alias=" sip.mydomain.com", thanks to my old experience with SER:).
>
> Bill
> -----Original Message-----
> From: users-bounces(a)openser.org [mailto:users-bounces@openser.org]
> On Behalf
> Of Bill Zhang
> Sent: Tuesday, September 12, 2006 2:18 PM
> To: users(a)openser.org
> Subject: RE: [Users] 513 Message too big
>
> It does not help me here:(. I will get "Too Many Hops" (SIP
> response 483),
> it's something that seems to get my SIP message stuck in the first 2
> routines.
>
> Bill
> -----Original Message-----
> From: Ka Lun Chan (KC) [mailto:kchan1028@gmail.com]
> Sent: Tuesday, September 12, 2006 1:04 PM
> To: 'Bill Zhang'
> Subject: RE: [Users] 513 Message too big
>
> I have the exact problem. I fixed by changing it to the following
> instead:
>
> if (msg:len >= max_len ) {
> sl_send_reply("513", "Message too big");
> return;
> };
>
> KC
> -----Original Message-----
> From: users-bounces(a)openser.org [mailto:users-bounces@openser.org]
> On Behalf
> Of Bill Zhang
> Sent: Tuesday, September 12, 2006 12:59 PM
> To: users(a)openser.org
> Subject: [Users] 513 Message too big
>
> Hi,
>
> I've exhausted my knowledge on openser:(. Following is my
> openser.cfg which
> is pretty much copy directly from sample but I kept getting "513
> Message too
> big" response from this server for SIP registration, I know the SIP
> registration message size is ONLY 555 bytes, what could be wrong here?
>
> Thanks in Advance!
>
> #
> # $Id: openser.cfg,v 1.6 2006/02/15 18:23:46 bogdan_iancu Exp $
> #
> # simple quick-start config script
> #
>
> # ----------- global configuration parameters ------------------------
>
> debug=4 # debug level (cmd line: -dddddddddd)
> fork=yes
> log_stderror=yes # (cmd line: -E)
>
> /* Uncomment these lines to enter debugging mode
> fork=no
> log_stderror=yes
> */
>
> check_via=no # (cmd. line: -v)
> dns=no # (cmd. line: -r)
> rev_dns=no # (cmd. line: -R)
> port=5060
> children=4
> fifo="/tmp/openser_fifo"
>
> #
> # uncomment the following lines for TLS support
> #disable_tls = 0
> #listen = tls:your_IP:5061
> #tls_verify = 1
> #tls_require_certificate = 0
> #tls_method = TLSv1
> #tls_certificate = "/usr/local/etc/openser/tls/user/user-cert.pem"
> #tls_private_key = "/usr/local/etc/openser/tls/user/user-privkey.pem"
> #tls_ca_list = "/usr/local/etc/openser/tls/user/user-calist.pem"
>
> # ------------------ module loading ----------------------------------
>
> # Uncomment this if you want to use SQL database
> loadmodule "/usr/local/lib64/openser/modules/mysql.so"
> loadmodule "/usr/local/lib64/openser/modules/sl.so"
> loadmodule "/usr/local/lib64/openser/modules/tm.so"
> loadmodule "/usr/local/lib64/openser/modules/rr.so"
> loadmodule "/usr/local/lib64/openser/modules/maxfwd.so"
> loadmodule "/usr/local/lib64/openser/modules/usrloc.so"
> loadmodule "/usr/local/lib64/openser/modules/registrar.so"
> loadmodule "/usr/local/lib64/openser/modules/textops.so"
> loadmodule "/usr/local/lib64/openser/modules/auth.so"
> loadmodule "/usr/local/lib64/openser/modules/auth_db.so"
>
> # ----------------- setting module-specific parameters ---------------
>
> # -- usrloc params --
> #modparam("usrloc", "db_mode", 0)
> # Uncomment this if you want to use SQL database
> # for persistent storage and comment the previous line
> modparam("usrloc", "db_mode", 2)
> modparam("usrloc", "db_url", "mysql://openser:passwd@localhost/
> openser")
>
> # -- auth params --
> # Uncomment if you are using auth module
> #
> modparam("auth_db", "calculate_ha1", yes)
> modparam("auth_db", "password_column", "password")
> modparam("auth_db", "db_url", "mysql://openser:passwd@localhost/
> openser")
>
> # -- rr params --
> # add value to ;lr param to make some broken UAs happy
> modparam("rr", "enable_full_lr", 1)
>
> # ------------------------- request routing logic -------------------
>
> # main routing logic
>
> route{
>
> # initial sanity checks -- messages with
> # max_forwards==0, or excessively long requests
> if (!mf_process_maxfwd_header("10")) {
> sl_send_reply("483","Too Many Hops");
> exit;
> };
>
> if (msg:len >= 2048 ) {
> sl_send_reply("513", "Message too big");
> exit;
> };
>
> # we record-route all messages -- to make sure that
> # subsequent messages will go through our proxy; that's
> # particularly good if upstream and downstream entities
> # use different transport protocol
> if (!method=="REGISTER")
> record_route();
>
> # subsequent messages withing a dialog should take the
> # path determined by record-routing
> if (loose_route()) {
> # mark routing logic in request
> append_hf("P-hint: rr-enforced\r\n");
> route(1);
> };
>
> if (!uri==myself) {
> # mark routing logic in request
> append_hf("P-hint: outbound\r\n");
> # if you have some interdomain connections via TLS
> #if(uri=~"@tls_domain1.net") {
> # t_relay("tls:domain1.net");
> # exit;
> #} else if(uri=~"@tls_domain2.net") {
> # t_relay("tls:domain2.net");
> # exit;
> #}
> route(1);
> };
>
> # if the request is for other domain use UsrLoc
> # (in case, it does not work, use the following command
> # with proper names and addresses in it)
> if (uri==myself) {
>
> if (method=="REGISTER") {
> if (!www_authorize("sip.mydomain.com",
> "subscriber")) {
> www_challenge("sip.mydomain.com",
> "0");
> exit;
> };
>
> save("location");
> exit;
> };
>
> lookup("aliases");
> if (!uri==myself) {
> append_hf("P-hint: outbound alias\r\n");
> route(1);
> };
>
> # native SIP destinations are handled using our
> USRLOC DB
> if (!lookup("location")) {
> sl_send_reply("404", "Not Found");
> exit;
> };
> append_hf("P-hint: usrloc applied\r\n");
> };
>
> route(1);
> }
>
>
> route[1] {
> # send it out now; use stateful forwarding as it works
> reliably
> # even for UDP2TCP
> if (!t_relay()) {
> sl_reply_error();
> };
> exit;
> }
>
> Bill
>
>
> _______________________________________________
> Users mailing list
> Users(a)openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users(a)openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users(a)openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users