Shiju,

Who is the called party here? Is it 506393? If so that's the user you need to look up. Judging by the trace you sent I'd assume that 913288 is the calling party. It doesn't matter if the calling party is registered - it matters if the called party is registered. Do your sofia_contact tests on 506393 and see what happens.

-MC


On Mon, May 13, 2013 at 9:59 PM, Shiju V.Joseph <letterstack@gmail.com> wrote:
eval and sofia_contact can find both the domain and registered user , then what could be wrong , it is driving me crazy ..is there anything I could have missed out

Any hints would be highly helpful.

Thanks
shijujoe

eval and sofia_contact returned the following

freeswitch@internal> eval ${domain}
freeswitch@internal> 

freeswitch@internal> sofia_contact */913288@ec2-54-242-200-55.compute-1.amazonaws.com
sofia/internal/sip:913288@107.20.242.28:38510;line=89c9013ed42887b;fs_path=%3Csip%3A107.21.222.6%3A5060%3Blr%3Breceived%3Dsip%3A107.20.242.28%3A38510%3E
freeswitch@internal> 



On Wed, May 8, 2013 at 3:00 PM, Shiju V.Joseph <letterstack@gmail.com> wrote:
Hi All,

I have been experimenting with an odbc based freeswitch cluster in amazon ec2 , with opensips doing the load balancing function.

I can make calls to mobile and landlines with out any issues with good quality voice , but when i try to call extension to extension freeswith shows  Originate Failed.  Cause: USER_NOT_REGISTERED , i searched a lot in lists and wiki and fs jira , tried out different dial strings but with out any results.Tried this one
"dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}" & this ${sofia_contact(*/${dialed_user}@${dialed_domain})}

I have copied the siptrace at http://pastebin.com/Qv79tjXK

Appreciate any help in this regard

Thanks
-- 
shijujoe



--
Shiju V.Joseph

_________________________________________________________________________
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




--
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org