hello,
I have SER doing load balance across app servers. I would like SER to change the request URI with the ipaddress of the server in the returned destination set{using dispatcher module to Load balance}. How would I do this?
rewritehost(?)
regards, ac
__________________________________ Discover Yahoo! Find restaurants, movies, travel and more fun for the weekend. Check it out! http://discover.yahoo.com/weekend.html
I believe dispatcher changes dst_uri (the uri the message will be sent to, not the ruri). I'm not aware of any function that will copy the dst_uri to ruri, but maybe avpops can do that?! Anyway, it should be fairly straightforward adding a parameter to dispatcher controlling whether also the ruri will be changed. After a quick check (no guarantees), I believe you can use this function in the same location in dispatcher module where set_dst_uri is called: int rewrite_uri(struct sip_msg* _m, str* _s)
g-)
a c wrote:
hello,
I have SER doing load balance across app servers. I would like SER to change the request URI with the ipaddress of the server in the returned destination set{using dispatcher module to Load balance}. How would I do this?
rewritehost(?)
regards, ac
Discover Yahoo! Find restaurants, movies, travel and more fun for the weekend. Check it out! http://discover.yahoo.com/weekend.html
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
hello Greger,
Isn't this a bug interms of RFC? Shouldn't the ruri contain the next hop address?
As for making changes to the dispatcher module..this will be dangerous in my hands :-( Could someone add this?
thank you ac
--- "Greger V. Teigre" greger@teigre.com wrote:
I believe dispatcher changes dst_uri (the uri the message will be sent to, not the ruri). I'm not aware of any function that will copy the dst_uri to ruri, but maybe avpops can do that?! Anyway, it should be fairly straightforward adding a parameter to dispatcher controlling whether also the ruri will be changed. After a quick check (no guarantees), I believe you can use this function in the same location in dispatcher module where set_dst_uri is called: int rewrite_uri(struct sip_msg* _m, str* _s)
g-)
a c wrote:
hello,
I have SER doing load balance across app servers.
I
would like SER to change the request URI with the ipaddress of the server in the returned
destination
set{using dispatcher module to Load balance}. How would I do this?
rewritehost(?)
regards, ac
Discover Yahoo! Find restaurants, movies, travel and more fun for
the weekend. Check
it out! http://discover.yahoo.com/weekend.html
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
a c wrote:
Isn't this a bug interms of RFC? Shouldn't the ruri contain the next hop address?
ac, I'm really not an RFC expert, I just read it when I need an answer to a specific question... However, I believe this is perfectly valid for some situations and the same thing as when you do ex. a t_relay_to_udp().
As for making changes to the dispatcher module..this will be dangerous in my hands :-( Could someone add this?
Contact the maintainer, I think it is Klaus? He should be able to answer why the dst_uri and not ruri is changed and whether adding a flag for changing ruri is a good idea. g-)
thank you ac
--- "Greger V. Teigre" greger@teigre.com wrote:
I believe dispatcher changes dst_uri (the uri the message will be sent to, not the ruri). I'm not aware of any function that will copy the dst_uri to ruri, but maybe avpops can do that?! Anyway, it should be fairly straightforward adding a parameter to dispatcher controlling whether also the ruri will be changed. After a quick check (no guarantees), I believe you can use this function in the same location in dispatcher module where set_dst_uri is called: int rewrite_uri(struct sip_msg* _m, str* _s)
g-)
a c wrote:
hello,
I have SER doing load balance across app servers.
I
would like SER to change the request URI with the ipaddress of the server in the returned
destination
set{using dispatcher module to Load balance}. How would I do this?
rewritehost(?)
regards, ac
Discover Yahoo! Find restaurants, movies, travel and more fun for
the weekend. Check
it out! http://discover.yahoo.com/weekend.html
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
No, I checked (should have done it before I answered), it's Daniel-Constantin Mierla. I don't know where I got your name from. Have you posted messaged about dispatcher? ;-) g-)
Klaus Darilion wrote:
Greger V. Teigre wrote:
Contact the maintainer, I think it is Klaus? ...
No, I'm not. I haven't done any ser coding yet :-(
Or is there another klaus on the list?
regards, klaus
thanks Greger..hopefully he will see this message. How do I send an email to Daniel? The email address is not shown.
One other question : what variable holds the IP address where the request will be sent? I am using $SIP_SRCIP to get the source printed.
--- "Greger V. Teigre" greger@teigre.com wrote:
No, I checked (should have done it before I answered), it's Daniel-Constantin Mierla. I don't know where I got your name from. Have you posted messaged about dispatcher? ;-) g-)
Klaus Darilion wrote:
Greger V. Teigre wrote:
Contact the maintainer, I think it is Klaus? ...
No, I'm not. I haven't done any ser coding yet :-(
Or is there another klaus on the list?
regards, klaus
____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com
hello Daniel,
sorry about the subject line..could not find email address. Daniel, possible you could implement the functionality mentioned below to the dispatcher module?
thank you ac
--- "Greger V. Teigre" greger@teigre.com wrote:
a c wrote:
Isn't this a bug interms of RFC? Shouldn't the
ruri
contain the next hop address?
ac, I'm really not an RFC expert, I just read it when I need an answer to a specific question... However, I believe this is perfectly valid for some situations and the same thing as when you do ex. a t_relay_to_udp().
As for making changes to the dispatcher
module..this
will be dangerous in my hands :-( Could someone
add
this?
Contact the maintainer, I think it is Klaus? He should be able to answer why the dst_uri and not ruri is changed and whether adding a flag for changing ruri is a good idea. g-)
thank you ac
--- "Greger V. Teigre" greger@teigre.com wrote:
I believe dispatcher changes dst_uri (the uri the message will be sent to, not the ruri). I'm not aware of any function
that
will copy the dst_uri to ruri, but maybe avpops can do that?! Anyway, it should be fairly straightforward
adding a
parameter to dispatcher controlling whether also the ruri will be
changed.
After a quick check (no guarantees), I believe you can use this function
in
the same location in dispatcher module where set_dst_uri is called: int rewrite_uri(struct sip_msg* _m, str* _s)
g-)
a c wrote:
hello,
I have SER doing load balance across app
servers.
I
would like SER to change the request URI with
the
ipaddress of the server in the returned
destination
set{using dispatcher module to Load balance}.
How
would I do this?
rewritehost(?)
regards, ac
Discover Yahoo! Find restaurants, movies, travel and more fun
for
the weekend. Check
it out! http://discover.yahoo.com/weekend.html
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam
protection around
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Hello,
I am the one :-). I can add this as a option to the module. The next hop can be something else than r-uri (e.g., outbound proxy address, Route header ...)
Daniel
On 06/24/05 06:13, a c wrote:
hello Daniel,
sorry about the subject line..could not find email address. Daniel, possible you could implement the functionality mentioned below to the dispatcher module?
thank you ac
--- "Greger V. Teigre" greger@teigre.com wrote:
a c wrote:
Isn't this a bug interms of RFC? Shouldn't the
ruri
contain the next hop address?
ac, I'm really not an RFC expert, I just read it when I need an answer to a specific question... However, I believe this is perfectly valid for some situations and the same thing as when you do ex. a t_relay_to_udp().
As for making changes to the dispatcher
module..this
will be dangerous in my hands :-( Could someone
add
this?
Contact the maintainer, I think it is Klaus? He should be able to answer why the dst_uri and not ruri is changed and whether adding a flag for changing ruri is a good idea. g-)
thank you ac
--- "Greger V. Teigre" greger@teigre.com wrote:
I believe dispatcher changes dst_uri (the uri the message will be sent to, not the ruri). I'm not aware of any function
that
will copy the dst_uri to ruri, but maybe avpops can do that?! Anyway, it should be fairly straightforward
adding a
parameter to dispatcher controlling whether also the ruri will be
changed.
After a quick check (no guarantees), I believe you can use this function
in
the same location in dispatcher module where set_dst_uri is called: int rewrite_uri(struct sip_msg* _m, str* _s)
g-)
a c wrote:
hello,
I have SER doing load balance across app
servers.
I
would like SER to change the request URI with
the
ipaddress of the server in the returned
destination
set{using dispatcher module to Load balance}.
How
would I do this?
rewritehost(?)
regards, ac
Discover Yahoo! Find restaurants, movies, travel and more fun
for
the weekend. Check
it out! http://discover.yahoo.com/weekend.html
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam
protection around
Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
hello Daniel, glad I found you ;-)
So if I understand you correctly, the ruri will be rewritten with the returned destination set ip?
example:
if the request came into SER as:
ruri : xyz@10.10.10.100{ser address},
then after dispatcher call, ruri will contain
ruri : xyz@10.10.100.5:5060
if dispatcher.list contains: 1 sip:10.10.100.5:5060
is this correct?
thank you ac
--- Daniel-Constantin Mierla daniel@voice-system.ro wrote:
Hello,
I am the one :-). I can add this as a option to the module. The next hop can be something else than r-uri (e.g., outbound proxy address, Route header ...)
Daniel
On 06/24/05 06:13, a c wrote:
hello Daniel,
sorry about the subject line..could not find email address. Daniel, possible you could implement the functionality mentioned below to the dispatcher module?
thank you ac
--- "Greger V. Teigre" greger@teigre.com wrote:
a c wrote:
Isn't this a bug interms of RFC? Shouldn't the
ruri
contain the next hop address?
ac, I'm really not an RFC expert, I just read it when I need an answer to a specific question... However, I believe this is perfectly valid for some situations and the same thing as when you do ex. a t_relay_to_udp().
As for making changes to the dispatcher
module..this
will be dangerous in my hands :-( Could someone
add
this?
Contact the maintainer, I think it is Klaus? He should be able to answer why the dst_uri and not ruri is changed and whether adding a flag for changing ruri is a good idea. g-)
thank you ac
--- "Greger V. Teigre" greger@teigre.com wrote:
I believe dispatcher changes dst_uri (the uri
the
message will be sent to, not the ruri). I'm not aware of any function
that
will copy the dst_uri to ruri, but maybe avpops can do that?! Anyway, it should be fairly straightforward
adding a
parameter to dispatcher controlling whether also the ruri will be
changed.
After a quick check (no guarantees), I believe you can use this function
in
the same location in dispatcher module where set_dst_uri is called: int rewrite_uri(struct sip_msg* _m, str* _s)
g-)
a c wrote:
hello,
I have SER doing load balance across app
servers.
I
would like SER to change the request URI with
the
ipaddress of the server in the returned
destination
set{using dispatcher module to Load balance}.
How
would I do this?
rewritehost(?)
regards, ac
Discover Yahoo! Find restaurants, movies, travel and more fun
for
the weekend. Check
it out! http://discover.yahoo.com/weekend.html
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam
protection around
Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam
protection around
=== message truncated ===
__________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail