On Fri, 10 Feb 2006 19:26:59 +1000, Nick Hoffman
wrote
> Just a couple of quick questions relating to aliases :)
>
> If the environment variable SIP_DOMAIN is not set, why does adding
> an alias with serctl fail?: nick@customer-dev3:~> sudo serctl
> alias add 123456 sip:nick@altcall.com domain unknown: use
> usernames with domain or set default domain in SIP_DOMAIN
>
> Once I set SIP_DOMAIN like so:
> export
SIP_DOMAIN=altcall.com
> Adding an alias as described above works, but why is the alias not
> listed in the MySQL database?: mysql> select * from aliases;
> Empty set (0.00 sec)
>
> Thanks and enjoy the weekend!
> -- Nick
> e: nick.hoffman(a)altcall.com
> p: +61 7 5591 3588
> f: +61 7 5591 6588
>
> If you receive this email by mistake, please notify us and do not
> make any use of the email. We do not waive any privilege,
> confidentiality or copyright associated with it.
On Fri February 10 2006 19:41, "sip" <sip(a)arcdiv.com> wrote:
Give it a minute. I've found that when I add an
alias that way, it seems
to update to the database at a delayed interval, though I'm not entirely
sure why (I suppose I could futz around in the code to find out, but
it's never really bothered me enough to do so).
The great mystery to ME is not why the adding of the alias fails but why
it succeeds and then proceeds NOT to put the SIP_DOMAIN into the alias
table. :)
N.
You're right, it did just take some time. That must be because I opted to
update the database asynchronously. However, your comment of why the
domain isn't inserted befuddles me, as my domain was inserted:
mysql> select username, domain, contact from aliases;
+----------+-------------+----------------------+
| username | domain | contact |
+----------+-------------+----------------------+
| 12347777 |
altcall.com | sip:nick@altcall.com |
| 12347778 |
altcall.com | sip:nick@altcall.com |
+----------+-------------+----------------------+
2 rows in set (0.00 sec)
mysql>
Cheers,
-- Nick
e: nick.hoffman(a)altcall.com
p: +61 7 5591 3588
f: +61 7 5591 6588
If you receive this email by mistake, please notify us and do not make any
use of the email. We do not waive any privilege, confidentiality or
copyright associated with it.