Hello all,
this was already asked on the SER mailinglist without response.
is there a way to rewrite radius auth request information packet before
sending to radius?
i need to change User-Name attribute of the authentication request.
reading the source of auth_radius module i think this is not possible
right now.
the User-Name is filled by the digest credential username + realm.
could be usefull to have the possibility of customize this.
thank you,
:tele
no that was the TM module docs I used. It was an sgml file.
________________________________
From: Greger V. Teigre [mailto:greger@teigre.com]
Sent: Monday, December 04, 2006 3:34 PM
To: Paul Antinori (pantinor)
Cc: serusers(a)iptel.org
Subject: Re: [Serusers] Retry count setting for invites
?? Was that a question? Did you read the documentation I referred to?
g-)
Paul Antinori (pantinor) wrote:
I am using the timers as below:
modparam("tm","fr_timer",5)
modparam("tm","fr_inv_timer",5)
There do not seem to be any max count parameters to set
according to the TM module docs.
Thanks,
Paul
________________________________
From: Greger V. Teigre [mailto:greger@teigre.com]
Sent: Monday, December 04, 2006 6:51 AM
To: Paul Antinori (pantinor)
Cc: serusers(a)iptel.org
Subject: Re: [Serusers] Retry count setting for invites
See the FAQs on iptel.org for docs on 0.9.x timers and What's
new in 0.10.x for docs on the new timers in SER Ottendorf.
g-)
Paul Antinori (pantinor) wrote:
Can the number of times that an INVITE is sent with UDP
be configured with a modparam type setting in the cfg file?
For example, a max invite retry count setting?
I saw modparam "tm" settings for timers, but nothing for
the retry count.
Thank you,
Paul
________________________________
_______________________________________________
Serusers mailing list
Serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
I am using the timers as below:
modparam("tm","fr_timer",5)
modparam("tm","fr_inv_timer",5)
There do not seem to be any max count parameters to set according to the
TM module docs.
Thanks,
Paul
________________________________
From: Greger V. Teigre [mailto:greger@teigre.com]
Sent: Monday, December 04, 2006 6:51 AM
To: Paul Antinori (pantinor)
Cc: serusers(a)iptel.org
Subject: Re: [Serusers] Retry count setting for invites
See the FAQs on iptel.org for docs on 0.9.x timers and What's new in
0.10.x for docs on the new timers in SER Ottendorf.
g-)
Paul Antinori (pantinor) wrote:
Can the number of times that an INVITE is sent with UDP be
configured with a modparam type setting in the cfg file?
For example, a max invite retry count setting?
I saw modparam "tm" settings for timers, but nothing for the
retry count.
Thank you,
Paul
________________________________
_______________________________________________
Serusers mailing list
Serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
Hi Steve,
Yes I am trying to get SER to resend the INVITE to priority 2 after
priority 1 timed out due to connection down scenario.
Thank you,
Paul
-----Original Message-----
From: Steve Blair [mailto:blairs@isc.upenn.edu]
Sent: Monday, December 04, 2006 9:37 AM
To: Paul Antinori (pantinor)
Cc: Greger V. Teigre; serusers(a)iptel.org
Subject: Re: [Serusers] SRV failover question
Paul:
Are you trying to get the proxy server to re-send the invite based on
the SRV list or the phone?
_Steve
Paul Antinori (pantinor) wrote:
> Greger and all,
>
> The URL does not really help. You will see my cfg script below is
> already using rewritehostport with no port and the SRV name.
> I also am not using t_on_failure as it should not be necessary
> according the post by Klaus.
>
> Heres my SRV table with the ranking priorities:
>
> _sip._udp.vxml.pats.cisco.com SRV service location:
> priority = 1
> weight = 1
> port = 5060
> svr hostname = vxml-1.pats.cisco.com
> _sip._udp.vxml.pats.cisco.com SRV service location:
> priority = 2
> weight = 1
> port = 5060
> svr hostname = vxml-2.pats.cisco.com
> _sip._udp.vxml.pats.cisco.com SRV service location:
> priority = 3
> weight = 1
> port = 5060
> svr hostname = vxml-3.pats.cisco.com
> pats.cisco.com nameserver = ns1.pats.cisco.com
> vxml-1.pats.cisco.com internet address = 10.86.129.x
> vxml-2.pats.cisco.com internet address = 10.86.129.x
> vxml-3.pats.cisco.com internet address = 10.86.129.x
> ns1.pats.cisco.com internet address = 10.86.129.x
>
>
> Thanks anyone for any help,
>
> Paul
>
>
>
> ----------------------------------------------------------------------
> --
> *From:* Greger V. Teigre [mailto:greger@teigre.com]
> *Sent:* Monday, December 04, 2006 6:41 AM
> *To:* Paul Antinori (pantinor)
> *Cc:* serusers(a)iptel.org
> *Subject:* Re: [Serusers] SRV failover question
>
> http://lists.iptel.org/pipermail/serusers/2006-October/030813.html
>
> Paul Antinori (pantinor) wrote:
>>
>> Hi,
>>
>> Regarding the SRV query addition in (ser-0.9.7-pre7), when the call
>> fails on the first priority destination, it never seems to attempt to
>> send the INVITE to the second priority destination in the SRV
>> response list. Is there anything else to script in the ser.cfg file
>> to get this to work?
>>
>> Thanks for help,
>>
>> Paul
>>
>> [root@iptel-sip-proxy /]# /usr/sbin/tethereal | grep SIP Capturing on
>> eth0
>> 10.100556 10.86.142.144 -> 10.86.129.17 SIP Request: INVITE
>> sip:77710107773365@10.86.129.17:5060;transport=udp
>> 10.101774 10.86.129.17 -> 10.86.142.144 SIP Status: 100 trying --
>> your call is important to us
>> 14.233596 10.86.129.17 -> 10.86.142.144 SIP Status: 408 Request
>> Timeout 14.235930 10.86.142.144 -> 10.86.129.17 SIP Request: ACK
>> sip:77710107773365@10.86.129.17:5060;transport=udp
>> 2139 packets captured
>>
>> [root@iptel-sip-proxy /]# /usr/sbin/tethereal | grep DNS Capturing on
>> eth0
>> 4.279486 10.86.129.17 -> 10.86.129.16 DNS Standard query SRV
>> _sip._udp.vxml.pats.cisco.com
>> 4.279897 10.86.129.16 -> 10.86.129.17 DNS Standard query response
>> 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
>>
>> 4.280045 10.86.129.17 -> 10.86.129.16 DNS Standard query A
>> vxml-1.pats.cisco.com
>> 4.280231 10.86.129.16 -> 10.86.129.17 DNS Standard query response A
>> 10.86.129.2 <--this is unplugged from the network
>>
>>
>> debug=3
>> fork=yes
>> log_stderror=yes
>> rev_dns=no
>> port=5060
>> children=4
>> check_via=no
>> sip_warning=yes
>> fifo="/tmp/ser_fifo"
>> uid="nobody"
>> gid="nobody"
>>
>> #aliases for this proxy server
>> #ie hostnames/domains that it routes for alias=sox.cisco.com
>> alias=pats.cisco.com
>>
>> loadmodule "/usr/local/lib/ser/modules/sl.so"
>> loadmodule "/usr/local/lib/ser/modules/tm.so"
>> loadmodule "/usr/local/lib/ser/modules/rr.so"
>> loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
>> loadmodule "/usr/local/lib/ser/modules/usrloc.so"
>> loadmodule "/usr/local/lib/ser/modules/registrar.so"
>> loadmodule "/usr/local/lib/ser/modules/textops.so"
>>
>> modparam("usrloc", "db_mode", 0)
>> modparam("rr", "enable_full_lr", 1)
>> modparam("tm","fr_timer",5)
>> modparam("tm","fr_inv_timer",5)
>>
>> route{
>>
>>
>> if (!mf_process_maxfwd_header("10")) {
>> sl_send_reply("483","Too Many Hops");
>> break;
>> };
>>
>> if (uri=~"^sip:1") {
>> log(1, "SER found 1*\n");
>> rewritehostport("ccm.pats.cisco.com");route(1);break;
>> }
>> if (uri=~"^sip:2") {
>> log(1, "SER Found 2*\n");
>> rewritehostport("ccm.pats.cisco.com");route(1);break;
>> }
>> if (uri=~"^sip:7") {
>> log(1, "SER Found 7*\n");
>>
rewritehostport("vxml.pats.cisco.com");route(1);break;
>> }
>> if (uri=~"^sip:8") {
>> log(1, "SER Found 8*\n");
>> rewritehostport("SER.pats.cisco.com");route(1);break;
>> }
>> if (uri=~"^sip:9") {
>> log(1, "SER Found 9*\n");
>>
>> rewritehostport("ringtone.pats.cisco.com");route(1);break;
>> }
>>
>> log(1,"Could Not Match DN to Route\n");
>> route(1);
>> }
>>
>> route[1]
>> {
>> if (!t_relay()) {
>> sl_reply_error();
>> };
>> }
>>
>> ---------------------------------------------------------------------
>> ---
>>
>> _______________________________________________
>> 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 have the following config :
loadmodule "/opt/ser-0.9.6/lib/ser/modules/avp.so"
and in main route block, after the first Sanity Check Section :
uri2attr("ruri");
print_sattr("ruri");
#
if (is_sattr_set("ruri")) {
xlog("L_NOTICE", "SET");
print_sattr("ruri");
} else {
xlog("L_NOTICE", "NOT SET");
};
It seems that 'print_sattr()' simply does not work.
On first 'print_sattr("ruri")' command I have nothing at my syslog.
On 'if' block, the function 'is_sattr_set()' works ok,
I get the "SET" message @ syslog, but not the 'ruri' attribute.
Am I miss something ?
thanks for any help,
Kostas
--
e-mail: K.Marneris(a)otenet.gr
HI,
My Asterisk is registed with my SER. My client are connected to asterisk
when they dial any no like 62222 asterisk passes this is ser and then again
ser passes this no 2222 (strip 1) back to my asterisk. but insted of ringing
this exten it says loop detected. can some one tell me what is wrong.
thanks
arun
Greger and all,
The URL does not really help. You will see my cfg script below is
already using rewritehostport with no port and the SRV name.
I also am not using t_on_failure as it should not be necessary according
the post by Klaus.
Heres my SRV table with the ranking priorities:
_sip._udp.vxml.pats.cisco.com SRV service location:
priority = 1
weight = 1
port = 5060
svr hostname = vxml-1.pats.cisco.com_sip._udp.vxml.pats.cisco.com SRV service location:
priority = 2
weight = 1
port = 5060
svr hostname = vxml-2.pats.cisco.com_sip._udp.vxml.pats.cisco.com SRV service location:
priority = 3
weight = 1
port = 5060
svr hostname = vxml-3.pats.cisco.compats.cisco.com nameserver = ns1.pats.cisco.comvxml-1.pats.cisco.com internet address = 10.86.129.x
vxml-2.pats.cisco.com internet address = 10.86.129.x
vxml-3.pats.cisco.com internet address = 10.86.129.x
ns1.pats.cisco.com internet address = 10.86.129.x
Thanks anyone for any help,
Paul
________________________________
From: Greger V. Teigre [mailto:greger@teigre.com]
Sent: Monday, December 04, 2006 6:41 AM
To: Paul Antinori (pantinor)
Cc: serusers(a)iptel.org
Subject: Re: [Serusers] SRV failover question
http://lists.iptel.org/pipermail/serusers/2006-October/030813.html
Paul Antinori (pantinor) wrote:
Hi,
Regarding the SRV query addition in (ser-0.9.7-pre7), when the
call fails on the first priority destination, it never seems to attempt
to send the INVITE to the second priority destination in the SRV
response list. Is there anything else to script in the ser.cfg file to
get this to work?
Thanks for help,
Paul
[root@iptel-sip-proxy /]# /usr/sbin/tethereal | grep SIP
Capturing on eth0
10.100556 10.86.142.144 -> 10.86.129.17 SIP Request: INVITE
sip:77710107773365@10.86.129.17:5060;transport=udp
10.101774 10.86.129.17 -> 10.86.142.144 SIP Status: 100 trying
-- your call is important to us
14.233596 10.86.129.17 -> 10.86.142.144 SIP Status: 408 Request
Timeout
14.235930 10.86.142.144 -> 10.86.129.17 SIP Request: ACK
sip:77710107773365@10.86.129.17:5060;transport=udp
2139 packets captured
[root@iptel-sip-proxy /]# /usr/sbin/tethereal | grep DNS
Capturing on eth0
4.279486 10.86.129.17 -> 10.86.129.16 DNS Standard query SRV
_sip._udp.vxml.pats.cisco.com
4.279897 10.86.129.16 -> 10.86.129.17 DNS Standard query
response 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
4.280045 10.86.129.17 -> 10.86.129.16 DNS Standard query A
vxml-1.pats.cisco.com
4.280231 10.86.129.16 -> 10.86.129.17 DNS Standard query
response A 10.86.129.2 <--this is unplugged from the network
debug=3
fork=yes
log_stderror=yes
rev_dns=no
port=5060
children=4
check_via=no
sip_warning=yes
fifo="/tmp/ser_fifo"
uid="nobody"
gid="nobody"
#aliases for this proxy server
#ie hostnames/domains that it routes for
alias=sox.cisco.comalias=pats.cisco.com
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
modparam("usrloc", "db_mode", 0)
modparam("rr", "enable_full_lr", 1)
modparam("tm","fr_timer",5)
modparam("tm","fr_inv_timer",5)
route{
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if (uri=~"^sip:1") {
log(1, "SER found 1*\n");
rewritehostport("ccm.pats.cisco.com");route(1);break;
}
if (uri=~"^sip:2") {
log(1, "SER Found 2*\n");
rewritehostport("ccm.pats.cisco.com");route(1);break;
}
if (uri=~"^sip:7") {
log(1, "SER Found 7*\n");
rewritehostport("vxml.pats.cisco.com");route(1);break;
}
if (uri=~"^sip:8") {
log(1, "SER Found 8*\n");
rewritehostport("SER.pats.cisco.com");route(1);break;
}
if (uri=~"^sip:9") {
log(1, "SER Found 9*\n");
rewritehostport("ringtone.pats.cisco.com");route(1);break;
}
log(1,"Could Not Match DN to Route\n");
route(1);
}
route[1]
{
if (!t_relay()) {
sl_reply_error();
};
}
________________________________
_______________________________________________
Serusers mailing list
Serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
hey ppl,
i new to ser and i am struck at a point. I have 3 local machines
and i have set them up as shown
dialer -----> ser ---------> pstn gateway
when i register to ser i use user at IPaddress:Port and then simply
dial a pstn number in the script i am simply forwarding it to a
pstn gateway ....
Now my question is when SER forwards the request to the PSTN gateway
it adds a new via header in which it uses IPaddress:Port whereas i want
ser to use the domain that has been specified on the ser machine using
export SIP_DOMAIN = "test domain" command
First of all can i do that if yes please guide me how to do that ...
and how do i make ser use example.domain ... is there any other way ???
I am using the hello world cfg file .... with no db / media proxy support.
please correct me and help me thanks in advance
Zeeshan
---------------------------------
Everyone is raving about the all-new Yahoo! Mail beta.
Thanks for your answer.
I'm just trying to register a phone to multiple openser,
for load balancing, instead of having a single usrloc database.
The doc of tm module about t_replicate says that:
"No information due the replicated request (like reply code) will be
forwarded to the original SIP UAC."
So it's seems that there should be no problems about reply code,
but if ser makes a fork, only a single t_replicate is possible.
What am I missing?
> You just have to make a tcpdump and see what happen to be sure.
>
> Thomas
Yes, but as you know, to REGISTER a phone, you have more than one step.
Phone -> Asterisk: REGISTER without authentification
Phone <- Asterisk: 401 / unauthaurized
Phone -> Asterisk: REGISTER with authentification
Phone <- Asterisk: 200 (OK)
So, if you duplicate a message REGISTER, SER make a fork.
The phone has to response to the 3 (if you have 3 asterisk servers) 401 messages (because of the different nonce) with 3 "REGISTER with authentification".
All phone are not able to do this... be careful,
Thomas Deillon
-----Message d'origine-----
De : users-bounces(a)openser.org [mailto:users-bounces@openser.org] De la part de Marco
Envoyé : lundi, 4. décembre 2006 11:53
À : users(a)openser.org
Objet : [Users] t_replicate to multiple destinations
Hi all,
I read on the docs of the tm module that I can use t_replicate to
send, for example, REGISTER to multiple destinations.
Can a I replicate to more than one server, such as
t_replicate("sip:1.2.3.4")
t_replicate("sip:1.2.3.5")
t_replicate("sip:1.2.3.6")
and so on ?
>From the docs it seems possible, but I don't know how to set branches.
TIA,
--
"Work and play are words used to
describe the same thing under
differing conditions." Mark Twain
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users