In & out both external number than ring group not work

i want to config ring group (all ring) but if i use external phone number using sip and ser group number internal local extensions than its work if a use internal local extensions to extral nal group phone than its work but if i use both inbound and group outbound extarnal phone of single sip trunk connection than its not work

please give solution