i have this kind of test in my config:
if (lookup_domain("$fd", "$ad")) {
$var(lcr_id) = $fd.lcr_id;
} else {
xlog("L_WARN", "Domain $ad of authorized user $aU is not local!\n");
send_reply("404", "Not found");
exit;
};
the problem is that when request that has header
Proxy-Authorization: Digest username="test(a)test.fi"
arrives, sr prints to syslog
Oct 28 20:01:09 localhost /usr/sbin/sip-proxy[7248]: WARNING: Domain of authorized user test is not local!
i.e., $ad does not have test.fi as its value.
according to wiki it should work:
Auth username domain
$ad - domain part of username from Authorization or Proxy-Authorization
header
so this looks like a bug to me.
-- juha
Module: sip-router
Branch: master
Commit: 8b9ccd17e24054d734c12be2c2ae79bc864bf59f
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8b9ccd1…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Wed Oct 28 16:41:39 2009 +0100
Merge remote branch 'origin/sr_3.0'
* origin/sr_3.0:
htable(k): fix non-init act. ctx in event route execution
tm: fix/support changing r-uris and path in branch routes
tm: support for changing dst_uri in branch routes
registrar: Fix handling of cases where contacts > max_contacts
domain: Do not report errors when domain cannot be extracted from URI.
parse_sip_msg_uri: Log broken URIs only when debugging is enabled.
modules/lcr: documentation improvement
sctp: count rejects sent to the remote peer (stats)
avp_db: Removes a spurious error message.
ctl: missing ifdef (minor)
event parser: Add missing string boundary checks to event_parser func.
tm: Number of fixes in code and documentation for serial forking.
Implements function reset_path_vector.
---
Module: sip-router
Branch: sr_3.0
Commit: 610cb930bee937c744468c6781aeed8b17b4b7d0
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=610cb93…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Wed Oct 28 15:50:45 2009 +0100
tm: fix/support changing r-uris and path in branch routes
- changing the r-uri in a branch route is now safe and the change
will propagate to branches created due to dns failover.
- changing path in a branch route is now allowed and it will
propagate to possible dns failover branches.
- optimize the no branch route & no callback case.
- build the branch buffer directly into shm mem.
- s/prepare_uac_request/prepare_new_uac/
- prepare_new_uac() takes care now also of setting the branch
retr. buffer, uri and path (functionality moved from add_uac())
---
modules/tm/t_fwd.c | 417 +++++++++++++++++++++++++++++++---------------------
1 files changed, 247 insertions(+), 170 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=610…
Module: sip-router
Branch: sr_3.0
Commit: 44f7bf621476b18e5df5e45161305a3bce22d498
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=44f7bf6…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Wed Oct 28 08:36:47 2009 +0100
tm: support for changing dst_uri in branch routes
- dst_uri can now be changed in branch routes, if the branch
route is not called during dns failover (which never happens,
but might be enabled in the future).
- dst_uri can now be checked in branch routes. The
dst_uri on branch route entry will be the branch next hop
(initial next hop and not the dns resolved one) if a
t_relay() based on uri was used, or empty if a destination was
forced (e.g. t_relay_to_udp(127.0.0.1, 9)).
- s/print_uac_request/prepare_uac_request to better reflect what
is actually doing
- prepare_uac_request() will now perform the DNS lookups and directly
update the branch dst inside the transaction.
- add_uac() must now be called with a special flag during DNS
failover (UAC_DNS_FAILOVER).
---
modules/tm/t_fwd.c | 176 ++++++++++++++++++++++++++++++++++++----------------
modules/tm/t_fwd.h | 2 +
2 files changed, 125 insertions(+), 53 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=44f…