<div dir="ltr">Thanks again for your help, Daniel!<div><br></div><div>Now my scenario is working!</div><div>I have two Edge Proxies and a single Registrar server pointing to a external PostgreSQL database.</div><div><br></div><div>My two users (alice and bob) are authenticated each one in a Edge Proxy and I can start a session between then using WebSockets. I'm using WebRTC (JSSIP) as a client to start the calls.</div><div><br></div><div>:-)</div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><span style="background-color:rgb(255,255,255)"><font color="#000000"><strong style="font-family:Arial"><u><br></u></strong></font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#000000"><strong style="font-family:Arial"><u><br></u></strong></font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#000000"><strong style="font-family:Arial"><u>Bruno Emer</u></strong></font></span></div><div><font color="#00a1e6" style="font-size:small;font-family:sans-serif"><br></font></div><div>Mobile: +55 11 96540-0044 </div><div>email: <a href="mailto:brunoemer@gmail.com" target="_blank">brunoemer@gmail.com</a></div><div><span style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif"></span><div style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;margin-top:5px"><a href="https://www.facebook.com/bruno.emer.5" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/facebook.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="https://www.linkedin.com/profile/view?id=86461237&trk=spm_pic" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/linkedin.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="https://twitter.com/brunoemer_" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/twitter.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="https://www.flickr.com/photos/122070309@N03/" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/flickr.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="http://google.com/+BrunoEmer" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/googleplus.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="http://instagram.com/brunoemer_" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/instagram.png" width="16" style="border:none"></a></div></div></div></div>
<br><div class="gmail_quote">2014-09-23 18:07 GMT-03:00 Bruno Emer <span dir="ltr"><<a href="mailto:brunoemer@gmail.com" target="_blank">brunoemer@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Guys!<div><br></div><div>Good news about my tests here!</div><div>I found some configurations relative to Outbound proxy and I get this working. Now, I can have two outbound proxies, one registrar and one database. I can register one user in the Outbound Proxy1 and one user in Outbound Proxy 2 and place a call between these users.</div><div><br></div><div>But now I'm facing another problem! The ACK messages are not being delivered, so the session is being dropped after a few seconds. I think that the problem is in the Contact field. Trying to investigate it now!</div><div><br></div><div>I'm not sure about how to change the message to deliver the ACK. Did someone had this problem before?</div><div><br></div><div>In anycase, here is the routing configuration that I'm using in my Oubound proxy:</div><div><br></div><div><br></div><div><div>request_route {</div><div><span style="white-space:pre-wrap">     </span>if (($Rp == MY_WS_PORT || $Rp == MY_WSS_PORT)</div><div><span style="white-space:pre-wrap">            </span>&& !(proto == WS || proto == WSS)) {</div><div><span style="white-space:pre-wrap">             </span>xlog("L_WARN", "SIP request received on $Rp\n");</div><div><span style="white-space:pre-wrap">             </span>sl_send_reply("403", "Forbidden");</div><div><span style="white-space:pre-wrap">           </span>exit;</div><div><span style="white-space:pre-wrap">    </span>}</div><div><br></div><div><span style="white-space:pre-wrap">       </span>route(REQINIT);</div><div><br></div><div><span style="white-space:pre-wrap"> </span>if (is_method("CANCEL")) {</div><div><span style="white-space:pre-wrap">             </span>if (t_check_trans()) {</div><div><span style="white-space:pre-wrap">                   </span>route(RELAY);</div><div><span style="white-space:pre-wrap">            </span>}</div><div><span style="white-space:pre-wrap">                </span>exit;</div><div><span style="white-space:pre-wrap">    </span>}</div><div><br></div><div><span style="white-space:pre-wrap">       </span>route(WITHINDLG);</div><div><br></div><div><span style="white-space:pre-wrap">       </span>t_check_trans();</div><div><br></div><div><span style="white-space:pre-wrap">        </span>if (is_method("REGISTER")) {</div><div><span style="white-space:pre-wrap">           </span>remove_hf("Route");</div><div><span style="white-space:pre-wrap">            </span>add_path();</div><div><span style="white-space:pre-wrap">              </span>$du = "sip:REGISTRAR_IP:REGISTRAR_PORT";</div><div><span style="white-space:pre-wrap">       </span>} else {</div><div><span style="white-space:pre-wrap">         </span>if (is_method("INVITE|SUBSCRIBE|ACK"))</div><div><span style="white-space:pre-wrap">                 </span>record_route();</div><div><br></div><div><span style="white-space:pre-wrap">         </span>if (@via[2] == "") {</div><div><span style="white-space:pre-wrap">                   </span># From client so route to registrar...</div><div><br></div><div><span style="white-space:pre-wrap">                  </span>if ($rU == $null) {</div><div><span style="white-space:pre-wrap">                              </span>sl_send_reply("484", "Address Incomplete");</div><div><span style="white-space:pre-wrap">                          </span>exit;</div><div><span style="white-space:pre-wrap">                    </span>}</div><div><span style="white-space:pre-wrap">                        </span>remove_hf("Route");</div><div><span style="white-space:pre-wrap">                    </span>$du = "sip:REGISTRAR_IP:REGISTRAR_PORT";</div><div><span style="white-space:pre-wrap">               </span>} else {</div><div><span style="white-space:pre-wrap">                 </span># From registrar so route using "Route:" headers...</div><div><br></div><div><span style="white-space:pre-wrap">                   </span>if (!loose_route()) {</div><div><span style="white-space:pre-wrap">                            </span>switch($rc) {</div><div><span style="white-space:pre-wrap">                            </span>case -2:</div><div><span style="white-space:pre-wrap">                                 </span>sl_send_reply("403", "Forbidden");</div><div><span style="white-space:pre-wrap">                                   </span>exit;</div><div><span style="white-space:pre-wrap">                            </span>default:</div><div><span style="white-space:pre-wrap">                                 </span>xlog("L_ERR", "in request_route\n");</div><div><span style="white-space:pre-wrap">                                 </span>sl_reply_error();</div><div><span style="white-space:pre-wrap">                                        </span>exit;</div><div><span style="white-space:pre-wrap">                            </span>}</div><div><span style="white-space:pre-wrap">                        </span>}</div><div><br></div><div><span style="white-space:pre-wrap">                       </span>t_on_failure("FAIL_OUTBOUND");</div><div><span style="white-space:pre-wrap">         </span>}</div><div><span style="white-space:pre-wrap">        </span>}</div><div><br></div><div><span style="white-space:pre-wrap">       </span>route(RELAY);</div><div>}</div><div><br></div><div>route[RELAY] {</div><div><span style="white-space:pre-wrap">      </span>if (!t_relay()) {</div><div><span style="white-space:pre-wrap">                </span>sl_reply_error();</div><div><span style="white-space:pre-wrap">        </span>}</div><div><span style="white-space:pre-wrap">        </span>exit;</div><div>}</div><div><br></div><div>route[REQINIT] {</div><div><span style="white-space:pre-wrap">    </span>if (!mf_process_maxfwd_header("10")) {</div><div><span style="white-space:pre-wrap">         </span>sl_send_reply("483","Too Many Hops");</div><div><span style="white-space:pre-wrap">                </span>exit;</div><div><span style="white-space:pre-wrap">    </span>}</div><div><br></div><div><span style="white-space:pre-wrap">       </span>if(!sanity_check("1511", "7"))</div><div><span style="white-space:pre-wrap">       </span>{</div><div><span style="white-space:pre-wrap">                </span>xlog("Malformed SIP message from $si:$sp\n");</div><div><span style="white-space:pre-wrap">          </span>exit;</div><div><span style="white-space:pre-wrap">    </span>}</div><div>}</div><div><br></div><div>route[WITHINDLG] {</div><div><span style="white-space:pre-wrap">      </span>if (has_totag()) {</div><div><span style="white-space:pre-wrap">               </span>if (!loose_route()) {</div><div><span style="white-space:pre-wrap">                    </span>switch($rc) {</div><div><span style="white-space:pre-wrap">                    </span>case -2:</div><div><span style="white-space:pre-wrap">                         </span>sl_send_reply("403", "Forbidden");</div><div><span style="white-space:pre-wrap">                           </span>exit;</div><div><span style="white-space:pre-wrap">                    </span>default:</div><div><span style="white-space:pre-wrap">                         </span>if (is_method("ACK")) {</div><div><span style="white-space:pre-wrap">                                        </span>if ( t_check_trans() ) {</div><div><span style="white-space:pre-wrap">                                         </span> record_route();</div><div><span style="white-space:pre-wrap">                                         </span> route(RELAY);</div><div><span style="white-space:pre-wrap">                                           </span>exit;</div><div><span style="white-space:pre-wrap">                                    </span>} else {</div><div><span style="white-space:pre-wrap">                                         </span>exit;</div><div><span style="white-space:pre-wrap">                                    </span>}</div><div><span style="white-space:pre-wrap">                                </span>}</div><div><span style="white-space:pre-wrap">                                </span>sl_send_reply("404","Not Found");</div><div><span style="white-space:pre-wrap">                    </span>}</div><div><span style="white-space:pre-wrap">                </span>} else {</div><div><span style="white-space:pre-wrap">                 </span>if (is_method("NOTIFY")) {</div><div><span style="white-space:pre-wrap">                             </span>record_route();</div><div><span style="white-space:pre-wrap">                  </span>}</div><div><span style="white-space:pre-wrap">                        </span>route(RELAY);</div><div><span style="white-space:pre-wrap">            </span>}</div><div><span style="white-space:pre-wrap">                </span>exit;</div><div><span style="white-space:pre-wrap">    </span>}</div><div>}</div><div><br></div><div>onreply_route {</div><div><span style="white-space:pre-wrap"> </span>if (($Rp == MY_WS_PORT || $Rp == MY_WSS_PORT)</div><div><span style="white-space:pre-wrap">            </span>&& !(proto == WS || proto == WSS)) {</div><div><span style="white-space:pre-wrap">             </span>xlog("L_WARN", "SIP response received on $Rp\n");</div><div><span style="white-space:pre-wrap">            </span>drop;</div><div><span style="white-space:pre-wrap">    </span>}</div><div><br></div><div><span style="white-space:pre-wrap">       </span>if (!t_check_trans()) {</div><div><span style="white-space:pre-wrap">          </span>drop;</div><div><span style="white-space:pre-wrap">    </span>}</div><div><br></div><div><span style="white-space:pre-wrap">       </span>if ($rm == "REGISTER" && $rs >= 200 && $rs <= 299) {</div><div><span style="white-space:pre-wrap">             </span>remove_hf("Flow-Timer");</div><div><span style="white-space:pre-wrap">               </span>if ($(hdr(Require)[*])=~"outbound")</div><div><span style="white-space:pre-wrap">                    </span>insert_hf("Flow-Timer: FLOW_TIMER\r\n", "Call-ID");</div><div><span style="white-space:pre-wrap">  </span>}</div><div>}</div><div><br></div><div>failure_route[FAIL_OUTBOUND] {</div><div><span style="white-space:pre-wrap">  </span>if (t_branch_timeout() || !t_branch_replied()) {</div><div><span style="white-space:pre-wrap">         </span>send_reply("430", "Flow Failed");</div><div><span style="white-space:pre-wrap">    </span>}</div><div>}</div><div><br></div><div>event_route[xhttp:request] {</div><div><span style="white-space:pre-wrap">    </span>set_reply_close();</div><div><span style="white-space:pre-wrap">       </span>set_reply_no_connect();</div><div><br></div><div><span style="white-space:pre-wrap"> </span>if ($Rp != MY_WS_PORT</div><div>#!ifdef WITH_TLS</div><div><span style="white-space:pre-wrap">             </span>&& $Rp != MY_WSS_PORT</div><div>#!endif</div><div><span style="white-space:pre-wrap">      </span>) {</div><div><span style="white-space:pre-wrap">              </span>xlog("L_WARN", "HTTP request received on $Rp\n");</div><div><span style="white-space:pre-wrap">            </span>xhttp_reply("403", "Forbidden", "", "");</div><div><span style="white-space:pre-wrap">         </span>exit;</div><div><span style="white-space:pre-wrap">    </span>}</div><div><br></div><div><span style="white-space:pre-wrap">       </span>xlog("L_DBG", "HTTP Request Received\n");</div><div><br></div><div><span style="white-space:pre-wrap">   </span>if ($hdr(Upgrade)=~"websocket"</div><div><span style="white-space:pre-wrap">                 </span>&& $hdr(Connection)=~"Upgrade"</div><div><span style="white-space:pre-wrap">                 </span>&& $rm=~"GET") {</div><div><br></div><div><span style="white-space:pre-wrap">              </span># Validate Host - make sure the client is using the correct</div><div><span style="white-space:pre-wrap">              </span># alias for WebSockets</div><div><span style="white-space:pre-wrap">           </span>if ($hdr(Host) == $null || !is_myself("sip:" + $hdr(Host))) {</div><div><span style="white-space:pre-wrap">                  </span>xlog("L_WARN", "Bad host $hdr(Host)\n");</div><div><span style="white-space:pre-wrap">                     </span>xhttp_reply("403", "Forbidden", "", "");</div><div><span style="white-space:pre-wrap">                 </span>exit;</div><div><span style="white-space:pre-wrap">            </span>}</div><div><br></div><div><span style="white-space:pre-wrap">               </span># Optional... validate Origin - make sure the client is from an</div><div><span style="white-space:pre-wrap">          </span># authorised website.  For example,</div><div><span style="white-space:pre-wrap">             </span>#</div><div><span style="white-space:pre-wrap">                </span># if ($hdr(Origin) != "<a href="http://communicator.MY_DOMAIN" target="_blank">http://communicator.MY_DOMAIN</a>"</div><div><span style="white-space:pre-wrap">              </span>#     && $hdr(Origin) != "<a href="https://communicator.MY_DOMAIN" target="_blank">https://communicator.MY_DOMAIN</a>") {</div><div><span style="white-space:pre-wrap">            </span>#<span style="white-space:pre-wrap">       </span>xlog("L_WARN", "Unauthorised client $hdr(Origin)\n");</div><div><span style="white-space:pre-wrap">                </span>#<span style="white-space:pre-wrap">       </span>xhttp_reply("403", "Forbidden", "", "");</div><div><span style="white-space:pre-wrap">         </span>#<span style="white-space:pre-wrap">       </span>exit;</div><div>                # }</div><div><br></div><div><span style="white-space:pre-wrap">         </span># Optional... perform HTTP authentication</div><div><br></div><div><span style="white-space:pre-wrap">               </span># ws_handle_handshake() exits (no further configuration file</div><div><span style="white-space:pre-wrap">             </span># processing of the request) when complete.</div><div><span style="white-space:pre-wrap">              </span>if (ws_handle_handshake())</div><div><span style="white-space:pre-wrap">               </span>{</div><div><span style="white-space:pre-wrap">                        </span># Optional... cache some information about the</div><div><span style="white-space:pre-wrap">                   </span># successful connection</div><div><span style="white-space:pre-wrap">                  </span>exit;</div><div><span style="white-space:pre-wrap">            </span>}</div><div><span style="white-space:pre-wrap">        </span>}</div><div><br></div><div><span style="white-space:pre-wrap">       </span>xhttp_reply("404", "Not Found", "", "");</div><div>}</div><div><br></div><div>event_route[websocket:closed] {</div><div><span style="white-space:pre-wrap">  </span>xlog("L_INFO", "WebSocket connection from $si:$sp has closed\n");</div><div>}</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Thanks again!!!</div><div><div class="gmail_extra"><span class=""><br clear="all"><div><div dir="ltr"><div><span style="background-color:rgb(255,255,255)"><font color="#000000"><strong style="font-family:Arial"><u><br></u></strong></font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#000000"><strong style="font-family:Arial"><u><br></u></strong></font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#000000"><strong style="font-family:Arial"><u>Bruno Emer</u></strong></font></span></div><div><font color="#00a1e6" style="font-size:small;font-family:sans-serif"><br></font></div><div>Mobile: <a href="tel:%2B55%2011%2096540-0044" value="+5511965400044" target="_blank">+55 11 96540-0044</a> </div><div>email: <a href="mailto:brunoemer@gmail.com" target="_blank">brunoemer@gmail.com</a></div><div><span style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif"></span><div style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;margin-top:5px"><a href="https://www.facebook.com/bruno.emer.5" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/facebook.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="https://www.linkedin.com/profile/view?id=86461237&trk=spm_pic" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/linkedin.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="https://twitter.com/brunoemer_" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/twitter.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="https://www.flickr.com/photos/122070309@N03/" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/flickr.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="http://google.com/+BrunoEmer" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/googleplus.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="http://instagram.com/brunoemer_" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/instagram.png" width="16" style="border:none"></a></div></div></div></div>
<br></span><div class="gmail_quote">2014-09-22 12:40 GMT-03:00 Bruno Emer <span dir="ltr"><<a href="mailto:brunoemer@gmail.com" target="_blank">brunoemer@gmail.com</a>></span>:<div><div class="h5"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi, Daniel and Frank!<div><br></div><div>Thanks for your support!</div><div>Now, I changed my scenario just a lil bit to make it easy to understand and deploy. I'm doing the following:</div><div><br></div><div>   1. Created a server using the "Outbound" module configuration example, but add WebSocket support in it. (IP Address 192.168.1.16)</div><div>   2. Created a server running as Proxy and Registrar with WebSockets support. (IP Address 192.168.1.15)</div><div>   3. Registered two users (bob and <a href="mailto:alice@enterprise.com" target="_blank">alice@enterprise.com</a>) using WebRTC. These users sent they Register requests to the Oubount server (192.168.1.16).</div><div>   4. I'm also using an external postgres database to store the user informations. In my proxy/registrar server, I've configurated "modparam("usrloc", "db_mode", 3)", so it will not store data in memory.</div><div><br></div><div><br></div><div>After register the users in my scenario, I can see the following information stored in my database (output of kamctl db show location):</div><div><br></div><div><div> id  |         ruid         | username |     domain     |                    contact                     |       received        | path |       expires       | q  |         callid         | cseq |    last_modified    | flags | cflags |    user_agent     |       socket        | methods |                    instance                     | reg_id </div><div>-----+----------------------+----------+----------------+------------------------------------------------+-----------------------+------+---------------------+----+------------------------+------+---------------------+-------+--------+-------------------+---------------------+---------+-------------------------------------------------+--------</div><div> 277 | uloc-54203f71-10bd-2 | alice    | <a href="http://enterprise.com" target="_blank">enterprise.com</a> | sip:v4s0prah@o35ctmdnnruv.invalid;transport=ws | sip:<a href="http://192.168.1.16:5060" target="_blank">192.168.1.16:5060</a> |      | 2014-09-22 15:31:21 | -1 | udb4shpe4dnm1jsl6016s5 |   82 | 2014-09-22 15:26:21 |     0 |      0 | JsSIP 0.4.0-devel | udp:<a href="http://192.168.1.15:80" target="_blank">192.168.1.15:80</a> |     783 | <urn:uuid:75c837d1-740a-4c62-baa0-56a06149699e> |      1</div><div> 278 | uloc-54203f71-10bc-2 | bob      | <a href="http://enterprise.com" target="_blank">enterprise.com</a> | sip:lr78s270@0mkf6fgtprlh.invalid;transport=ws | sip:<a href="http://192.168.1.16:5060" target="_blank">192.168.1.16:5060</a> |      | 2014-09-22 15:34:02 | -1 | 5mpl9q4bkuqsnpk8r316j5 |   82 | 2014-09-22 15:29:02 |     0 |      0 | JsSIP 0.4.0-devel | udp:<a href="http://192.168.1.15:80" target="_blank">192.168.1.15:80</a> |     783 | <urn:uuid:e92ef911-1ae4-45b1-bfc9-b5752b0f2fe1> |      1</div></div><div><br></div><div><br></div><div>So, I can assume that both users are registered and ready to start sessions.</div><div><br></div><div>Now, when I try to start a new session between then (let's say bob calling alice) what I get in the endpoint is the following message:</div><div><br></div><div><div>SIP/2.0 500 I'm terribly sorry, server error occurred (1/SL)</div><div>Via: SIP/2.0/WS 0mkf6fgtprlh.invalid;rport=33154;received=192.168.1.11;branch=z9hG4bK7711221</div><div>To: <<a href="mailto:sip%3Aalice@enterprise.com" target="_blank">sip:alice@enterprise.com</a>>;tag=94c1b96a0e6eb467885b5057e1e49f9e.1970</div><div>From: <<a href="mailto:sip%3Abob@enterprise.com" target="_blank">sip:bob@enterprise.com</a>>;tag=on056iipql</div><div>Call-ID: 5e1pmj2fppbgg13doi4k</div><div>CSeq: 3989 INVITE</div><div>Server: kamailio (4.1.5 (x86_64/linux))</div><div>Content-Length: 0</div></div><div><br></div><div>What I understood about this problem is that the Proxy server is trying to forward the INVITE to the Outbound server and this server does not know that to do with this message - like forward it to alice. </div><div><br></div><div>I'm stucked in this step.</div><div><br></div><div>Here you can find the configuration files that I'm using:</div><div><br></div><div>Outbound Server:</div><div><a href="https://mega.co.nz/#!Wlw2RL7S!G2YOP-1QbSCeNQddaAe3kyQMqz8yteZlZsAUpjZX4v4" target="_blank">https://mega.co.nz/#!Wlw2RL7S!G2YOP-1QbSCeNQddaAe3kyQMqz8yteZlZsAUpjZX4v4</a><br></div><div><br></div><div>Proxy Server:</div><div><a href="https://mega.co.nz/#!qxAXTbbb!4zBjRtmADdl3rPCN2Yidd3xnZEjFahW3GSMb00w41xc" target="_blank">https://mega.co.nz/#!qxAXTbbb!4zBjRtmADdl3rPCN2Yidd3xnZEjFahW3GSMb00w41xc</a><br></div><div><br></div><div><br></div><div><br></div><div>Thanks again!</div><div><br></div><div>Bruno Emer</div></div><div class="gmail_extra"><span><br clear="all"><div><div dir="ltr"><div><span style="background-color:rgb(255,255,255)"><font color="#000000"><strong style="font-family:Arial"><u><br></u></strong></font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#000000"><strong style="font-family:Arial"><u><br></u></strong></font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#000000"><strong style="font-family:Arial"><u>Bruno Emer</u></strong></font></span></div><div><font color="#00a1e6" style="font-size:small;font-family:sans-serif"><br></font></div><div>Mobile: <a href="tel:%2B55%2011%2096540-0044" value="+5511965400044" target="_blank">+55 11 96540-0044</a> </div><div>email: <a href="mailto:brunoemer@gmail.com" target="_blank">brunoemer@gmail.com</a></div><div><span style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif"></span><div style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;margin-top:5px"><a href="https://www.facebook.com/bruno.emer.5" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/facebook.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="https://www.linkedin.com/profile/view?id=86461237&trk=spm_pic" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/linkedin.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="https://twitter.com/brunoemer_" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/twitter.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="https://www.flickr.com/photos/122070309@N03/" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/flickr.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="http://google.com/+BrunoEmer" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/googleplus.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="http://instagram.com/brunoemer_" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/instagram.png" width="16" style="border:none"></a></div></div></div></div>
<br></span><div class="gmail_quote">2014-09-18 18:04 GMT-03:00 Bruno Emer <span dir="ltr"><<a href="mailto:brunoemer@gmail.com" target="_blank">brunoemer@gmail.com</a>></span>:<div><div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Ok, Daniel!<div><br></div><div>I am trying exactly what you said, but for some reason the proxy server can't forward the message back to the WebSocket server. I am getting "487 Unresolvable destination". Appears that my Proxy Server can't get data from usrloc.</div><div><br></div><div>When I register an user using WebRTC I can see that the system stores the information in kamailio database and in the field "contact" it puts a string. The Proxy server is looking in database and just find this information. Actually, I'm trying to understand the entire process that envolves passing information from an Edge Server to a Proxy server that sends the Register information to another Registrar server (as I described before). The database is shared between all the servers, and they are in the same network. </div><div><br></div><div>I just read the information in another topic, as you said, but I think that my case is a lil bit different from it. I you agree, I can post my configuration files here. Maybe this can help another users with the same problem!</div><div><br></div><div>Thanks again!!!</div></div><div class="gmail_extra"><span><br clear="all"><div><div dir="ltr"><div><span style="background-color:rgb(255,255,255)"><font color="#000000"><strong style="font-family:Arial"><u><br></u></strong></font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#000000"><strong style="font-family:Arial"><u><br></u></strong></font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#000000"><strong style="font-family:Arial"><u>Bruno Emer</u></strong></font></span></div><div><font color="#00a1e6" style="font-size:small;font-family:sans-serif"><br></font></div><div>Mobile: <a href="tel:%2B55%2011%2096540-0044" value="+5511965400044" target="_blank">+55 11 96540-0044</a> </div><div>email: <a href="mailto:brunoemer@gmail.com" target="_blank">brunoemer@gmail.com</a></div><div><span style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif"></span><div style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;margin-top:5px"><a href="https://www.facebook.com/bruno.emer.5" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/facebook.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="https://www.linkedin.com/profile/view?id=86461237&trk=spm_pic" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/linkedin.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="https://twitter.com/brunoemer_" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/twitter.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="https://www.flickr.com/photos/122070309@N03/" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/flickr.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="http://google.com/+BrunoEmer" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/googleplus.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="http://instagram.com/brunoemer_" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/instagram.png" width="16" style="border:none"></a></div></div></div></div>
<br></span><div class="gmail_quote">2014-09-17 9:13 GMT-03:00 Bruno Emer <span dir="ltr"><<a href="mailto:brunoemer@gmail.com" target="_blank">brunoemer@gmail.com</a>></span>:<div><div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hello!</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I am relatively new to Kamailio and I'm trying to create a new enviroment using it in my company. I am thinking about use Amazon to host the servers and use OpsWorks to automatically escalate then if necessary. To accomplish this, my idea is to separate the servers, using one dedicated server to run as WebSocket, one to run as proxy and one as a Registrar. I'll be using just one database to store informations to all of my servers. With this, if I need more resources later, I can just create new servers with the specific roles (WebSockets, Proxy, Registrar).</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">By now, the idea is clear, but the point is that I don't know how to separate the WebSockets server from the proxy server. Actually, I can do this, but when I have one agent using a regular softphone and one agent using WebSockets (with JSSIP) they are not able to establish a session if the softphone user starts it. Now, I want to know if is there a way to use two websockets servers, register users using both of then and start sessions between then, with a separated proxy and registrar.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Has anyone done this before? Is possible to use kamailio like this?</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Thanks.</div><div><br></div><div><div dir="ltr"><div><span style="background-color:rgb(255,255,255)"><font color="#000000"><strong style="font-family:Arial"><u><br></u></strong></font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#000000"><strong style="font-family:Arial"><u><br></u></strong></font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#000000"><strong style="font-family:Arial"><u>Bruno Emer</u></strong></font></span></div><div><font color="#00a1e6" style="font-size:small;font-family:sans-serif"><br></font></div><div>Mobile: <a href="tel:%2B55%2011%2096540-0044" value="+5511965400044" target="_blank">+55 11 96540-0044</a> </div><div>email: <a href="mailto:brunoemer@gmail.com" target="_blank">brunoemer@gmail.com</a></div><div><span style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif"></span><div style="color:rgb(0,0,0);font-family:Helvetica,Arial,sans-serif;margin-top:5px"><a href="https://www.facebook.com/bruno.emer.5" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/facebook.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="https://www.linkedin.com/profile/view?id=86461237&trk=spm_pic" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/linkedin.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="https://twitter.com/brunoemer_" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/twitter.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="https://www.flickr.com/photos/122070309@N03/" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/flickr.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="http://google.com/+BrunoEmer" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/googleplus.png" width="16" style="border:none"></a><span style="font-size:small"> </span><a href="http://instagram.com/brunoemer_" style="font-size:small;outline:none" target="_blank"><img src="http://images.wisestamp.com/instagram.png" width="16" style="border:none"></a></div></div></div></div>
</div>
</blockquote></div></div></div><br></div>
</blockquote></div></div></div><br></div>
</blockquote></div></div></div><br></div></div></div>
</blockquote></div><br></div>