Which soifa profile do you use for registrering this user. Can you post sofia_contact */thatuser@domain. Also, do not forget abount dial_string. 2012/11/9 Mi Ke <mi.ke@null.net>
Hi,
I have an IP phone behind NAT registered to also NATed FreeSWITCH (EC2):
10.10.10.107 (phone) -> 111.111.111.111 (NAT) -> internet -> 222.222.222.222 (NAT) -> 10.210.250.135 (FS)
Registration part of sip trace looks OK (?):
tport.c:2730 tport_wakeup_pri() tport_wakeup_pri(0x7fdcf8004430): events IN tport.c:2845 tport_recv_event() tport_recv_event(0x7fdcf8004430) tport.c:3186 tport_recv_iovec() tport_recv_iovec(0x7fdcf8004430) msg 0x7fdcf8010980 from (udp/10.210.250.135:5060) has 702 bytes, veclen = 1 tport.c:3004 tport_deliver() tport_deliver(0x7fdcf8004430): msg 0x7fdcf8010980 (702 bytes) from udp/111.111.111.111:5060/sip next=(nil) nta.c:2803 agent_recv_request() nta: received REGISTER sip:222.222.222.222 SIP/2.0 (CSeq 49512) nta.c:3090 agent_check_request_via() nta: Via check: received=111.111.111.111 nta.c:3161 agent_aliases() nta: canonizing sip:222.222.222.222 with contact nta.c:3002 agent_recv_request() nta: REGISTER (49512) going to a default leg 2012-11-09 01:14:34.833161 [ERR] sofia_reg.c:1613 DELETE PRESENCE SQL: delete from sip_presence where sip_user='1000' and sip_host='222.222.222.222' and profile_name='external' and open_closed='closed' nua_stack.c:529 nua_signal() nua(0x7fdcf8013190): sent signal r_respond nua_stack.c:529 nua_signal() nua(0x7fdcf8013190): sent signal r_destroy tport.c:3238 tport_tsend() tport_tsend(0x7fdcf8004430) tpn = UDP/ 111.111.111.111:5060 tport.c:4660 tport_by_addrinfo() tport_by_addrinfo(0x7fdcf8004430): not found by name UDP/111.111.111.111:5060 nta.c:6678 incoming_reply() nta: sent 200 OK for REGISTER (49512)
Here registration LED on the phone goes green, phone gives me a dialing tone i.e. behaves like registered.
show registrations looks OK:
reg_user,realm,token,url,expires,network_ip,network_port,network_proto,hostname,metadata 1000,222.222.222.222,6a7735fa-6f81e64c@10.10.10.107 ,sofia/external/sip:1000@10.10.10.107:5060 ;fs_nat=yes;fs_path=sip%3A1000%40111.111.111.111%3A5060,1352420589,111.111.111.111,5060,udp,domU-12-31-39-09-F5-79,
sofia status profile external ... REGISTRATIONS 1
Meanwhile when incoming call hits my dialplan (simple bridge to user/1000@domain) I'm getting ERR 606 (User not registered)
and here is what list_users gives to me:
userid|context|domain|group|contact|callgroup|effective_caller_id_name|effective_caller_id_number 1000|default|10.210.250.135|default|error/user_not_registered||Mike|1000
The question is - what am I doing wrong?
Thanks in advance for all yours hints
Mike _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org