<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
I have setup Freeswitch with xml_curl and provide configs almost
identical to the local xml files. I can call external gateways, however
when I call a local phone, I cannot connect and it drops me to the VM
of the phone.<br>
<br>
2008-09-24 23:30:55 [DEBUG] switch_core_state_machine.c:140
switch_core_standard_on_execute()
<a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/1002@siplocal.my.domain">sofia/internal/1002@siplocal.my.domain</a> Execute
db(insert/last_dial_ext/${dialed_ext}/${uuid})<br>
2008-09-24 23:30:55 [DEBUG] switch_core_session.c:1053
switch_core_session_execute_application()
<a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/1002@siplocal.my.domain">sofia/internal/1002@siplocal.my.domain</a> Expanded String
db(insert/last_dial_ext/1003/1078c6e4-8a80-11dd-8aeb-2f433e89ec8c)<br>
2008-09-24 23:30:55 [DEBUG] switch_core_state_machine.c:140
switch_core_standard_on_execute()
<a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/1002@siplocal.my.domain">sofia/internal/1002@siplocal.my.domain</a> Execute
bridge(user/${<a class="moz-txt-link-abbreviated" href="mailto:dialed_ext}@siplocal.my.domain">dialed_ext}@siplocal.my.domain</a>)<br>
2008-09-24 23:30:55 [DEBUG] switch_core_session.c:1053
switch_core_session_execute_application()
<a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/1002@siplocal.my.domain">sofia/internal/1002@siplocal.my.domain</a> Expanded String <b>bridge(<a class="moz-txt-link-abbreviated" href="mailto:user/1003@siplocal.my.domain">user/1003@siplocal.my.domain</a>)</b><br>
2008-09-24 23:30:56 [ERR] mod_dptools.c:1957 user_outgoing_channel() <b>No
dial-string available, please check your user directory.</b><br>
2008-09-24 23:30:56 [ERR] switch_ivr_originate.c:926
switch_ivr_originate() Cannot create outgoing channel of type [user]
cause: <b>[MANDATORY_IE_MISSING]</b><br>
2008-09-24 23:30:56 [DEBUG] switch_ivr_originate.c:1404
switch_ivr_originate() Originate Resulted in <b>Error Cause: 96
[MANDATORY_IE_MISSING]</b><br>
2008-09-24 23:30:56 [INFO] mod_dptools.c:1794 audio_bridge_function()
Originate Failed.  Cause: MANDATORY_IE_MISSING<br>
<br>
Boths phones 1002 and 1003 are successfully registered in the internal
context. I can call external numbers and internal numbers like VMs,
conferences etc. When I use the local xml config files it works. The
only thing I see is different, is that the external dialplan is a
subset of the original dialplan.<br>
<br>
What can be the cause for this error message? The bridge string seems
ok for me and is the same as when I call with local config files.<br>
<br>
When I regard the log I see the following: So this should be fine. <br>
  &lt;app_log&gt;<br>
    &lt;application app_name="set"
app_data="use_profile=nat"&gt;&lt;/application&gt;<br>
    &lt;application app_name="set_user"
app_data=<a class="moz-txt-link-rfc2396E" href="mailto:default@siplocal.my.domain">"default@siplocal.my.domain"</a>&gt;&lt;/application&gt;<br>
    &lt;application app_name="set"
app_data="sip_secure_media=true"&gt;&lt;/application&gt;<br>
    &lt;application app_name="db"
app_data="insert/spymap/1002/edaeda08-8a85-11dd-a728-e3e019d7122d"&gt;&lt;/application&gt;<br>
    &lt;application app_name="db"
app_data="insert/last_dial/1002/1003"&gt;&lt;/application&gt;<br>
    &lt;application app_name="db"
app_data="insert/last_dial/global/edaeda08-8a85-11dd-a728-e3e019d7122d"&gt;&lt;/application&gt;<br>
    &lt;application app_name="set"
app_data="dialed_ext=1003"&gt;&lt;/application&gt;<br>
    &lt;application app_name="export"
app_data="dialed_ext=1003"&gt;&lt;/application&gt;<br>
    &lt;application app_name="bind_meta_app" app_data="1 b s
