[Freeswitch-users] list all users
Brian May
brian at microcomaustralia.com.au
Sat Feb 20 20:00:15 PST 2010
Ok, I solved one problem. Yes, the user really was there, the problem
was I followed the wiki documentation for generating a password hash:
echo "username:domain:password" | openssl dgst -md5
This won't work because echo will append a new line; the correct version is:
echo -n "username:domain:password" | openssl dgst -md5
I have updated the wiki. Now the client will register, and can make
outgoing calls.
Incoming calls don't work however, I get the messages:
2010-02-21 14:45:51.400081 [ERR] switch_ivr_originate.c:2387 Cannot
create outgoing channel of type [error] cause: [USER_NOT_REGISTERED]
2010-02-21 14:45:51.410081 [ERR] switch_ivr_originate.c:2387 Cannot
create outgoing channel of type [user] cause: [USER_NOT_REGISTERED]
As per one suggestion (as far as I can tell this shouldn't be
required) I tried changing this (in dialplan/default.xml):
<action application="bridge" data="user/${dialed_extension}@${domain_name}"/>
with:
<action application="bridge"
data="sofia/internal/${dialed_extension}@${domain_name}"/>
However that isn't using the registered IP address for the
brian at microcomaustralia.com.au user; rather it does a DNS lookup for
$(domain_name) and tries to contact that address instead, this is
wrong; that
DNS address resolves to my webserver, not the jabber client.
On 21 February 2010 14:08, Mark Campbell-Smith <mcampbellsmith at gmail.com> wrote:
> Try
>
> user_exists id <domain>
>
> Where <domain> is the output from the command 'eval ${domain}'
Curiously that still doesn't work, even though I registered:
freeswitch at voyage> eval ${domain}
microcomaustralia.com.au
freeswitch at voyage>
freeswitch at voyage> user_exists id brian at microcomaustralia.com.au
false
freeswitch at voyage> sofia status profile microcomaustralia.com.au
=================================================================================================
Name microcomaustralia.com.au
Domain Name N/A
Alias Of internal
Auto-NAT false
DBName sofia_reg_internal
Pres Hosts
Dialplan XML
Context public
Challenge Realm auto_from
RTP-IP 192.168.86.4
SIP-IP 192.168.86.4
URL sip:mod_sofia at 192.168.86.4:5060
BIND-URL sip:mod_sofia at 192.168.86.4:5060
HOLD-MUSIC local_stream://moh
OUTBOUND-PROXY N/A
CODECS IN G7221 at 32000h,G7221 at 16000h,G722,PCMU,PCMA,GSM
CODECS OUT G7221 at 32000h,G7221 at 16000h,G722,PCMU,PCMA,GSM
TEL-EVENT 101
DTMF-MODE rfc2833
CNG 13
SESSION-TO 0
MAX-DIALOG 0
NOMEDIA false
LATE-NEG false
PROXY-MEDIA false
AGGRESSIVENAT false
STUN-ENABLED true
STUN-AUTO-DISABLE false
CALLS-IN 0
FAILED-CALLS-IN 0
CALLS-OUT 4
FAILED-CALLS-OUT 4
Registrations:
=================================================================================================
Call-ID: advktkbqoyvqmwm at andean.pri
User: brian at microcomaustralia.com.au
Contact: "Brian May"
<sip:brian at 192.168.87.14;fs_nat=yes;fs_path=sip%3Abrian%40192.168.87.14%3A5060>
Agent: Twinkle/1.4.2
Status: Registered(UDP-NAT)(unknown) EXP(2010-02-21 16:07:39)
Host: voyage
IP: 192.168.87.14
Port: 5060
Auth-User: brian
Auth-Realm: microcomaustralia.com.au
MWI-Account: brian at microcomaustralia.com.au
=================================================================================================
--
Brian May <brian at microcomaustralia.com.au>
More information about the FreeSWITCH-users
mailing list