Hi All
When I do logon with a wrong username/pwd I get the following error 401 UNAUTHORIZED. If I do want to change that error "for whatever stupid reason :-)" I know I could change that message using the header files and recompile. However I only know where to change the UNAUTHORIZED keyword, what about the 401 number...apart from that could I change that message using ss_reply ?
Thanks
With Regards
Ali Jawad
System Administrator
Splendor Telecom (www.splendor.net)
Beirut, Lebanon
Phone: +961 1 373725
Fax: + 961 1 375554
Why do you want to change it? To which code?
Actually do not call www_authorized and then you do not get 401, but use sl_send_reply("456","any foobar");
klaus
Ali Jawad schrieb:
Hi All
When I do logon with a wrong username/pwd I get the following error 401 UNAUTHORIZED. If I do want to change that error “for whatever stupid reason J” I know I could change that message using the header files and recompile. However I only know where to change the UNAUTHORIZED keyword, what about the 401 number…apart from that could I change that message using ss_reply ?
Thanks
With Regards
Ali Jawad
System Administrator
Splendor Telecom (www.splendor.net)
Beirut, Lebanon
Phone: +961 1 373725
Fax: + 961 1 375554
Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
Hi Klaus Thanks for the continous support, actually the question is not just about the 401 it is for a couple of response codes, I want to change the language for those. Thanks
-----Original Message----- From: Klaus Darilion [mailto:klaus.mailinglists@pernau.at] Sent: 2008-08-29 17:22 To: Ali Jawad Cc: users@lists.kamailio.org; users@lists.openser.org Subject: Re: [Kamailio-Users] About Changing 401 Message
Why do you want to change it? To which code?
Actually do not call www_authorized and then you do not get 401, but use
sl_send_reply("456","any foobar");
klaus
Ali Jawad schrieb:
Hi All
When I do logon with a wrong username/pwd I get the following error
401
UNAUTHORIZED. If I do want to change that error "for whatever stupid reason J" I know I could change that message using the header files
and
recompile. However I only know where to change the UNAUTHORIZED
keyword,
what about the 401 number...apart from that could I change that
message
using ss_reply ?
Thanks
With Regards
Ali Jawad
System Administrator
Splendor Telecom (www.splendor.net)
Beirut, Lebanon
Phone: +961 1 373725
Fax: + 961 1 375554
------------------------------------------------------------------------
Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
El Friday 29 August 2008 16:24:44 Ali Jawad escribió:
Hi Klaus Thanks for the continous support, actually the question is not just about the 401 it is for a couple of response codes, I want to change the language for those.
The important point is:
- Do you generate these responses in your proxy? - Or are they responses sent by a UAS throught your proxy?
There is solution for change both cases but you must specify.
Hi Some of those responses for example "Insufficient funds" will be sent from asterisk. However logon errors and 404 errors for p2p calls are right from Openser. Regards
With Regards
Ali Jawad
System Administrator
Splendor Telecom (www.splendor.net)
Beirut, Lebanon
Phone: +961 1 373725
Fax: +961 1 375554
-----Original Message----- From: users-bounces@lists.kamailio.org [mailto:users-bounces@lists.kamailio.org] On Behalf Of Iñaki Baz Castillo Sent: 2008-08-29 17:43 To: users@lists.kamailio.org Subject: Re: [Kamailio-Users] About Changing 401 Message
El Friday 29 August 2008 16:24:44 Ali Jawad escribió:
Hi Klaus Thanks for the continous support, actually the question is not just about the 401 it is for a couple of response codes, I want to change the language for those.
The important point is:
- Do you generate these responses in your proxy? - Or are they responses sent by a UAS throught your proxy?
There is solution for change both cases but you must specify.
El Friday 29 August 2008 17:04:15 Ali Jawad escribió:
Hi Some of those responses for example "Insufficient funds" will be sent from asterisk.
Yo change those replies you must use failure_route[X] and do:
failure_route[X] { if (t_check_status("403")) { t_reply("403", "Cusom reason phrase"); exit; } }
However logon errors and 404 errors for p2p calls are right from Openser.
Then you do in a route[X]:
route[X] { sl_send("404", "Custom reasno phrase"); }
Regards.
Ali Jawad wrote:
Hi Some of those responses for example "Insufficient funds" will be sent from asterisk. However logon errors and 404 errors for p2p calls are right from Openser. Regards
In a nod to our indebtedness to hippie-ism for its enormous contributions to the canon of intellectual history, I propose that SIP responses indicating lack of credit be changed to, "Dude, no fundulation."