Hi,
I am using .nat_uac_test to detect if the UA is from behind a NAT and if so
use rtpproxy. However, if both UA are behind the "same" NAT, is there
anyway to tell? If both UAs are from the same LAN then I don't need to
apply rtpproxy.
What would be a good way to do that?
Any suggestion will be greatly appreciated.
Regards,
Pete
Hello all,
I'm trying to configure the LCR module, but I'm running into a little
problem, I don't get any errors but it is not routing the call properly,
this is my lcr info:
openserctl lcr show
database engine 'MYSQL' loaded
Control engine 'FIFO' loaded
lcr routes
+----+--------+----------+--------+----------+
| id | prefix | from_uri | grp_id | priority |
+----+--------+----------+--------+----------+
| 1 | 001 | | 1 | 1 |
+----+--------+----------+--------+----------+
lcr gateway groups
+--------+----------+
| grp_id | grp_name |
+--------+----------+
| 1 | GWs |
+--------+----------+
lcr gateways
+---------+---------------+------+------------+-----------+--------+-------+---------------+
| gw_name | ip_addr | port | uri_scheme | transport | grp_id | strip |
prefix |
+---------+---------------+------+------------+-----------+--------+-------+---------------+
| USA | 1.2.3.4 | 5060 | 1 | 1 | 1 | 2 |
99 |
+---------+---------------+------+------------+-----------+--------+-------+---------------+
I'm sending the following call:
Jun 14 07:49:31 rgi-sip /sbin/openser[9458]: DBG:core:parse_msg: SIP
Request:
Jun 14 07:49:31 rgi-sip /sbin/openser[9458]: DBG:core:parse_msg: method:
<INVITE>
Jun 14 07:49:31 rgi-sip /sbin/openser[9458]: DBG:core:parse_msg: uri: <
sip:0013058883456@9.8.7.6:5060>
Jun 14 07:49:31 rgi-sip /sbin/openser[9458]: DBG:core:parse_msg: version:
<SIP/2.0>
my script says:
# routing to the public network
if (!load_gws()) {
xlog("L_INFO","LCR: Unable to load gateways");
sl_send_reply("503", "Unable to load gateways");
exit;
}else{
xlog("L_INFO","LCR: Sending to $td\n");
}
if(!next_gw()){
sl_send_reply("503", "Unable to find a gateway");
exit;
}
t_on_failure("2");
if (!t_relay()) {
sl_reply_error();
};
exit;
On the syslog i get the message:
LCR: Sending to 9.8.7.6 <-- This, although the IP is wrong, I KNOW it
didn't fail loading the gateways...
where 9.8.7.6 if my sever's IP.
Why is it not matching?
Thanks a lot
David
Hello everybody,
today is the third anniversary of the OPENSER project. There were three
years of development, community events and fun. And it is more to come...
I want to thank to all that invested time and money into the project,
writing code, offering support on mailing lists and forum, traveling
around the world to promote the project, developing documentation and
tools, disclosing their usage of OPENSER in production environments
setting trust to this SIP server. It will be a huge list to detail
everything, openser.org and google reveal very good the OPENSER
environment for the past three years.
Looking forward to next year!
Cheers,
Daniel
--
http://www.asipto.com
Hi,
What is the best way to deploy Openser in an HA environment?
If I want to use ldirector, what is the best solution for determining
whether the openser is still alive?
Could someone share with me how it can be done?
Thanks,
Mark
I'm having a problem using loose_route, and I'm not sure if it's a
bug/feature/misunderstanding.
I have a B2BUA (Asterisk) running on the same system as OpenSER, and in
my failure_route for voicemail I direct calls there which actually sends
them on to the voicemail server. If someone 'zeroes out' of voicemail,
to be forwarded to the operator, the voicemail server issues a re-INVITE
to redirect media. This is where the problem comes in.
If I try to loose_route this re-INVITE, it fails. However, putting the
B2BUA on a different system works fine.
This is running OpenSER 1.2.3 currently, though I'm not particularly
averse to upgrading to the latest 1.3.x if for some reason this is
something that's been resolved there.
Any suggestions?
Thanks in advance,
- Brad
Hi,
I have a problem with openser.
When multiple clients are registered with the same userid [ example A]
When another user [ say B] tried to call A then the invite message goes
to last logined client but not to both clients!
Is that a problem with my configuration or a behaviour of Openser
Thanks in advance
chaitu
SORRY TO HAVE REPLIED TO YOUR EMAIL!!!
I hate it when gmail does that!
Thanks,
It rather very easy, I need all calls to go through the media-proxy.
I'm testing behind nat, server is on the internet. If I make a call from one
UAC natted to another UAC natted, it works fine, rtps go to the proxy. If I
call from behind NAT to echo test, I don't get any audio. rtps go directly
to the echo test server's IP, but i don't get anything back. I'm doing
something very wrong, I've modifed the script like a thousand time, and
still...
On Fri, Jun 13, 2008 at 7:25 PM, David Villasmil <
david.villasmil.work(a)gmail.com> wrote:
> Thanks,
>
> It rather very easy, I need all calls to go through the media-proxy.
> I'm testing behind nat, server is on the internet. If I make a call from one
> UAC natted to another UAC natted, it works fine, rtps go to the proxy. If I
> call from behind NAT to echo test, I don't get any audio. rtps go directly
> to the echo test server's IP, but i don't get anything back. I'm doing
> something very wrong, I've modifed the script like a thousand time, and
> still...
>
>
> On Fri, Jun 13, 2008 at 7:11 PM, Raúl Alexis Betancor Santana <
> rabs(a)dimension-virtual.com> wrote:
>
>> El Viernes, 13 de Junio de 2008 17:47, David Villasmil escribió:
>> > That was not my intention at all and I'm sorry you got it that way. I
>> did
>> > take a look at my script and I thought I should do was eliminate all
>> tests
>> > for nats and simply call use_media_proxy when an INVITE comes in, and an
>> > on_reply was hit. Also of course end_media_session() n a BYE or a
>> CANCEL...
>> > But it is still not working, well it instruct my UAC to send rtps
>> directly
>> > to the echo test ip... and this wasn't working.
>> >
>> > And because I did not see anything work (I don't have much experience
>> with
>> > media-proxy) I thought I'd ask here... my bad. ;-)
>> >
>> > Of course I will keeo looking at this, I don't want anyone to do my
>> job...
>> > ;-)
>> >
>>
>> Ok, so from that point on ... what it's your test scenario, paint it and
>> we
>> could guide you to the right point.
>>
>> We do not have a crystal ball ;-)
>>
>> --
>> Saludos.
>>
>> Raúl Alexis Betancor Santana
>> Dimensión Virtual S.L.
>>
>> _______________________________________________
>> Users mailing list
>> Users(a)lists.openser.org
>> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>>
>
>
Hello everyone, i am testing the carrierroute module to do the following:
-If destination starts with 1760, the call is sent to PSTN GW.
-If destination starts with 1305, the call is blocked.
The lab works as desired, however i am getting this error:
ERROR:carrierroute:carrier_rewrite_msg: during rewrite_uri_recursor, uri 13054941522 , carrier 0, domain 0
These are my tables:
mysql> select * from carrierroute;
+----+---------+-------------+--------+------+-------+---------------+----------------+----------------+---------+
| id | carrier | scan_prefix | domain | prob | strip | rewrite_host | rewrite_prefix | rewrite_suffix | comment |
+----+---------+-------------+--------+------+-------+---------------+----------------+----------------+---------+
| 1 | 0 | 1760 | 0 | 1 | 0 | 70.165.183.36 | | | NULL |
| 2 | 0 | 1305 | 0 | 1 | 0 | | | | NULL |
+----+---------+-------------+--------+------+-------+---------------+----------------+----------------+---------+
2 rows in set (0.00 sec)
mysql> select * from route_tree;
+----+---------+
| id | carrier |
+----+---------+
| 0 | default |
+----+---------+
1 row in set (0.00 sec)
And this is my config:
if (is_method("INVITE")) {
if(!cr_rewrite_uri("0", "call_id")){
sl_send_reply("403", "Not allowed");
exit();
}
}
any ideas?
best regards,
Pablo.
<===========================================================================
=
I'm having a problema trying to run ser-0.9.7. The compilation was fine..
but i'm not able to start SER due to this error :
Mar 25 00:42:53 edgelcr ser: loading module
/usr/local/lib/ser/modules/acc.so
Mar 25 00:42:53 edgelcr ser: ERROR: load_module: could not open module
</usr/local/lib/ser/modules/acc.so>: /usr/local/lib/ser/modules/acc.so:
undefined symbol: parse_orig_uri
Mar 25 00:42:53 edgelcr ser: parse error (88,13-14): failed to load module
<===========================================================================
=
I have the same problem on OpenSUSE 10.3. SER 0.9.7 compiles fine but when
you try to run it you get that error.
Was this ever resolved?
John