Thank you for your help David.
I am now able to get the user PrimaryExtension and everything is looking nice. My only problem now is the time when the object is getting created. It takes at least 25 seconds!
Anyways if you ever figure a way to speed up things let me know.
Thank you
PS: I posted a new question in the WebDialer section if ever you know anything about it!!