Hi guys !
I'm new here and I came to the list to try solve a problem first. =)
Good.... I have a SIPProxy installed in my machine working with
Openser 1.1.1. Now I need to do this SIPProxy answer for 2 different
domains and to do something depending of where request came.
Now, I have almost everything functional (like freeradius and
mediaproxy and mysql requests), but the Openser can't startup..... For
a while, I copy his binary (//usr/local/sbin/openser/) to/
/usr/local/sbin/openserhost/ and change the openser file's content --
where was openser.cfg now is openserhost.cfg) -- with a hexadecimal
editor (GHex). I created a //etc/init.d/openserhost ,
/etc/default/openserhost/ and a/ /usr/local/etc/openserhost/ /too.
Finally, I edit the "port" (to 5070) and de informations to database
connect in new config file.
When I try start the software, I get a error like this:
*siphost01:/usr/local/etc/openser# /etc/init.d/openserhost start
Not starting openserhost: invalid configuration file!
siphost01:/usr/local/etc/openser# *
Continuing, looking for a log, I see the
/var/log/openser/openserhost.log and got:
*
Oct 9 09:57:17 siphost01 kernel: openserhost[12020]: segfault at
0000000000000004 rip 00000000f7f6696e rsp 00000000ffcccaec error 4
Oct 9 10:04:33 siphost01 kernel: openserhost[12207]: segfault at
0000000000000004 rip 00000000f7fa096e rsp 00000000ffbc49ec error 4
Oct 9 10:05:36 siphost01 kernel: openserhost[12241]: segfault at
0000000000000004 rip 00000000f7f8096e rsp 00000000fff58d7c error 4
Oct 9 10:54:39 siphost01 kernel: openserhost[13443]: segfault at
0000000000000004 rip 00000000f7f7b96e rsp 00000000ffc52a6c error 4*
And that is All..... Sorry if I'm doing somethig stupid or if my
english is very very bad.... I'm "new" in "Sr world" and I'm brazilian... =)
Wait someone helpme with this....
Regards......
Érico Oliveira
Solution Manager
On Sat, Oct 9, 2010 at 7:22 PM, Shrouk Khan <shroukkhan(a)softverk.is> wrote:
> hi,
> actually if i make the address table empty , it works. but if i add
> any entry to it , it stops working .
> my address table looks like this:
>
>
> id grp ip_addr mask port
> 3 0 192.168.189.1 32 5060
>
> so the mask is the issue ? or the ip address . I am not great with
> networking . i am just trying to allow 192.168.189.1 to be able to
> send INVITE msg.
>
>
> On Sat, Oct 9, 2010 at 7:13 PM, Iñaki Baz Castillo <ibc(a)aliax.net> wrote:
>>
>> 2010/10/9 Shrouk Khan <shroukkhan(a)softverk.is>:
>> > its kamailio 3.0.3 from : http://www.kamailio.org/pub/kamailio/3.0.3/src/
>>
>> And have you checked the netries in "address" table as I have suggested?
>>
>>
>> --
>> Iñaki Baz Castillo
>> <ibc(a)aliax.net>
>
>
>
> --
> Regards
>
> Shrouk Khan (Khan)
> System Administrator / Telecommunication System Developer
> Office: +354 4400807 (Reykjavik)
> +44 2031370800 (London)
> Mobile: +66 875049439 (Bangkok)
>
> Web: www.softverk.is
>
> Reykjavik, Iceland // London, UK // Bangkok, Thailand
>
--
Regards
Shrouk Khan (Khan)
System Administrator / Telecommunication System Developer
Office: +354 4400807 (Reykjavik)
+44 2031370800 (London)
Mobile: +66 875049439 (Bangkok)
Web: www.softverk.is
Reykjavik, Iceland // London, UK // Bangkok, Thailand
hi,
i have been trying to use the allow_trusted() to allow or disallow invite
request from certain IP address. This is the block that i am using:
loadmodule "permission.so"
......
........
if(is_method("INVITE")){
if(!allow_trusted()){
sl_send_reply("403","Address Not allowed");
exit;
}
}
but trying to restart kamailio after this fails. and from the syslog it
says:
Oct 9 03:19:49 ubuntu kamailio: ERROR: <core> [sr_module.c:378]: ERROR:
load_module: could not find module <permission> in
<//lib/kamailio/modules_k/://lib/kamailio/modules/>
Oct 9 03:19:49 ubuntu kamailio: : <core> [cfg.y:3330]: parse error in
config file //etc/kamailio/kamailio.cfg, line 151, column 12-26: failed to
load module
Oct 9 03:19:49 ubuntu kamailio: : <core> [cfg.y:3333]: parse error in
config file //etc/kamailio/kamailio.cfg, line 356, column 21: unknown
command, missing loadmodule?#012
I think i forgot to compile kamailio with the support of permission module .
but i do not see it anywhere in the ignore list either. can anyone tell me
what could be the problem
--
Regards
Shrouk Khan (Khan)
System Administrator / Telecommunication System Developer
Office: +354 4400807 (Reykjavik)
+44 2031370800 (London)
Mobile: +66 875049439 (Bangkok)
Web: www.softverk.is
Reykjavik, Iceland // London, UK // Bangkok, Thailand
Hello,
is there any way to use or evaluate the return-statements of a perl-script in kamailio.cfg?
I tried the following in the Routing Logic in kamailio.cfg:
if (is_method("INVITE")) {
if (perl_exec("my_perl_subroutine") == -1){
xlog("PERL returns -1 \n");
}
}
Doesn't work.
The bad thing is that the return-values of the - perl_exec("XXX") - call are not the same that the perl subroutine "XXX" returns.
That's at least what I strongly believe after testing.
I do need to read/evaluate the return-value of the perl-subroutine in the Routing Logic to define different routes depending on what the perl-subroutine returns.
Is there any way to do that???
Thank you for your help in advance.
Regards,
Nicolas
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
Hello SER Team,
We are using SER as a SIP Server for our purpose. We wan to configure SER to
listen on two ports at the same time(i.e. 5060 & some other custom port such
as 5090 or something like that). Can you please assist us how can we achieve
this, means what changes we need to make such that SER listens on two ports
at the same time.
Thanks and Best Regards
Saurabh Srivastava
can t_check_trans() be also used to check if t_newtran() has been
called on the request earlier in the script?
if so, is it so heavyweight thing that it would be better to set a flag
when t_newtran() is called and then test the flag?
-- juha
in tm readme there is this kind of example regarding use of
t_relay_cancel:
if (method == CANCEL) {
if (!t_relay_cancel()) { # implicit drop if relaying was successful,
# nothing to do
# corresponding INVITE transaction found but error occurred
sl_reply("500", "Internal Server Error");
drop;
}
# bad luck, corresponding INVITE transaction is missing,
# do the same as for INVITEs
}
if proxy is processing all invites statefully, why anything needs to be
done when invite transaction corresponding the to cancel is missing?
isn't it a case of unmatched cancel and the cancel could just be
dropped?
-- juha
does www_challenge(realm, flags) know to send its challenge reply
statefully or statelessly depending on if t_newtran() has been called or
not?
-- juha
Hi List,
Phone-1 ------->Proxy1 (kamailio)-------------->Proxy-2(3rd party)
-------------> phone 2
Calls from phone-1 to phone-2, proxy-2 is sending early media without sdp in
provisional reply, this early media is sourced from different port than
response (200), what port proxy-1 will use to transmit actual voice, the
source port in early media or source port in response(200) which is
different than early media.
Thanks,
Asim
after playing with t_newtran(), i started to get these to syslog:
Oct 7 15:39:11 sip /usr/sbin/sip-proxy[26119]: WARNING: tm [t_lookup.c:1543]: WARNING: script writer didn't release transaction
as far as i remember, in k these messages were not printed, because
transactions were freed automatically when script ended.
also, example in section 1.3.3. nonce_count of auth module does not
include any t_release() calls. where exactly should they be put?
-- juha