<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Brian thx for you help.<div><br></div><div>404 was my mistake it is "user not found"</div><div><br></div><div>2009-04-20 12:16:24 [WARNING] mod_dptools.c:2171 user_outgoing_channel() Can't find user [<a href="mailto:4000@200.49.25.11">4000@200.49.25.11</a>]</div><div><br></div><div>To explain better my problem:</div><div><br></div><div>i have two users, one 1000 and another 4000,the user 1000 is physically in the user directory of Freeswitch(FS) and the user 4000 is dynamically registered througth<span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; "> xml_curl.</span></span></div><div><br></div><div>The request of FS when user 4000 wants to register is:</div><div><br></div><div><div>sip_to_user:4000</div><div>tag_name:domain</div><div>key_value:200.49.25.11</div><div>sip_contact_user:4000</div><div>section:directory</div><div>sip_auth_method:REGISTER</div><div>sip_auth_realm:200.49.25.11</div><div>sip_auth_username:4000</div><div>sip_user_agent:eyeBeam release 1004p stamp 31962</div><div>sip_auth_cnonce:f63211853d983216</div><div>sip_request_host:200.49.25.11</div><div>hostname:FreeSwitch_curl_XML</div><div>ip:200.123.150.217</div><div>user:4000</div><div>action:sip_auth</div><div>sip_profile:internal</div><div>key_name:name</div><div>sip_auth_qop:auth</div><div>sip_from_user:4000</div><div>sip_to_host:200.49.25.11</div><div>key:id</div><div>sip_auth_nonce:8fad7fae-2db9-11de-83c7-b10c5224858b</div><div>domain:200.49.25.11</div><div>sip_auth_nc:00000006</div><div>sip_from_host:200.49.25.11</div><div>sip_auth_response:4db7a5476e949c8d133f55279d837b2f</div><div>sip_auth_uri:<a href="sip:200.49.25.11">sip:200.49.25.11</a></div><div>sip_contact_host:200.123.150.217</div><div><br></div><div>and the reply is:</div><div><br></div><div><div><?xml version="1.0" encoding="UTF-8" standalone="no"?></div><div><document type="freeswitch/xml"></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><section name="directory"></div><div><span class="Apple-tab-span" style="white-space:pre">                </span><domain name="200.49.25.11"></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span><user id="4000"></div><div><span class="Apple-tab-span" style="white-space:pre">                                </span><params></div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span><param name"password" value="4000"/></div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span><param name="vm-password" value="4000"/></div><div><span class="Apple-tab-span" style="white-space:pre">                                </span></params></div><div><span class="Apple-tab-span" style="white-space:pre">                                </span><variables></div><div> <span class="Apple-tab-span" style="white-space:pre">                        </span><variable name="user_context" value="cualquiera"/></div><div> <span class="Apple-tab-span" style="white-space:pre">                        </span><span class="Apple-tab-span" style="white-space:pre">        </span><variable name="sip-force-contact" value="NDLB-connectile-dysfunction"/></div><div> <span class="Apple-tab-span" style="white-space:pre">                        </span><variable name="user_context" value="default"/></div><div> <span class="Apple-tab-span" style="white-space:pre">                        </span></variables></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span></user></div><div><span class="Apple-tab-span" style="white-space:pre">                </span></domain></div><div><span class="Apple-tab-span" style="white-space:pre">        </span></section></div><div></document></div></div><div><br></div><div>and the user 4000 register without problems.</div><div><br></div><div>I made two calls.</div><div><br></div><div> From user 4000 to 1000</div><div><br></div><div><div><?xml version="1.0" encoding="UTF-8"?></div><div><document type="freeswitch/xml"></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><section name="dialplan" description="asdasd"></div><div><span class="Apple-tab-span" style="white-space:pre">                </span><context name="default"></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span><extension name="llamando"></div><div><span class="Apple-tab-span" style="white-space:pre">                                </span><condition field="destination_number" expresion="^1000$"></div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span><action application="bridge" data="user/1000" /></div><div><span class="Apple-tab-span" style="white-space:pre">                                </span></condition></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span></extension></div><div><span class="Apple-tab-span" style="white-space:pre">                </span></context></div><div><span class="Apple-tab-span" style="white-space:pre">        </span></section></div><div></document></div><div><br></div><div>The call is ok the two user can talk without problems.</div><div><br></div><div>Another from user 1000 to 4000</div><div><br></div><div><div><?xml version="1.0" encoding="UTF-8"?></div><div><document type="freeswitch/xml"></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span><section name="dialplan" description="asdasd"></div><div><span class="Apple-tab-span" style="white-space: pre; ">                </span><context name="default"></div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span><extension name="llamando"></div><div><span class="Apple-tab-span" style="white-space: pre; ">                                </span><condition field="destination_number" expresion="^4000$"></div><div><span class="Apple-tab-span" style="white-space: pre; ">                                        </span><action application="bridge" data="user/4000" /></div><div><span class="Apple-tab-span" style="white-space: pre; ">                                </span></condition></div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span></extension></div><div><span class="Apple-tab-span" style="white-space: pre; ">                </span></context></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span></section></div><div></document></div></div><div><br></div><div>And get this error:</div><div><br></div><div>2009-04-20 12:16:24 [WARNING] mod_dptools.c:2171 user_outgoing_channel() Can't find user [<a href="mailto:4000@200.49.25.11">4000@200.49.25.11</a>].</div><div><br></div><div>To resolve this problem users be must defined on boot time. But i want to do it dynamically, how was explain before.</div><div><br></div><div>Thanks</div><div>Juan Manuel </div><div><br></div></div><div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">On Apr 17, 2009, at 12:07 PM, JuanMa wrote:<br><br><blockquote type="cite">Hi,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I am using xml_curl, and what I'm trying to do is dynamically register<br></blockquote><blockquote type="cite">the users to the platform, instead of bulking all the users on the FS<br></blockquote><blockquote type="cite">boot time. So far I have successfully register the users and also make<br></blockquote><blockquote type="cite">calls through gateways or to static users (those users that are in the<br></blockquote><blockquote type="cite">physical files), however every time that I want to reach a User who<br></blockquote><blockquote type="cite">has been registered and configured through this method, It seams that<br></blockquote><blockquote type="cite">the FS could not find it (404). For what I have read in the mailings<br></blockquote><blockquote type="cite">list (<a href="http://lists.freeswitch.org/pipermail/freeswitch-users/2009-January/009863.html">http://lists.freeswitch.org/pipermail/freeswitch-users/2009-January/009863.html</a><br></blockquote><blockquote type="cite">) I've seen that theoretically the users MUST be defined on boot time<br></blockquote><blockquote type="cite">in order to be found, is this correct?<br></blockquote><br>Looks like you're confusing dialplan with user directory.<br><br>Can you provide examples of what you're returning and what is <br>resulting in a 404?<br><br><br><blockquote type="cite"><br></blockquote><blockquote type="cite">For instance if I do have 10.000 users I will be forcing the FS to<br></blockquote><blockquote type="cite">have all of them in its database when perhaps I only have 1000 online<br></blockquote><blockquote type="cite">in that specific moment/switch. Perhaps this is something meaningless<br></blockquote><blockquote type="cite">for the server(in terms of cost or performance), but my first<br></blockquote><blockquote type="cite">impression is that is far from optimal.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">So far it seams to be a really cool approach to make the systems<br></blockquote><blockquote type="cite">scale, how ever It's been very difficult to me to find accurate<br></blockquote><blockquote type="cite">information and in general I've ended looking at the code, and make my<br></blockquote><blockquote type="cite">own contribution to the docs.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">If anyone can give any tip or direction I would really appreciate.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks in advance.<br></blockquote><blockquote type="cite">Juan Manuel<br></blockquote><br>Brian West<br><a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a></span></blockquote></div><br></div></body></html>