parent and a child

I need to build a new xbee network
the coordinator scan the channels and find an empty channel,and PAN ID.
then i start a new router that scan the PAN and the channels at the end of scanning he gets the PAN ID and the channels from the coordinator.
the communication work fine,
but the coordinator didn’t add the router as a “child”.
when I send “atmp” i receiver an error (parent network address).
what I need to do for make him a “child”?
is their any problem with my definition?

hi did you find out the solution?