execute_extension::dx XML features"&gt;&lt;/application&gt;<br>
    &lt;application app_name="bind_meta_app" app_data="2 b s
record_session::/usr/local/freeswitch/recordings/1002.2008-09-25-00-12-51.wav"&gt;&lt;/application&gt;<br>
    &lt;application app_name="bind_meta_app" app_data="3 b s
execute_extension::cf XML features"&gt;&lt;/application&gt;<br>
    &lt;application app_name="set" app_data="transfer_ringback=%(2000,
4000, 440.0, 480.0)"&gt;&lt;/application&gt;<br>
    &lt;application app_name="set"
app_data="call_timeout=30"&gt;&lt;/application&gt;<br>
    &lt;application app_name="set"
app_data="hangup_after_bridge=true"&gt;&lt;/application&gt;<br>
    &lt;application app_name="set"
app_data="continue_on_fail=true"&gt;&lt;/application&gt;<br>
    &lt;application app_name="db"
app_data="insert/call_return/1003/1002"&gt;&lt;/application&gt;<br>
    &lt;application app_name="db"
app_data="insert/last_dial_ext/1003/edaeda08-8a85-11dd-a728-e3e019d7122d"&gt;&lt;/application&gt;<br>
    &lt;application app_name="bridge"
app_data=<a class="moz-txt-link-rfc2396E" href="mailto:user/1003@siplocal.my.domain">"user/1003@siplocal.my.domain"</a>&gt;&lt;/application&gt;<br>
  &lt;/app_log&gt;<br>
  &lt;callflow dialplan="XML" profile_index="1"&gt;<br>
    &lt;extension name="global" number="1003" current_app="answer"&gt;<br>
      &lt;application app_name="set"
app_data="use_profile=${cond(${acl(${network_addr} rfc1918)} == true ?
nat : default)}"&gt;&lt;/application&gt;<br>
      &lt;application app_name="set_user"
app_data="default@${domain}"&gt;&lt;/application&gt;<br>
      &lt;application app_name="set"
app_data="sip_secure_media=true"&gt;&lt;/application&gt;<br>
      &lt;application app_name="db"
app_data="insert/spymap/${caller_id_number}/${uuid}"&gt;&lt;/application&gt;<br>
      &lt;application app_name="db"
app_data="insert/last_dial/${caller_id_number}/${destination_number}"&gt;&lt;/application&gt;<br>
      &lt;application app_name="db"
app_data="insert/last_dial/global/${uuid}"&gt;&lt;/application&gt;<br>
      &lt;application app_name="set"
app_data="dialed_ext=1003"&gt;&lt;/application&gt;<br>
      &lt;application app_name="export"
app_data="dialed_ext=1003"&gt;&lt;/application&gt;<br>
      &lt;application app_name="bind_meta_app" app_data="1 b s
execute_extension::dx XML features"&gt;&lt;/application&gt;<br>
      &lt;application app_name="bind_meta_app" app_data="2 b s
record_session::/usr/local/freeswitch/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"&gt;&lt;/application&gt;<br>
      &lt;application app_name="bind_meta_app" app_data="3 b s
execute_extension::cf XML features"&gt;&lt;/application&gt;<br>
      &lt;application app_name="set"
app_data="transfer_ringback=${us-ring}"&gt;&lt;/application&gt;<br>
      &lt;application app_name="set"
app_data="call_timeout=30"&gt;&lt;/application&gt;<br>
      &lt;application app_name="set"
app_data="hangup_after_bridge=true"&gt;&lt;/application&gt;<br>
      &lt;application app_name="set"
app_data="continue_on_fail=true"&gt;&lt;/application&gt;<br>
      &lt;application app_name="db"
app_data="insert/call_return/${dialed_ext}/${caller_id_number}"&gt;&lt;/application&gt;<br>
      &lt;application app_name="db"
app_data="insert/last_dial_ext/${dialed_ext}/${uuid}"&gt;&lt;/application&gt;<br>
      &lt;application app_name="bridge"
