Error generating directory: No profile name given, cannot lookup account
Forum » WikiPBX / Technical Support » Error generating directory: No profile name given, cannot lookup account
Started by: mansoormansoor
On: 1243989445|%e %b %Y, %H:%M %Z|agohover
Number of posts: 11
rss icon RSS: New posts
Summary:
Error generating directory: No profile name given, cannot lookup account
Error generating directory: No profile name given, cannot lookup account
mansoormansoor 1243989445|%e %b %Y, %H:%M %Z|agohover

I configured wikipbx with the recent version of freeswitch from svn trunk. Everything seems to be working fine on freeswitch side with static xmls. When I enable xml_curl to work with wikipbx, everything works except directory and following is the error from wikipbx.log.

2009-06-01 23:24:45+0000 [HTTPChannel,16,127.0.0.1] ERROR!!
2009-06-01 23:24:45+0000 [HTTPChannel,16,127.0.0.1] Error generating directory: No profile name given, cannot lookup account
2009-06-01 23:24:45+0000 [HTTPChannel,16,127.0.0.1] Traceback (most recent call last):
2009-06-01 23:24:45+0000 [HTTPChannel,16,127.0.0.1] File "/usr/src/wikipbx/wikipbxweb/views.py", line 1920, in xml_dialplan
2009-06-01 23:24:45+0000 [HTTPChannel,16,127.0.0.1] raw_xml = xmlconfig.directory_user(request)
2009-06-01 23:24:45+0000 [HTTPChannel,16,127.0.0.1] File "/usr/src/wikipbx/../wikipbx/xmlconfig.py", line 358, in directory_user
2009-06-01 23:24:45+0000 [HTTPChannel,16,127.0.0.1] raise Exception("No profile name given, cannot lookup account")
2009-06-01 23:24:45+0000 [HTTPChannel,16,127.0.0.1] Exception: No profile name given, cannot lookup account

Not sure, if missed some configuration. Any help will be appreciated.

Thanks,
Mansoor

Reply  |  Options
Re: Error generating directory: No profile name given, cannot lookup account
stas_shtinstas_shtin 1244015517|%e %b %Y, %H:%M %Z|agohover

This could be due to some freeswitch API change in the latest trunk version. I've added debug info display that would show freeswitch request details in such cases, please update wikipbx and paste the error you'll get here.

Reply  |  Options
Re: Error generating directory: No profile name given, cannot lookup account
mansoormansoor 1244165165|%e %b %Y, %H:%M %Z|agohover

I updated wikipbx and here attached below is the log:

Reply  |  Options
Re: Error generating directory: No profile name given, cannot lookup account
stas_shtinstas_shtin 1244188141|%e %b %Y, %H:%M %Z|agohover

So, does anything stop working after this error?

I think that what happens is that freeswitch requests all users' info for given domain on bootup without specifying SIP profile name for them. When there's an incoming call, it should make another directory request - this time specifying the SIP profile name that would receive the call. Our code expects SIP profile name and only responds with users for that profile, so the first kind of requests doesn't work.

If this behavior doesn't cause any problems, we should just stop showing that error. If something doesn't work, we probably should return user info for all users with accounts matching given domain on such requests.

Reply  |  Options
Re: Error generating directory: No profile name given, cannot lookup account
tleydentleyden 1244482348|%e %b %Y, %H:%M %Z|agohover

If this behavior doesn't cause any problems, we should just stop showing that error. If something doesn't work, we probably should return user info for all users with accounts matching given domain on such requests.

Yeah this sounds reasonable, I can't think of any downsides to this approach. I will try to do it, but feel free to add this if you get a chance first.

Reply  |  Options
Re: Error generating directory: No profile name given, cannot lookup account
tleydentleyden 1244488394|%e %b %Y, %H:%M %Z|agohover

I was getting the same error on my server, but just never noticed it.

It looks like freeswitch is asking wikipbx for a list of all users in the domain when it starts up, since it doesn't even pass a "user" parameter, I don't know what it uses it for.

The correct fix is to return all users for that domain, but in the meantime I added a quick bandaid if the user param is not passed, I am going to print out a warning message (but not a stack trace). This was checked in as svn revision 82.

Reply  |  Options
Re: Error generating directory: No profile name given, cannot lookup account
tleydentleyden 1244016764|%e %b %Y, %H:%M %Z|agohover

Please try to update with the debug information first, and post the result. That feedback is more important.

But some more questions .. did you configure a domain for that tenant (eg, "account") or did you leave it blank? In the sip endpoint configuration, are you entering an IP or a domain for the proxy?

Reply  |  Options
Re: Error generating directory: No profile name given, cannot lookup account
tleydentleyden 1244047803|%e %b %Y, %H:%M %Z|agohover

Are you you using mod_voicemail? Please post your modules.conf.xml file.

Reply  |  Options
Re: Error generating directory: No profile name given, cannot lookup account
mansoormansoor 1244164114|%e %b %Y, %H:%M %Z|agohover

Sorry, I was travelling and couldn't respond earlier.

Here is modules.conf.xml

Last edited on 1244165217|%e %b %Y, %H:%M %Z|agohover By mansoor + Show more
Reply  |  Options
Re: Error generating directory: No profile name given, cannot lookup account
mansoormansoor 1244338424|%e %b %Y, %H:%M %Z|agohover

Thanks for the help. I reconfigured wikipbx and its working now. First I was trying to configure it with subdomain with a different public ip than primary domain and that was causing some conflict/issue. Now I configured with primary domain and everything seems to be working.

Reply  |  Options
Re: Error generating directory: No profile name given, cannot lookup account
tleydentleyden 1244481652|%e %b %Y, %H:%M %Z|agohover

When you say it is working now, you mean that error in the console logs went away?

From the sound of it, you never had any functionality problems, just that error in the logs .. correct?

Reply  |  Options
New Post
page_revision: 0, last_edited: 1226259295|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License