Yes, I saw that after send that email.<div><br></div><div>This is the corrected one</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><params></div><div><span class="Apple-tab-span" style="white-space:pre">                </span><param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain},transfer _fallback_extension=${dialed_user}}${sofia_contact(${dialed_user}@${dialed_domain})}"/></div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span></params><span class="Apple-tab-span" style="white-space:pre">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span><groups></div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span> <span class="Apple-tab-span" style="white-space:pre">        </span><group name="default"></div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span><users></div>
<div><span class="Apple-tab-span" style="white-space:pre">                                                </span><user id="5000"></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="5000"/></div>
<div><span class="Apple-tab-span" style="white-space:pre">                                                                </span><param name="vm-password" value="5000"/></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="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></users></div><div><span class="Apple-tab-span" style="white-space:pre">                                </span></group></div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span></groups></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><br></div><div>And the dial plan:</div><div><br></div><div><div><document type="freeswitch/xml"></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><section name="dialplan" description="default"></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="^5000$"></div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span><action application="bridge" data="user/5000"/></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><div><br></div><div>I tried with:</div><div><br></div><div><action application="bridge" data="user/5000"/><br>
</div><div><action application="bridge" data="user/<a href="mailto:5000@200.49.25.11">5000@200.49.25.11</a>"/><br></div><div><action application="bridge" data="user/5000%200.49.25.11"/><br>
</div><div><br></div><div>The console is the same:</div><div><br></div><div><div>2009-04-22 18:00:28 [INFO] mod_dialplan_xml.c:233 dialplan_hunt() Processing 1000->5000 in context default</div><div>2009-04-22 18:00:28 [ERR] switch_xml.c:1532 switch_xml_locate() Error[[error near line 1]: root tag missing]</div>
<div>2009-04-22 18:00:28 [WARNING] mod_dptools.c:2171 user_outgoing_channel() Can't find user [<a href="mailto:5000@200.49.25.11">5000@200.49.25.11</a>]</div><div>2009-04-22 18:00:28 [ERR] switch_ivr_originate.c:1116 switch_ivr_originate() Cannot create outgoing channel of type [user] cause: [SUBSCRIBER_ABSENT]</div>
<div>2009-04-22 18:00:28 [INFO] mod_dptools.c:1909 audio_bridge_function() Originate Failed. Cause: SUBSCRIBER_ABSENT</div><div>2009-04-22 18:00:28 [NOTICE] mod_dptools.c:1936 audio_bridge_function() Hangup sofia/internal/<a href="mailto:1000@200.49.25.11">1000@200.49.25.11</a> [CS_EXECUTE] [SUBSCRIBER_ABSENT]</div>
<div>2009-04-22 18:00:28 [NOTICE] switch_core_session.c:957 switch_core_session_thread() Session 17 (sofia/internal/<a href="mailto:1000@200.49.25.11">1000@200.49.25.11</a>) Ended</div><div>2009-04-22 18:00:28 [NOTICE] switch_core_session.c:959 switch_core_session_thread() Close Channel sofia/internal/<a href="mailto:1000@200.49.25.11">1000@200.49.25.11</a> [CS_HANGUP]</div>
<div>2009-04-22 18:00:52 [NOTICE] switch_channel.c:565 switch_channel_set_name() New Channel sofia/internal/<a href="mailto:1000@200.49.25.11">1000@200.49.25.11</a> [a9e8b0d2-2f80-11de-90e9-8b6680def56e]</div><div><br></div>
<div>also i was trying with the dialplan hardcode in /usr/local/freeswitch/conf/dialplan/default.xml.</div><div><br></div></div><div>Thanks in advance.</div><div><br></div><div><div class="gmail_quote">On Wed, Apr 22, 2009 at 3:03 PM, Michael Jerris <span dir="ltr"><<a href="mailto:mike@jerris.com">mike@jerris.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">$${domain} (or any other preprocessor vars) will not be expanded on an<br>
xml_curl return.<br>
<br>
Mike<br>
<div><div></div><div class="h5"><br>
On Apr 22, 2009, at 12:31 PM, JuanMa wrote:<br>
<br>
> Peter Thanks for your reply:<br>
><br>
> I did what you said but FS still with the same problem, cant found the<br>
> user.<br>
><br>
> This is my reply to registration request<br>
><br>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?><br>
> <document type="freeswitch/xml"><br>
> <section name="directory"><br>
> <domain name="$${domain}"><br>
> <params><br>
> <param name="dial-string" value="{presence_id=${dialed_user}@$<br>
> {dialed_domain},transfer_fallback_extension=${dialed_user}}$<br>
> {sofia_contact(${dialed_user}@${dialed_domain})}"/><br>
> </params><br>
> <groups><br>
> <group name="default"><br>
> <users><br>
> <user id="5000"><br>
> <params><br>
> <param name="password" value="5000"/><br>
> <param name="vm-password" value="5000"/><br>
> </params><br>
> <variables><br>
> <variable name="sip-force-contact" value="NDLB-<br>
> connectile-dysfunction"/><br>
> <variable name="user_context" value="default"/><br>
> </variables><br>
> </user><br>
> </users><br>
> </group><br>
> </groups><br>
> </domain><br>
> </section><br>
> </document><br>
><br>
> I have made some changes but the result is the same, the registration<br>
> is ok.<br>
><br>
> My dial plan reply, call from user 1000 to user 5000 registered<br>
> through xml_curl<br>
><br>
> <document type="freeswitch/xml"><br>
> <section name="dialplan" description="default"><br>
> <context name="default"><br>
> <extension name="llamando"><br>
> <condition field="destination_number" expresion="^5000$"><br>
> <action application="bridge" data="user/5000"/><br>
> </condition><br>
> </extension><br>
> </context><br>
> </section><br>
> </document><br>
><br>
> console returns:<br>
><br>
> 2009-04-22 13:28:45 [NOTICE] switch_channel.c:565<br>
> switch_channel_set_name() New Channel sofia/internal/<a href="mailto:1000@200.49.25.11">1000@200.49.25.11</a><br>
> [a6bb1f88-2f5a-11de-b18a-8fd11ffefe88]<br>
> 2009-04-22 13:28:45 [INFO] mod_dialplan_xml.c:233 dialplan_hunt()<br>
> Processing 1000->5000 in context default<br>
> 2009-04-22 13:28:45 [ERR] switch_xml.c:1532 switch_xml_locate()<br>
> Error[[error near line 1]: root tag missing]<br>
> 2009-04-22 13:28:45 [WARNING] mod_dptools.c:2171<br>
> user_outgoing_channel() Can't find user [<a href="mailto:5000@200.49.25.11">5000@200.49.25.11</a>]<br>
> 2009-04-22 13:28:45 [ERR] switch_ivr_originate.c:1116<br>
> switch_ivr_originate() Cannot create outgoing channel of type [user]<br>
> cause: [SUBSCRIBER_ABSENT]<br>
> 2009-04-22 13:28:45 [INFO] mod_dptools.c:1909 audio_bridge_function()<br>
> Originate Failed. Cause: SUBSCRIBER_ABSENT<br>
> 2009-04-22 13:28:45 [NOTICE] mod_dptools.c:1936<br>
> audio_bridge_function() Hangup sofia/internal/<a href="mailto:1000@200.49.25.11">1000@200.49.25.11</a><br>
> [CS_EXECUTE] [SUBSCRIBER_ABSENT]<br>
> 2009-04-22 13:28:45 [NOTICE] switch_core_session.c:957<br>
> switch_core_session_thread() Session 10 (sofia/internal/<a href="mailto:1000@200.49.25.11">1000@200.49.25.11</a><br>
> ) Ended<br>
> 2009-04-22 13:28:45 [NOTICE] switch_core_session.c:959<br>
> switch_core_session_thread() Close Channel sofia/internal/<a href="mailto:1000@200.49.25.11">1000@200.49.25.11</a><br>
> [CS_HANGUP]<br>
><br>
> Any idea what is i am doing wrong?<br>
><br>
> Thanks<br>
> Juan Manuel<br>
><br>
> On Apr 20, 2009, at 8:14 PM, Peter P GMX wrote:<br>
><br>
>> I had the same problem some time ago.<br>
>><br>
>> Setting the<br>
>> <param name="dial-string"<br>
>> value="{presence_id=${dialed_user}@$<br>
>> {dialed_domain},transfer_fallback_extension=${dialed_user}}$<br>
>> {sofia_contact(${dialed_user}@${dialed_domain})}"/><br>
>><br>
>> in the xml-curl answer solved my problem.<br>
>> In the config files this is set in<br>
>> /usr/local/freeswitch/conf/directory/default.xml<br>
>> and you also need it in your xml-curl.<br>
>><br>
>> Best regards<br>
>> Peter<br>
>><br>
>> JuanMa schrieb:<br>
>>> Brian thx for you help.<br>
>>><br>
>>> 404 was my mistake it is "user not found"<br>
>>><br>
>>> 2009-04-20 12:16:24 [WARNING] mod_dptools.c:2171<br>
>>> user_outgoing_channel() Can't find user [<a href="mailto:4000@200.49.25.11">4000@200.49.25.11</a><br>
>>> <mailto:<a href="mailto:4000@200.49.25.11">4000@200.49.25.11</a>>]<br>
>>><br>
>>> To explain better my problem:<br>
>>><br>
>>> i have two users, one 1000 and another 4000,the user 1000<br>
>>> is physically in the user directory of Freeswitch(FS) and the user<br>
>>> 4000 is dynamically registered througth xml_curl.<br>
>>><br>
>>> The request of FS when user 4000 wants to register is:<br>
>>><br>
>>> sip_to_user:4000<br>
>>> tag_name:domain<br>
>>> key_value:200.49.25.11<br>
>>> sip_contact_user:4000<br>
>>> section:directory<br>
>>> sip_auth_method:REGISTER<br>
>>> sip_auth_realm:200.49.25.11<br>
>>> sip_auth_username:4000<br>
>>> sip_user_agent:eyeBeam release 1004p stamp 31962<br>
>>> sip_auth_cnonce:f63211853d983216<br>
>>> sip_request_host:200.49.25.11<br>
>>> hostname:FreeSwitch_curl_XML<br>
>>> ip:200.123.150.217<br>
>>> user:4000<br>
>>> action:sip_auth<br>
>>> sip_profile:internal<br>
>>> key_name:name<br>
>>> sip_auth_qop:auth<br>
>>> sip_from_user:4000<br>
>>> sip_to_host:200.49.25.11<br>
>>> key:id<br>
>>> sip_auth_nonce:8fad7fae-2db9-11de-83c7-b10c5224858b<br>
>>> domain:200.49.25.11<br>
>>> sip_auth_nc:00000006<br>
>>> sip_from_host:200.49.25.11<br>
>>> sip_auth_response:4db7a5476e949c8d133f55279d837b2f<br>
>>> sip_auth_uri:sip:200.49.25.11<br>
>>> sip_contact_host:200.123.150.217<br>
>>><br>
>>> and the reply is:<br>
>>><br>
>>> <?xml version="1.0" encoding="UTF-8" standalone="no"?><br>
>>> <document type="freeswitch/xml"><br>
>>> <section name="directory"><br>
>>> <domain name="200.49.25.11"><br>
>>> <user id="4000"><br>
>>> <params><br>
>>> <param name"password" value="4000"/><br>
>>> <param name="vm-password" value="4000"/><br>
>>> </params><br>
>>> <variables><br>
>>> <variable name="user_context" value="cualquiera"/><br>
>>> <variable name="sip-force-contact"<br>
>>> value="NDLB-connectile-dysfunction"/><br>
>>> <variable name="user_context" value="default"/><br>
>>> </variables><br>
>>> </user><br>
>>> </domain><br>
>>> </section><br>
>>> </document><br>
>>><br>
>>> and the user 4000 register without problems.<br>
>>><br>
>>> I made two calls.<br>
>>><br>
>>> From user 4000 to 1000<br>
>>><br>
>>> <?xml version="1.0" encoding="UTF-8"?><br>
>>> <document type="freeswitch/xml"><br>
>>> <section name="dialplan" description="asdasd"><br>
>>> <context name="default"><br>
>>> <extension name="llamando"><br>
>>> <condition field="destination_number" expresion="^1000$"><br>
>>> <action application="bridge" data="user/1000" /><br>
>>> </condition><br>
>>> </extension><br>
>>> </context><br>
>>> </section><br>
>>> </document><br>
>>><br>
>>> The call is ok the two user can talk without problems.<br>
>>><br>
>>> Another from user 1000 to 4000<br>
>>><br>
>>> <?xml version="1.0" encoding="UTF-8"?><br>
>>> <document type="freeswitch/xml"><br>
>>> <section name="dialplan" description="asdasd"><br>
>>> <context name="default"><br>
>>> <extension name="llamando"><br>
>>> <condition field="destination_number" expresion="^4000$"><br>
>>> <action application="bridge" data="user/4000" /><br>
>>> </condition><br>
>>> </extension><br>
>>> </context><br>
>>> </section><br>
>>> </document><br>
>>><br>
>>> And get this error:<br>
>>><br>
>>> 2009-04-20 12:16:24 [WARNING] mod_dptools.c:2171<br>
>>> user_outgoing_channel() Can't find user [<a href="mailto:4000@200.49.25.11">4000@200.49.25.11</a><br>
>>> <mailto:<a href="mailto:4000@200.49.25.11">4000@200.49.25.11</a>>].<br>
>>><br>
>>> To resolve this problem users be must defined on boot time. But i<br>
>>> want<br>
>>> to do it dynamically, how was explain before.<br>
>>><br>
>>> Thanks<br>
>>> Juan Manuel<br>
>>><br>
>>><br>
>>>> On Apr 17, 2009, at 12:07 PM, JuanMa wrote:<br>
>>>><br>
>>>>> Hi,<br>
>>>>><br>
>>>>> I am using xml_curl, and what I'm trying to do is dynamically<br>
>>>>> register<br>
>>>>> the users to the platform, instead of bulking all the users on<br>
>>>>> the FS<br>
>>>>> boot time. So far I have successfully register the users and also<br>
>>>>> make<br>
>>>>> calls through gateways or to static users (those users that are<br>
>>>>> in the<br>
>>>>> physical files), however every time that I want to reach a User<br>
>>>>> who<br>
>>>>> has been registered and configured through this method, It seams<br>
>>>>> that<br>
>>>>> the FS could not find it (404). For what I have read in the<br>
>>>>> mailings<br>
>>>>> list<br>
>>>>> (<a href="http://lists.freeswitch.org/pipermail/freeswitch-users/2009-January/009863.html" target="_blank">http://lists.freeswitch.org/pipermail/freeswitch-users/2009-January/009863.html</a><br>
>>>>> ) I've seen that theoretically the users MUST be defined on boot<br>
>>>>> time<br>
>>>>> in order to be found, is this correct?<br>
>>>><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>
>>>>><br>
>>>>> For instance if I do have 10.000 users I will be forcing the FS to<br>
>>>>> have all of them in its database when perhaps I only have 1000<br>
>>>>> online<br>
>>>>> in that specific moment/switch. Perhaps this is something<br>
>>>>> meaningless<br>
>>>>> for the server(in terms of cost or performance), but my first<br>
>>>>> impression is that is far from optimal.<br>
>>>>><br>
>>>>> So far it seams to be a really cool approach to make the systems<br>
>>>>> scale, how ever It's been very difficult to me to find accurate<br>
>>>>> information and in general I've ended looking at the code, and<br>
>>>>> make my<br>
>>>>> own contribution to the docs.<br>
>>>>><br>
>>>>> If anyone can give any tip or direction I would really appreciate.<br>
>>>>><br>
>>>>><br>
>>>>> Thanks in advance.<br>
>>>>> Juan Manuel<br>
>>>><br>
>>>> Brian West<br>
>>>> <a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a> <mailto:<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>><br>
>>><br>
>>> ------------------------------------------------------------------------<br>
>>><br>
>>> _______________________________________________<br>
>>> Freeswitch-users mailing list<br>
>>> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>><br>
>><br>
>> _______________________________________________<br>
>> Freeswitch-users mailing list<br>
>> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
> _______________________________________________<br>
> Freeswitch-users mailing list<br>
> <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>