app_data=<a class="moz-txt-link-rfc2396E" href="mailto:user/${dialed_ext}@siplocal.my.domain">"user/${dialed_ext}@siplocal.my.domain"</a>&gt;&lt;/application&gt;<br>
      &lt;application last_executed="true" app_name="answer"
app_data=""&gt;&lt;/application&gt;<br>
      &lt;application app_name="sleep"
app_data="1000"&gt;&lt;/application&gt;<br>
      &lt;application app_name="voicemail" app_data="default
siplocal.my.domain ${dialed_ext}"&gt;&lt;/application&gt;<br>
    &lt;/extension&gt;<br>
    &lt;caller_profile&gt;<br>
      &lt;username&gt;1002&lt;/username&gt;<br>
      &lt;dialplan&gt;XML&lt;/dialplan&gt;<br>
      &lt;caller_id_name&gt;Freeswitch1002&lt;/caller_id_name&gt;<br>
      &lt;ani&gt;&lt;/ani&gt;<br>
      &lt;aniii&gt;&lt;/aniii&gt;<br>
      &lt;caller_id_number&gt;1002&lt;/caller_id_number&gt;<br>
      &lt;network_addr&gt;192.168.178.1&lt;/network_addr&gt;<br>
      &lt;rdnis&gt;&lt;/rdnis&gt;<br>
      &lt;destination_number&gt;1003&lt;/destination_number&gt;<br>
      &lt;uuid&gt;edaeda08-8a85-11dd-a728-e3e019d7122d&lt;/uuid&gt;<br>
      &lt;source&gt;mod_sofia&lt;/source&gt;<br>
      &lt;context&gt;default&lt;/context&gt;<br>
     
&lt;chan_name&gt;<a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/1002@siplocal.my.domain">sofia/internal/1002@siplocal.my.domain</a>&lt;/chan_name&gt;<br>
      &lt;originatee&gt;<br>
        &lt;originatee_caller_profile&gt;<br>
          &lt;username&gt;1002&lt;/username&gt;<br>
          &lt;dialplan&gt;XML&lt;/dialplan&gt;<br>
          &lt;caller_id_name&gt;Extension 1002&lt;/caller_id_name&gt;<br>
          &lt;ani&gt;&lt;/ani&gt;<br>
          &lt;aniii&gt;&lt;/aniii&gt;<br>
          &lt;caller_id_number&gt;1002&lt;/caller_id_number&gt;<br>
          &lt;network_addr&gt;192.168.178.1&lt;/network_addr&gt;<br>
          &lt;rdnis&gt;&lt;/rdnis&gt;<br>
         
&lt;destination_number&gt;<a class="moz-txt-link-abbreviated" href="mailto:1003@192.168.178.1:2127;transport=tls;fs_nat=yes">1003@192.168.178.1:2127;transport=tls;fs_nat=yes</a>&lt;/destination_number&gt;<br>
          &lt;uuid&gt;ee27aaa0-8a85-11dd-a728-e3e019d7122d&lt;/uuid&gt;<br>
          &lt;source&gt;mod_sofia&lt;/source&gt;<br>
          &lt;context&gt;default&lt;/context&gt;<br>
         
&lt;chan_name&gt;<a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/1003@192.168.178.1:2127;transport=tls;fs_nat=yes">sofia/internal/1003@192.168.178.1:2127;transport=tls;fs_nat=yes</a>&lt;/chan_name&gt;<br>
        &lt;/originatee_caller_profile&gt;<br>
        &lt;originatee_caller_profile&gt;<br>
          &lt;username&gt;1002&lt;/username&gt;<br>
          &lt;dialplan&gt;XML&lt;/dialplan&gt;<br>
          &lt;caller_id_name&gt;Extension 1002&lt;/caller_id_name&gt;<br>
          &lt;ani&gt;&lt;/ani&gt;<br>
          &lt;aniii&gt;&lt;/aniii&gt;<br>
          &lt;caller_id_number&gt;1002&lt;/caller_id_number&gt;<br>
          &lt;network_addr&gt;192.168.178.1&lt;/network_addr&gt;<br>
          &lt;rdnis&gt;&lt;/rdnis&gt;<br>
         
