iphone - Enabling mod_proxy65 on ejabberd server installed on ec2 ubuntu instance -
i working on ios chat application, media transfer work need enable mod_proxy65, , have enabled same in ejabberd.cfg file default setting: {mod_proxy65[]}
. on client side using https://github.com/robbiehanson/xmppframework xmpp framework ios. in turnsocket.m have used proxy candidate dev.myserver.com
in place of default jabber.org
. when try open turn connection, series of iq received , sent follows:
send: <iq type="get" to="dev.myserver.com" id="a9876dd0-b13c-4dc7-b812-2a6e653288bc"><query xmlns="http://jabber.org/protocol/disco#items"/></iq>
recv: <iq xmlns="jabber:client" from="dev.gungroo.com" to="smita@dev.myserver.com/24983171131368877324197828" id="a9876dd0-b13c-4dc7-b812-2a6e653288bc" type="result"><query xmlns="http://jabber.org/protocol/disco#items"><item jid="conference.dev.myserver.com"/><item jid="irc.dev.myserver.com"/><item jid="proxy.dev.myserver.com"/><item jid="pubsub.dev.myserver.com"/><item jid="vjud.dev.myserver.com"/></query></iq>
send: <iq type="get" to="proxy.dev.myserver.com" id="26d694fb-c679-478c-a3d1-a84b9a583534"><query xmlns="http://jabber.org/protocol/disco#info"/></iq>
recv: <iq xmlns="jabber:client" from="proxy.dev.myserver.com" to="smita@dev.myserver.com/24983171131368877324197828" id="26d694fb-c679-478c-a3d1-a84b9a583534" type="result"><query xmlns="http://jabber.org/protocol/disco#info"><identity category="proxy" type="bytestreams" name="socks5 bytestreams"/><feature var="http://jabber.org/protocol/disco#info"/><feature var="vcard-temp"/><feature var="http://jabber.org/protocol/bytestreams"/><x xmlns="jabber:x:data" type="result"><field var="form_type" type="hidden"><value>http://jabber.org/network/serverinfo</value></field></x></query></iq>
send: <iq type="get" to="proxy.dev.myserver.com" id="c60068a2-985c-4c5c-87b3-c9fffb41fdf0"><query xmlns="http://jabber.org/protocol/bytestreams"/></iq>
recv: <iq xmlns="jabber:client" from="proxy.dev.gungroo.com" to="smita@dev.myserver.com/24983171131368877324197828" id="c60068a2-985c-4c5c-87b3-c9fffb41fdf0" type="result"><query xmlns="http://jabber.org/protocol/bytestreams"><streamhost jid="proxy.dev.myserver.com" host="10.212.103.159" port="7777"/></query></iq>
here problem, returning me internal ip address(10.212.103.159) of server dev.myserver.com, resulting in failure of making turn connection. why doesn't return external ip address of proxy.dev.myserver.com ? on same page: proxy.dev.myserver.com , dev.myserver.com both points same external ip. , port 7777 open @ server dev.myserver.com . have worked same, please help?? here last iq(sent , received) shows error message:
send
<iq type="set" to="smita1@dev.myserver.com/38303823331368691199448799" id="2d376dbf-d437-48c8-b0ff-b10a5cd73240"> <query xmlns="http://jabber.org/protocol/bytestreams" sid="2d376dbf-d437-48c8-b0ff-b10a5cd73240" mode="tcp"> <streamhost xmlns="http://jabber.org/protocol/bytestreams" jid="proxy.dev.myserver.com" host="10.212.103.159" port="7777"/> </query> </iq>
recv
<iq xmlns="jabber:client" from="smita1@dev.myserver.com/38303823331368691199448799" to="smita@dev.myserver.com/278621573136869119737843" type="error" id="2d376dbf-d437-48c8-b0ff-b10a5cd73240"> <query xmlns="http://jabber.org/protocol/bytestreams" sid="2d376dbf-d437-48c8-b0ff-b10a5cd73240" mode="tcp"> <streamhost xmlns="http://jabber.org/protocol/bytestreams" jid="proxy.dev.myserver.com" host="10.212.103.159" port="7777"/> </query> <error type="cancel" code="501"> <feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/> </error> </iq>
it great if can point me problem. thanks!
this helped me resolve issue. xx.xx.xx.xx external ip: {mod_proxy65, [{hostname, ["xx.xx.xx.xx"]}]},
Comments
Post a Comment