Jump to content
Gold Sponsor: Data-Way IT-Consulting, Austria

Check Location of a user inside Call Routing

Martin Smolinski

Go to solution Solved by Tom Wellige,

Recommended Posts

  • 2 weeks later...
  • 3 weeks later...
On 17.2.2016 at 3:11 PM, Tom Wellige said:

Hello Martin,


you can use another Server API to figure the location of a user: the PBXConfig object. You find it's documentation here:

You can't check the name the location directly, but from the country code and area code you can easily resolve the location.


Hi Tom,


I've tried to solve my problem via the PBXConfig Object but it was not successful. The problem is that we have only one Swyx server where are different locations configured. With the PBXConfig object I only get the country- and areacode from the default location.  Also we have the situation that it's possible that a user has a number different from his location. So I can't identify his location via the number which was called. 

The only possibility I see now is to connect to the swyx database from the ECR script and get the location from the user from there. 

Or is there any other possibility which I don't see at the moment?  

Link to comment
Share on other sites

  • 3 weeks later...
  • Solution

Hello Martin,


I would have assumed that the country code and area code would be delivered according to the user's location. Are you using the PBXConfig object as described in the article?


dim oPBXConfig
set oPBXConfig = PBXScript.CreateObject("IpPBxSrv.PBXConfig")
oPBXConfig.Initialize PBXUser


You must not forget the highlighted line.


If this doesn't work, I see not other chance than to check the configuration data via the database. The proper way (Swyx recommended way) would be to use the Config Data Store SDK for that. But of course no one can prevent you from accessing the database directly. Just don't modify anything, just read ;) 


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.