&lt;destination_number&gt;<a class="moz-txt-link-abbreviated" href="mailto:1003@192.168.178.1:2127;transport=tls;fs_nat=yes">1003@192.168.178.1:2127;transport=tls;fs_nat=yes</a>&lt;/destination_number&gt;<br>
          &lt;uuid&gt;ee27aaa0-8a85-11dd-a728-e3e019d7122d&lt;/uuid&gt;<br>
          &lt;source&gt;mod_sofia&lt;/source&gt;<br>
          &lt;context&gt;default&lt;/context&gt;<br>
         
&lt;chan_name&gt;<a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/1003@192.168.178.1:2127;transport=tls;fs_nat=yes">sofia/internal/1003@192.168.178.1:2127;transport=tls;fs_nat=yes</a>&lt;/chan_name&gt;<br>
        &lt;/originatee_caller_profile&gt;<br>
      &lt;/originatee&gt;<br>
    &lt;/caller_profile&gt;<br>
    &lt;times&gt;<br>
      &lt;created_time&gt;1222294371386160&lt;/created_time&gt;<br>
     
&lt;profile_created_time&gt;1222294371386160&lt;/profile_created_time&gt;<br>
      &lt;progress_time&gt;1222294372279689&lt;/progress_time&gt;<br>
      &lt;progress_media_time&gt;0&lt;/progress_media_time&gt;<br>
      &lt;answered_time&gt;1222294372411530&lt;/answered_time&gt;<br>
      &lt;hangup_time&gt;1222294374190141&lt;/hangup_time&gt;<br>
      &lt;transfer_time&gt;0&lt;/transfer_time&gt;<br>
    &lt;/times&gt;<br>
  &lt;/callflow&gt;<br>
  &lt;app_log&gt;<br>
    &lt;application app_name="set"
app_data="dialed_ext=1003"&gt;&lt;/application&gt;<br>
    &lt;application app_name="export"
app_data="dialed_ext=1003"&gt;&lt;/application&gt;<br>
    &lt;application app_name="bind_meta_app" app_data="1 b s
execute_extension::dx XML features"&gt;&lt;/application&gt;<br>
    &lt;application app_name="bind_meta_app" app_data="2 b s
record_session::/usr/local/freeswitch/recordings/1002.2008-09-25-00-16-22.wav"&gt;&lt;/application&gt;<br>
    &lt;application app_name="bind_meta_app" app_data="3 b s
execute_extension::cf XML features"&gt;&lt;/application&gt;<br>
    &lt;application app_name="set" app_data="transfer_ringback=%(2000,
4000, 440.0, 480.0)"&gt;&lt;/application&gt;<br>
    &lt;application app_name="set"
app_data="call_timeout=30"&gt;&lt;/application&gt;<br>
    &lt;application app_name="set"
app_data="hangup_after_bridge=true"&gt;&lt;/application&gt;<br>
    &lt;application app_name="set"
app_data="continue_on_fail=true"&gt;&lt;/application&gt;<br>
    &lt;application app_name="db"
app_data="insert/call_return/1003/1002"&gt;&lt;/application&gt;<br>
    &lt;application app_name="db"
app_data="insert/last_dial_ext/1003/69a1337c-8a86-11dd-97c6-c70d0d682f22"&gt;&lt;/application&gt;<br>
    &lt;application app_name="bridge"
app_data=<a class="moz-txt-link-rfc2396E" href="mailto:user/1003@siplocal.my.domain">"user/1003@siplocal.my.domain"</a>&gt;&lt;/application&gt;<br>
    &lt;application app_name="answer"
app_data=""&gt;&lt;/application&gt;<br>
    &lt;application app_name="sleep"
app_data="1000"&gt;&lt;/application&gt;<br>
    &lt;application app_name="voicemail" app_data="default
siplocal.my.domain 1003"&gt;&lt;/application&gt;<br>
  &lt;/app_log&gt;<br>
  &lt;callflow dialplan="XML" profile_index="1"&gt;<br>
    &lt;extension name="Local_Extension" number="1003"&gt;<br>
      &lt;application app_name="set"
app_data="dialed_ext=1003"&gt;&lt;/application&gt;<br>
      &lt;application app_name="export"
