it turned out that if i have in openser.cfg
listen=x.x.x.x alias="sip.foo.bar:5060" port=5060 auto_aliases=no
then openser advertises at startup:
Aliases: *: sip.foo.bar:5060:*
and loose_route DOES NOT recognize that
Route header sip:sip.foo.bar;lr;transport=TCP
is local.
on the other hand, if i comment line
#auto_aliases=no
openser advertises at startup:
Aliases: tcp: sip.foo.bar:5060 udp: sip.foo.bar:5060 *: sip.foo.bar:5060:*
and it DOES recognize that above Route header is local.
if i uncomment
auto_aliases=no
and change
alias="sip.foo.bar:5060"
to
alias="udp:sip.foo.bar:5060" alias="tcp:sip.foo.bar:5060"
then loose_route DOES NOT recognize that the route header is local.
my question is, how should i write the alias statements so that the route header is recognized local even when i have auto_aliases=no?
-- juha
Hello,
the issue is actually that alias parameter does not take full value between quotes (same happens with listen) -- only hostname can be in between quotes.
So please try with:
alias=sip.foo.bar:5060
and see if works now.
Cheers, Daniel
PS: you can have
alias="sip.foo.bar":5060
or alias=udp:"sip.foo.bar":5060
but not:
alias="udp:sip.foo.bar:5060" -- the whole value will be considered only hostname
On 03/20/07 19:33, Juha Heinanen wrote:
it turned out that if i have in openser.cfg
listen=x.x.x.x alias="sip.foo.bar:5060" port=5060 auto_aliases=no
then openser advertises at startup:
Aliases: *: sip.foo.bar:5060:*
and loose_route DOES NOT recognize that
Route header sip:sip.foo.bar;lr;transport=TCP
is local.
on the other hand, if i comment line
#auto_aliases=no
openser advertises at startup:
Aliases: tcp: sip.foo.bar:5060 udp: sip.foo.bar:5060 *: sip.foo.bar:5060:*
and it DOES recognize that above Route header is local.
if i uncomment
auto_aliases=no
and change
alias="sip.foo.bar:5060"
to
alias="udp:sip.foo.bar:5060" alias="tcp:sip.foo.bar:5060"
then loose_route DOES NOT recognize that the route header is local.
my question is, how should i write the alias statements so that the route header is recognized local even when i have auto_aliases=no?
-- juha
Daniel-Constantin Mierla writes:
the issue is actually that alias parameter does not take full value between quotes (same happens with listen) -- only hostname can be in between quotes.
So please try with:
alias=sip.foo.bar:5060
and see if works now.
daniel,
yes, it works without the quotes. i removed the quotes from wiki document.
thanks,
-- juha
On 03/20/07 19:46, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
the issue is actually that alias parameter does not take full value between quotes (same happens with listen) -- only hostname can be in between quotes.
So please try with:
alias=sip.foo.bar:5060
and see if works now.
daniel,
yes, it works without the quotes. i removed the quotes from wiki document.
ok, great. It is a bit misleading, should find a way to make it more clear in the future. Perhaps the quoted values should be at least checked for a valid hostname or IP address format. Now, it is taken as bulk string.
Cheers, Daniel
thanks,
-- juha
What about forbidding " in alias at all?
regards klaus
On Tue, March 20, 2007 18:48, Daniel-Constantin Mierla said:
On 03/20/07 19:46, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
the issue is actually that alias parameter does not take full value between quotes (same happens with listen) -- only hostname can be in between quotes.
So please try with:
alias=sip.foo.bar:5060
and see if works now.
daniel,
yes, it works without the quotes. i removed the quotes from wiki document.
ok, great. It is a bit misleading, should find a way to make it more clear in the future. Perhaps the quoted values should be at least checked for a valid hostname or IP address format. Now, it is taken as bulk string.
Cheers, Daniel
thanks,
-- juha
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users