I haven't understood well your configuration, but I can suggest you to give a look to mine, in which a "gateway" is implemented. Look in particular Example 2 (Esempio 2). For the few Italian words you could just use an online translator, but they are not so much important https://groups.google.com/forum/#!topic/ninux-ml/yHXe-dVss2M