app_data="dialed_ext=1003"&gt;&lt;/application&gt;<br>
      &lt;application app_name="bind_meta_app" app_data="1 b s
execute_extension::dx XML features"&gt;&lt;/application&gt;<br>
      &lt;application app_name="bind_meta_app" app_data="2 b s
record_session::/usr/local/freeswitch/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"&gt;&lt;/application&gt;<br>
      &lt;application app_name="bind_meta_app" app_data="3 b s
execute_extension::cf XML features"&gt;&lt;/application&gt;<br>
      &lt;application app_name="set"
app_data="transfer_ringback=${us-ring}"&gt;&lt;/application&gt;<br>
      &lt;application app_name="set"
app_data="call_timeout=30"&gt;&lt;/application&gt;<br>
      &lt;application app_name="set"
app_data="hangup_after_bridge=true"&gt;&lt;/application&gt;<br>
      &lt;application app_name="set"
app_data="continue_on_fail=true"&gt;&lt;/application&gt;<br>
      &lt;application app_name="db"
app_data="insert/call_return/${dialed_ext}/${caller_id_number}"&gt;&lt;/application&gt;<br>
      &lt;application app_name="db"
app_data="insert/last_dial_ext/${dialed_ext}/${uuid}"&gt;&lt;/application&gt;<br>
      &lt;application app_name="bridge"
app_data=<a class="moz-txt-link-rfc2396E" href="mailto:user/${dialed_ext}@siplocal.my.domain">"user/${dialed_ext}@siplocal.my.domain"</a>&gt;&lt;/application&gt;<br>
      &lt;application app_name="answer"
app_data=""&gt;&lt;/application&gt;<br>
      &lt;application app_name="sleep"
app_data="1000"&gt;&lt;/application&gt;<br>
      &lt;application app_name="voicemail" app_data="default
siplocal.my.domain ${dialed_ext}"&gt;&lt;/application&gt;<br>
    &lt;/extension&gt;<br>
    &lt;caller_profile&gt;<br>
      &lt;username&gt;1002&lt;/username&gt;<br>
      &lt;dialplan&gt;XML&lt;/dialplan&gt;<br>
      &lt;caller_id_name&gt;Freeswitch1002&lt;/caller_id_name&gt;<br>
      &lt;ani&gt;&lt;/ani&gt;<br>
      &lt;aniii&gt;&lt;/aniii&gt;<br>
      &lt;caller_id_number&gt;1002&lt;/caller_id_number&gt;<br>
      &lt;network_addr&gt;192.168.178.1&lt;/network_addr&gt;<br>
      &lt;rdnis&gt;&lt;/rdnis&gt;<br>
      &lt;destination_number&gt;1003&lt;/destination_number&gt;<br>
      &lt;uuid&gt;69a1337c-8a86-11dd-97c6-c70d0d682f22&lt;/uuid&gt;<br>
      &lt;source&gt;mod_sofia&lt;/source&gt;<br>
      &lt;context&gt;default&lt;/context&gt;<br>
     
&lt;chan_name&gt;<a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/1002@siplocal.my.domain">sofia/internal/1002@siplocal.my.domain</a>&lt;/chan_name&gt;<br>
    &lt;/caller_profile&gt;<br>
    &lt;times&gt;<br>
      &lt;created_time&gt;1222294579335872&lt;/created_time&gt;<br>
     
&lt;profile_created_time&gt;1222294579335872&lt;/profile_created_time&gt;<br>
      &lt;progress_time&gt;0&lt;/progress_time&gt;<br>
      &lt;progress_media_time&gt;0&lt;/progress_media_time&gt;<br>
      &lt;answered_time&gt;1222294583270171&lt;/answered_time&gt;<br>
      &lt;hangup_time&gt;1222294586861282&lt;/hangup_time&gt;<br>
      &lt;transfer_time&gt;0&lt;/transfer_time&gt;<br>
    &lt;/times&gt;<br>
  &lt;/callflow&gt;<br>
<br>
<br>
Best regards<br>
Peter<br>
<br>
<br>
<br>
<br>
<br>
</body>
</html>