Hello, I signed up with IPCB to terminate international traffic.
I tried compiling their module ipcb_auth_adapter under FreeBSD 5.4 using the
following syntax
gmake modules=modules/ipcb_auth_adapter modules
But all I got is a lot of errors (see below) and the module wont compile. Is
some one else using IPCB for termination traffic from their SER?
gmake[1]: Entering directory `/root/ser-0.9.3/modules/ipcb_auth_adapter'
../../Makefile.rules:80: sip_md5.d: No such file or directory
sip_md5.c:11:23: md5global.h: No such file or directory
gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall
-minline-all-stringops -malign-double -falign-loops -mtune=athlon -Wmain
-Wimplicit -Wmissing-braces -DNAME='"ser"' -DVERSION='"0.9.3"'
-DARCH='"i386"' -DOS='"freebsd"' -DCOMPILER='"gcc 3.4"' -D__CPU_i386
-D__OS_freebsd -DCFG_DIR='"/usr/local/etc/ser/"' -DPKG_MALLOC -DSHM_MEM
-DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
-DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024
-DHAVE_SOCKADDR_SA_LEN -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN
-DHAVE_SCHED_YIELD -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_CONNECT_ECONNRESET_BUG
-c ipcb_auth_adapter.c -o ipcb_auth_adapter.o
ipcb_auth_adapter.c:96: error: variable `nonce_regex' has initializer but
incomplete type
ipcb_auth_adapter.c:97: error: variable `realm_regex' has initializer but
incomplete type
ipcb_auth_adapter.c:98: error: variable `to_user_regex' has initializer but
incomplete type
ipcb_auth_adapter.c: In function `on_load':
ipcb_auth_adapter.c:126: error: syntax error before "old_syntax"
ipcb_auth_adapter.c:137: error: `old_syntax' undeclared (first use in this
function)
ipcb_auth_adapter.c:137: error: (Each undeclared identifier is reported only
once
ipcb_auth_adapter.c:137: error: for each function it appears in.)
ipcb_auth_adapter.c:137: warning: implicit declaration of function
`re_set_syntax'
ipcb_auth_adapter.c:137: error: `RE_SYNTAX_EGREP' undeclared (first use in
this function)
ipcb_auth_adapter.c:139: warning: implicit declaration of function
`re_compile_pattern'
ipcb_auth_adapter.c:145: error: invalid use of undefined type `struct
re_pattern_buffer'
ipcb_auth_adapter.c:145: error: `REGS_FIXED' undeclared (first use in this
function)
ipcb_auth_adapter.c:146: error: invalid use of undefined type `struct
re_pattern_buffer'
ipcb_auth_adapter.c:147: error: invalid use of undefined type `struct
re_pattern_buffer'
ipcb_auth_adapter.c: In function `on_unload':
ipcb_auth_adapter.c:156: warning: passing arg 1 of `regfree' from
incompatible pointer type
ipcb_auth_adapter.c:157: warning: passing arg 1 of `regfree' from
incompatible pointer type
ipcb_auth_adapter.c:158: warning: passing arg 1 of `regfree' from
incompatible pointer type
ipcb_auth_adapter.c: In function `remove_hf':
ipcb_auth_adapter.c:359: warning: implicit declaration of function
`del_lump'
ipcb_auth_adapter.c: In function `extract_first_group':
ipcb_auth_adapter.c:373: error: variable `match' has initializer but
incomplete type
ipcb_auth_adapter.c:373: warning: excess elements in struct initializer
ipcb_auth_adapter.c:373: warning: (near initialization for `match')
ipcb_auth_adapter.c:373: warning: excess elements in struct initializer
ipcb_auth_adapter.c:373: warning: (near initialization for `match')
ipcb_auth_adapter.c:373: warning: excess elements in struct initializer
ipcb_auth_adapter.c:373: warning: (near initialization for `match')
ipcb_auth_adapter.c:373: error: storage size of 'match' isn't known
ipcb_auth_adapter.c:378: warning: implicit declaration of function
`re_search'
ipcb_auth_adapter.c:373: warning: unused variable `match'
ipcb_auth_adapter.c: At top level:
ipcb_auth_adapter.c:96: error: storage size of `nonce_regex' isn't known
ipcb_auth_adapter.c:97: error: storage size of `realm_regex' isn't known
ipcb_auth_adapter.c:98: error: storage size of `to_user_regex' isn't known
gmake[1]: *** [ipcb_auth_adapter.o] Error 1
gmake[1]: Leaving directory `/root/ser-0.9.3/modules/ipcb_auth_adapter
/tmp/ser_fifo exists, and is pipe type
User running Apache is "apache". Owner of ser_fifo is User: "root",
Group: "root".
I joined user "apache" to group "root", same.
I created group "ser" and joined "root" "apache" to that group, and
added fifo_group=ser to the ser.cfg, but still same problem:
Warning: filetype(): Lstat failed for (null) (errno=13 - Permission
denied) in /var/www/html/serweb/html/functions.php on line 306
Warning: Cannot modify header information - headers already sent by
(output started at /var/www/html/serweb/html/functions.php:306) in
/var/www/html/serweb/html/page.php on line 35
Thanks,
Marc
-----Original Message-----
From: Karel Kozlik [mailto:karel@iptel.org]
Sent: Thursday, August 18, 2005 1:38 PM
To: Marc Khayat
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] Serweb
Hello,
please check if file /tmp/ser_fifo exists and if it's type is pipe. Also
check rights - if user under which apache is running have access to read
and write to this file.
Karel
Marc Khayat napsal(a):
> The domain thing is working, but problem 2 is still bugging me.
> Help anyone?
>
> Marc
>
> -----Original Message-----
> From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org]
On
> Behalf Of Marc Khayat
> Sent: Thursday, August 18, 2005 11:15 AM
> To: serusers(a)lists.iptel.org
> Subject: RE: [Serusers] Serweb
>
> Never mind guys... it's working!
>
> Marc
> -----Original Message-----
> From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org]
On
> Behalf Of Marc Khayat
> Sent: Thursday, August 18, 2005 10:53 AM
> To: serusers(a)lists.iptel.org
> Subject: [Serusers] Serweb
>
> Hi all,
> I'm using SER-0.9.3 and its serweb version.
> I have 2 problems with it:
> 1- On the login page, when I enter the username, it automatically
> completes it with the FQDN, while I need only the domain name; i.e. I
> login to http://ser.xyz.com, I enter the username aloha, it's
completed
> as aloha(a)ser.xyz.com while I need it as aloha(a)xyz.com. Currently, I'm
> writing in manually
>
> 2- When I login, I'm getting an error on the first page only as "FIFO
> not running or bad path to it". The path to it (in config_paths.php
file
> is /tmp/ser_fifo, which is correct), and when I enter the command
serctl
> monitor, the counter isn't constant, and same path.
>
> Can anyone help me plz,
>
> Thanks,
>
> Marc
>
> _______________________________________________
> 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
>
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
hello
I want to check wheather called number is started from
"R" then route his calls to one location othe wise do
another
i have a condition
if(uri=~"^sip:R*@ipaddress") {
do somthing
route(1);
}
else {
do somthing
route(2);
}
when my number starts from R it never goes to first
condition it always goes to route2 what is best way to
do so
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Hi everybody,
Is it possible routing by Codec type with SER and how would you do that ?
Thanks in advance,
Frank
---------------------------------
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
Hi all,
I am using ser-0.9.3. I wish to have multiple SER in synchronization at
database level.
Therefore, I have to patch SER so that it will also periodically read back
the location table from db to the cache as well.
I've followed the patch at
http://bugs.sip-router.org/browse/SER-46
however, I can't use preload_all_udomains(); for dlist.c
Anyone has any clue what's that for?
Anyone has successfully patch the version 0.9.3 so that SER can write and
read back from the location table?
Thanks in advance.
Regards,
Chia
Hello
I have this scenario:
We are an ITSP trying to use a centralized SER to provide Telephony
services in several cities, each city has assigned the same number
range for clients that is 85XXXX (X ~ 0 to 9) including its area code,
usually when users call to another in the same city dont need to dial
area code before called number unless they makes a "long distance"
call, for example: when user 851234 from NY calls to 851234 in FL must
dial 305-851234.
I think, and please correct me if I am wrong, that the most reliable
way to manage those users in different area codes in one server is
using Ser´s multiple domain feature so I have this:
Domain 1: NY.sipdomain.com
Domain 1 assigned numbers: 85XXXX
Domain 1 Prefix: 631
Domain 2: FL.sipdomain.com
Domain 2 assigned numbers: 85XXXX
Domain 2 Prefix: 305
Domain 3: CA.sipdomain.com , etc....
I dont want to register users using areacode+number (too long) and I
could not register two users with same number in different domain, so
1.- How to configure Multiple Domain support in Ser?
2.- How can I configure ser to allow Interdomain calls?
3.- Caller-id or ANI for local calls (same domain) dont have to
include its area code unless they makes a "long distance" call (to
allow callback feature and because normal phones can´t include domain
in its screen) as a normal pstn system works.
please someone guide me on this issues.
thanks
Freddy
Hi!
Thanks!
Here's some more of my code:
if (method=="INVITE") {
record_route();
setflag(1);
# First check the prefixes of the caller and change it to the specified
country-code in switch-admin --> Country-List
exec_dset('/usr/local/etc/ser/scripts/update_number.sh');
# Load first trunk
if (!load_gws())
{
sl_send_reply("500", "Internal server error, unable to load phone
gateways");
break;
}
if (!next_gw())
{
sl_send_reply("503", "Service not available, no gateways found");
break;
}
t_on_failure("2");
log(1, "-INVITE-\n");
};
[...]
t_relay();
Sebastian
----- Original Message -----
From: "Bayan William Towfiq" <william(a)telepacket.com>
To: "Sebastian Kühner" <skuehner(a)veraza.com>
Cc: <serusers(a)lists.iptel.org>
Sent: Thursday, August 18, 2005 3:39 PM
Subject: Re: [Serusers] cancal
> Hi Sebastian,
> Sorry about that, I misread the code. I will test your code and dig up
> an example of how I do it in my failure routes to show you.
>
> William
>
> Sebastian Kühner wrote:
>
> >Hi William,
> >
> >Thanks for your help.
> >
> >In my failover route I have the following code:
> >
> >failure_route[2] {
> > if (t_check_status("408|500|503"))
> > {
> > log (1, "next gateway...\n");
> > if (!next_gw())
> > {
> > t_reply("503", "Service not available, no more gateways");
> > break;
> > }
> > log (1, "gateway changed...\n");
> > t_on_failure("2");
> > t_relay();
> > }
> >}
> >
> >So the status is already filtered. I tried your code but without
result...
> >
> >Does anybody know how I can stop the failover timer?
> >
> >Thanks!
> >
> >Sebastian
> >
> >
> >
> >----- Original Message -----
> >From: "Bayan William Towfiq" <william(a)telepacket.com>
> >To: "Sebastian Kühner" <skuehner(a)veraza.com>
> >Cc: <serusers(a)lists.iptel.org>
> >Sent: Thursday, August 18, 2005 1:28 AM
> >Subject: Re: [Serusers] cancal
> >
> >
> >
> >
> >>Hi Sebastian,
> >>If the message is a cancel you it will have status 487
> >>
> >>so you can just add
> >>
> >> if (t_check_status("487")) {
> >> break;
> >> };
> >>
> >>before the rest of the code in the failure route. You can mail me
> >>privately if you have any more questions about this issue.
> >>
> >>William
> >>
> >>Sebastian Kühner wrote:
> >>
> >>
> >>
> >>>Hello,
> >>>
> >>>I'm using ser to forward to PSTN Gatways.
> >>>
> >>>Before the t_relay I put the command:
> >>>
> >>>t_on_failure("2");
> >>>
> >>>So, after a timeout ser goes to:
> >>>
> >>>failure_route[2] {
> >>> log (1, "next gateway...\n");
> >>> if (t_check_status("408|500|503"))
> >>> {
> >>> if (!next_gw())
> >>> {
> >>> t_reply("503", "Service not available, no more gateways");
> >>> break;
> >>> }
> >>> log (1, "gateway changed...\n");
> >>> }
> >>> t_on_failure("2");
> >>> t_relay();
> >>>}
> >>>
> >>>This is working very good... if the user doesn't make a hangup.
> >>>
> >>>If caller hangs up, the CANCEL hits SER and the call is cleanly
> >>>
> >>>
> >terminated.
> >
> >
> >>>SER however continues to failure_route after timeout of the initial
> >>>INVITE... ser sends out a new INVITE message to another PSTN-Server...
> >>>
> >>>
> >and
> >
> >
> >>>the phone rings (with nobody in the line)
> >>>
> >>>Many thanks for your help!
> >>>
> >>>Sebastian
> >>>
> >>>
> >>>
> >>>_______________________________________________
> >>>Serusers mailing list
> >>>serusers(a)lists.iptel.org
> >>>http://lists.iptel.org/mailman/listinfo/serusers
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >>
> >
> >
> >
> >
>
>
>
Hi!
Now I've spent nearly one day on the problem, that ser doesn't stop the
failover timer on CANCEL. It would be nice to know if anyone of you had the
same problem once. Could it be the ser.cfg? I'm really stucked and I hope
that anyone of you can give me a small hint.
I also tried to make changes in the lcr module, but I can't delete the
gateway entries...
That's the code (on method==CANCEL)
int reset_gw(struct sip_msg* _m, char* _s1, char* _s2)
{
struct usr_avp *avp;
int_str val;
while (avp = search_first_avp(gw_ap_avp_name_str, addr_port_name, &val)
destroy_avp(avp);
return 1;
}
OK, any hints are very welcome!!!
Thanks!!
Sebastian