indeed -- that's currently an unsupported feature being worked on.
-jiri
At 17:46 05/06/2006, Paul Antinori (pantinor) wrote:
>Content-class: urn:content-classes:message
>Content-Type: multipart/alternative;
> boundary="----_=_NextPart_001_01C688B7.3390EF42"
>
>I am using DNS SRV query for stateful routing of calls like in my script below. I see the SRV query is going through from SER.
>
>My problem is that when the call times out to priority 1 A record, SER does not send it to priority 2.
>
>Thanks for help.
>
>vxml-1 IN A 10.86.xxx.1
>vxml-2 IN A 10.86.xxx.2
>vxml-3 IN A 10.86.xxx.3
>
>; Priority Weight Port Target
>_sip._tcp.vxml.pats.cisco.com. SRV 1 1 5060 vxml-1.pats.cisco.com.
> SRV 2 1 5060 vxml-2.pats.cisco.com.
> SRV 3 1 5060 vxml-3.pats.cisco.com.
>_sip._udp.vxml.pats.cisco.com. SRV 1 1 5060 vxml-1.pats.cisco.com.
> SRV 2 1 5060 vxml-2.pats.cisco.com.
> SRV 3 1 5060 vxml-3.pats.cisco.com.
>
>route{
>
> if (!mf_process_maxfwd_header("10")) {
> sl_send_reply("483","Too Many Hops");
> break;
> };
>
> if (uri=~"^sip:7") {
> log(1, "Found 7*\n");
> rewritehostport("vxml.pats.cisco.com");
> route(1);
> break;
> }
>
> if (uri=~"^sip:9") {
> log(1, "Found 9*\n");
> rewritehostport("ringtone.pats.cisco.com");
> route(1);
> break;
> }
>
> log(1,"Could Not Match DN to a Route\n");
>
> route(1);
>}
>
>route[1]
>{
>
> #use "t_relay" for STATEFUL forwarding
> #for STATELESS forwarding use this syntax: forward(10.86.xx.xx,5060);
>
> if (!t_relay()) {
> sl_reply_error();
> };
>}
>_______________________________________________
>Serusers mailing list
>Serusers(a)lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
--
Jiri Kuthan http://iptel.org/~jiri/
Hi all,
I'm having a weird behaviour when mixing auth_db and uri_db.
With the following openser.cfg, the xlog("L_INFO", "TEST\n") is never
executed... seems that openser just hangs up...
If I remove the uri_db it works...
If I remove the auth_db it works too...
The problem seems to happen when I mix both...
Any idea of what may be wrong?
I'm using the latest version (openser 1.0.1).
Thanks
debug=3 # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=yes
reply_to_via=no
check_via=no # (cmd. line: -v)
dns=no # (cmd. line: -r)
rev_dns=no # (cmd. line: -R)
port=5060
children=4
fifo="/tmp/ser_fifo"
loadmodule "/usr/lib/openser/modules/mysql.so"
loadmodule "/usr/lib/openser/modules/sl.so"
loadmodule "/usr/lib/openser/modules/auth.so"
loadmodule "/usr/lib/openser/modules/auth_db.so"
loadmodule "/usr/lib/openser/modules/uri_db.so"
loadmodule "/usr/lib/openser/modules/xlog.so"
modparam("uri_db", "db_url", "mysql://root@192.168.1.104/openser")
modparam("auth_db", "db_url", "mysql://root@192.168.1.104/openser")
route {
xlog("L_INFO", "TEST\n");
}
I am using DNS SRV query for stateful routing of calls like in my script
below. I see the SRV query is going through from SER.
My problem is that when the call times out to priority 1 A record, SER
does not send it to priority 2.
Thanks for help.
vxml-1 IN A 10.86.xxx.1
vxml-2 IN A 10.86.xxx.2
vxml-3 IN A 10.86.xxx.3
; Priority Weight Port Target
_sip._tcp.vxml.pats.cisco.com. SRV 1 1 5060 vxml-1.pats.cisco.com.
SRV 2 1 5060 vxml-2.pats.cisco.com.
SRV 3 1 5060 vxml-3.pats.cisco.com.
_sip._udp.vxml.pats.cisco.com. SRV 1 1 5060 vxml-1.pats.cisco.com.
SRV 2 1 5060 vxml-2.pats.cisco.com.
SRV 3 1 5060 vxml-3.pats.cisco.com.
route{
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if (uri=~"^sip:7") {
log(1, "Found 7*\n");
rewritehostport("vxml.pats.cisco.com");
route(1);
break;
}
if (uri=~"^sip:9") {
log(1, "Found 9*\n");
rewritehostport("ringtone.pats.cisco.com");
route(1);
break;
}
log(1,"Could Not Match DN to a Route\n");
route(1);
}
route[1]
{
#use "t_relay" for STATEFUL forwarding
#for STATELESS forwarding use this syntax:
forward(10.86.xx.xx,5060);
if (!t_relay()) {
sl_reply_error();
};
}
> -----Original Message-----
> From: Juha Heinanen [mailto:jh@tutpro.com]
> Sent: Sunday, June 04, 2006 11:01 AM
> To: Douglas Garstang
> Cc: Bogdan-Andrei Iancu; Sam Lee; users(a)openser.org
> Subject: RE: [Users] Avpops tutorial
>
>
> Douglas Garstang writes:
>
> > I'm not one of the developers.
>
> you don't need to be. in fact, it would give developers' more time to
> develop, i.e., write code.
How can I write the documentation when I don't understand how the software works?
Are you suggesting I learn C and look at the code?
I'm of the opinion that developers should write documentation. If other people try to do it, they make bad assumptions based on what they THINK they know. They then write bad or wrong documentation which others read, and in turn also write bad documentation. It's not a good model.
Doug
Dear Friends and Supporters!
I am new to SER, and I tried to download and install the ser from onsip.org, but I don't know how to start configure the ser. Doesn't anyone have step by step or direct me to somewhere I can find the information about setup and configure the SER.
I would be very appreciated!
Regards,
Lan.
I've read that there is a module for SER to support LDAP. But it is not
used for authentication/authorization, it's used for translating phone
numbers to URI adresses and the opposite. That module is for SER 0.8.x.
I would like to know if it is possible making the authentication of UAs
in a LDAP tree instead of in a POSTGRESQL db in newer SER versions.
Where can I find documentation about this? I tryed to find documents but
it was not easy.
Sorry about my bad English... :)
Thanks
Marco Passarinho
Just for future reference:
When using Serweb usrloc db_mode must be write-through not write-back - otherwise plenty of expired bindings occur in openser and Serweb shows wrong/outdated info.
Enjoy.