Hello! May somebody help? I want to integrate directory with sql db via LUA script. By I can't authenticate user. Same user defined with xml file authenticates without problems. The FS request is: 2011-04-20 23:15:34.543486 [ALERT] switch_cpp.cpp:1190 key_name name 2011-04-20 23:15:34.543486 [ALERT] switch_cpp.cpp:1190 key_value pbx.tagnet.hn 2011-04-20 23:15:34.543486 [ALERT] switch_cpp.cpp:1190 tag_name domain 2011-04-20 23:15:34.543486 [ALERT] switch_cpp.cpp:1190 section directory 2011-04-20 23:15:34.543486 [ALERT] switch_cpp.cpp:1190 'Event-Name: REQUEST_PARAMS Core-UUID: df5b6d29-49f1-41d3-8eb0-aa7ad7ee611d FreeSWITCH-Hostname: ipats.tagnet.ru FreeSWITCH-IPv4: 80.64.16.19 FreeSWITCH-IPv6: %3A%3A1 Event-Date-Local: 2011-04-20%2023%3A15%3A34 Event-Date-GMT: Wed,%2020%20Apr%202011%2017%3A15%3A34%20GMT Event-Date-Timestamp: 1303319734543486 Event-Calling-File: sofia_reg.c Event-Calling-Function: sofia_reg_parse_auth Event-Calling-Line-Number: 2102 action: sip_auth sip_profile: ipbx sip_user_agent: SIPPER%20for%20PhonerLite sip_auth_username: 73435230045 sip_auth_realm: pbx.tagnet.hn sip_auth_nonce: 413ca6a6-84b8-41b0-89e4-43c7ed17abad sip_auth_uri: sip%3Apbx.tagnet.hn sip_contact_user: 73435230045 sip_contact_host: 192.168.3.253 sip_to_user: 73435230045 sip_to_host: pbx.tagnet.hn sip_from_user: 73435230045 sip_from_host: pbx.tagnet.hn sip_request_host: pbx.tagnet.hn sip_auth_qop: auth sip_auth_cnonce: 234abcc436e2667097e7fe6eia53e8dd sip_auth_nc: 00000001 sip_auth_response: d388a1da67bdaa9206d0f6430f998c54 sip_auth_method: REGISTER key: id user: 73435230045 domain: pbx.tagnet.hn ip: 192.168.3.253 The response is: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="freeswitch/xml"> <domain name="pbx.tagnet.hn"> <params><param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/> </params> <variables><variable name="accountcode" value="ats001"/> <variable name="domain" value="pbx.tagnet.hn"/> <variable name="domain_name" value="pbx.tagnet.hn"/> <variable name="user_context" value="pre_routing"/> <variable name="v_tagnet_ats_dstport" value="0"/> <variable name="v_tagnet_ats_srcport" value="0"/> <variable name="v_tagnet_context" value="home.tagnet.hn"/> </variables> <groups> <group name="default"> <users> <user id="73435230045"> <params> <param name="password" value="01234"/> </params> <variables> <variable name="toll_allow" value="internal,local,domestic,international"/> <variable name="user_context" value="pre_routing"/> <variable name="v_tagnet_context" value="home.tagnet.hn"/> </variables> </user> </users> </group> </groups> </domain> </document> -- With respect, Boris
Hello! Found I forgot <section name="directory">. Now user authenticates and another problem... my call is placed into the public context and should be pre_routing. And also there should be INVITE event, isn't? But I can't see it... -- With respect, Boris
set the variable user_context /b On Apr 20, 2011, at 12:31 PM, Boris Kovalenko wrote:
Hello!
Found I forgot <section name="directory">. Now user authenticates and another problem... my call is placed into the public context and should be pre_routing. And also there should be INVITE event, isn't? But I can't see it...
Hello! I set it. The root of problem - I forgot to remove gateway that was authenticated by cidr. And gateway was in public. Now I got LUA directory working....
set the variable user_context
/b
On Apr 20, 2011, at 12:31 PM, Boris Kovalenko wrote:
Hello!
Found I forgot<section name="directory">. Now user authenticates and another problem... my call is placed into the public context and should be pre_routing. And also there should be INVITE event, isn't? But I can't see it...
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" тел. +7 (3435) 230001 факс +7 (3435) 230005
participants (2)
-
Boris Kovalenko
-
Brian West