Hello all.
I made slight progress on solving my alias problem. I decided to get a fresh copy of ser from CVS and try it again.
The small progess I made is that now "serctl alias show 5000" returns
sip:1002@mycompany.com;q=1;expires=-22107
whereas before it gate me a 404 and said the alias didn't exist. Now my problem is that "serctl ul show 1002@mycompany.com" doesn't work.
I got the "serctl alias show 5000" command to work by recompiling the latest source. I checked out the latest code from CVS using:
cvs -z3 -d:pserver:anonymous@cvs.serweb.berlios.de:/cvsroot/serweb co -r HEAD sip_router
I compiled it and checked the version which is reported with "ser -V" as follows:
version: ser 0.8.99-dev6 (i386/linux) flags: STATS: Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535 @(#) $Id: main.c,v 1.193 2004/09/19 20:22:51 andrei Exp $ main.c compiled on 21:44:37 Sep 24 2004 with gcc 3.2
I've got an entry in the subscribers table for user 1002@mycompany.com. I Also have an alias for 1002@mycompany in the aliases table called 5000
Now when I run "serctl alias show 5000" the following is returned
sip:1002@mycompany.com;q=1;expires=-21224
If I execute "serctl ul show 1002@mycompany.com" I get
404 Username 1002@mycompany.com in table location not found
The same is true for "serctl ul show 1002" or "serctl ul show 5000". I even tried "serctl ul show 1002@mycompany.com" but still got a 404.
When I call sip:1002@mycompany.com the call completes properly. But if I call sip:5000@mycompany.com I get a 404 error.
The output of "serctl ul show" follows:
I do have lookup("aliases") in my ser.cfg file. Any thoughts as to why my aliases still aren't working? Paul
Dumping all contacts may take long: are you sure you want to proceed? [Y|N] y ===Domain list=== ---Domain--- name : 'aliases' size : 512 table: 0xb543c5d8 d_ll { n : 2 first: 0xb543e5e0 last : 0xb543e700 }
...Record(0xb543e700)... domain: 'aliases' aor : '5000' ~~~Contact(0xb543e740)~~~ domain : 'aliases' aor : '5000' Contact : 'sip:1002@mycompany.com' Expires : -21641 q : 1 Call-ID : 'The-Answer-To-The-Ultimate-Question-Of-Life-Universe-And-Everything' CSeq : 42 replic : 0 User-Agent: 'SIP Express Router FIFO' received : '' State : CS_SYNC Flags : 128 next : (nil) prev : (nil) ~~~/Contact~~~~ .../Record...
---/Domain--- ---Domain--- name : 'location' size : 512 table: 0xb5439ed0 d_ll { n : 6 first: 0xb543bed8 last : 0xb543c458 }
domain: 'location' aor : '1002@mycompany.com' ~~~Contact(0xb543c158)~~~ domain : 'location' aor : '1002@mycompany.com' Contact : 'sip:1002@16.18.24.200:47619;user=phone' Expires : 1706 q : Call-ID : 'e9080ee83f469c27@16.18.24.200' CSeq : 103 replic : 0 User-Agent: 'Grandstream BT100 1.0.5.11' received : '' State : CS_SYNC Flags : 0 next : (nil) prev : (nil) ~~~/Contact~~~~ .../Record...
---/Domain--- ===/Domain list===
__________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail