Oddly the provider returns <br><br>SIP/2.0 500 Internal Server Error<br><br>to your invite.&nbsp; Maybe you can ask them why they do that in this particular case.<br><br><br><div class="gmail_quote">On Thu, Feb 5, 2009 at 7:09 AM, Jacek Sokulski <span dir="ltr">&lt;jsokulski@dotsystems.pl&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">the result of<br>
<div class="Ih2E3d">apiExecute(&quot;bgapi&quot;, &quot;originate<br>
{effective_caller_id_number=fixed0248b,origination_caller_id_number=1000,ignore_early_media=true}user/<a href="mailto:1008@192.168.1.122">1008@192.168.1.122</a> bridge:sofia/gateway/halonet/0225490317 inline&quot;);<br>
</div>&gt; /:<br>
&gt; 2009-02-05 14:04:48 [DEBUG] switch_ivr_originate.c:777 switch_ivr_originate() variable string 0 = [effective_caller_id_number=fixed0248b]<br>
&gt; 2009-02-05 14:04:48 [DEBUG] switch_ivr_originate.c:777 switch_ivr_originate() variable string 1 = [origination_caller_id_number=1000]<br>
&gt; 2009-02-05 14:04:48 [DEBUG] switch_ivr_originate.c:777 switch_ivr_originate() variable string 2 = [ignore_early_media=true]<br>
&gt; 2009-02-05 14:04:48 [DEBUG] switch_ivr_originate.c:777 switch_ivr_originate() variable string 0 = [presence_id=<a href="mailto:1008@192.168.1.122">1008@192.168.1.122</a>]<br>
&gt; 2009-02-05 14:04:48 [NOTICE] switch_channel.c:565 switch_channel_set_name() New Channel sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> [f9b18b2e-b0a9-4e24-8452-40e1cce047bd]<br>

&gt; 2009-02-05 14:04:48 [DEBUG] mod_sofia.c:2518 sofia_outgoing_channel() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) State Change CS_NEW -&gt; CS_INIT<br>

&gt; 2009-02-05 14:04:48 [DEBUG] switch_core_session.c:807 switch_core_session_signal_state_change() Send signal sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> [BREAK]<br>

&gt; 2009-02-05 14:04:48 [DEBUG] switch_core_state_machine.c:379 switch_core_session_run() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) Running State Change CS_INIT<br>

&gt; 2009-02-05 14:04:48 [DEBUG] switch_core_state_machine.c:444 switch_core_session_run() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) State INIT<br>
&gt; 2009-02-05 14:04:48 [DEBUG] mod_sofia.c:83 sofia_on_init() sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> SOFIA INIT<br>
&gt; send 1196 bytes to udp/[192.168.1.126]:5070 at 13:04:48.127004:<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp;INVITE <a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> SIP/2.0<br>
&gt; &nbsp; &nbsp;Via: SIP/2.0/UDP 192.168.1.122;rport;branch=z9hG4bKFpQjUmp1vNHZB<br>
&gt; &nbsp; &nbsp;Max-Forwards: 70<br>
&gt; &nbsp; &nbsp;From: &quot;FreeSWITCH&quot; &lt;<a href="mailto:sip%3A1000@192.168.1.122">sip:1000@192.168.1.122</a>&gt;;tag=9vpFm3tBc8gSe<br>
&gt; &nbsp; &nbsp;To: &lt;<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>&gt;<br>
&gt; &nbsp; &nbsp;Call-ID: 68736fc7-6e28-122c-8396-000c7680c408<br>
&gt; &nbsp; &nbsp;CSeq: 110801208 INVITE<br>
&gt; &nbsp; &nbsp;Contact: &lt;<a href="http://sip:mod_sofia@192.168.1.122:5060" target="_blank">sip:mod_sofia@192.168.1.122:5060</a>&gt;<br>
&gt; &nbsp; &nbsp;User-Agent: FreeSWITCH-mod_sofia/1.0.2-wyeksportowane<br>
&gt; &nbsp; &nbsp;Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH<br>
&gt; &nbsp; &nbsp;Supported: timer, precondition, path, replaces<br>
&gt; &nbsp; &nbsp;Allow-Events: talk, presence, dialog, call-info, sla, include-session-description, presence.winfo, message-summary, refer<br>
&gt; &nbsp; &nbsp;Min-SE: 120<br>
&gt; &nbsp; &nbsp;Content-Type: application/sdp<br>
&gt; &nbsp; &nbsp;Content-Disposition: session<br>
&gt; &nbsp; &nbsp;Content-Length: 335<br>
&gt; &nbsp; &nbsp;Remote-Party-ID: &quot;FreeSWITCH&quot; &lt;<a href="mailto:sip%3A1000@192.168.1.122">sip:1000@192.168.1.122</a>&gt;;screen=yes;privacy=off<br>
&gt;<br>
&gt; &nbsp; &nbsp;v=0<br>
&gt; &nbsp; &nbsp;o=FreeSWITCH 1927164999227225404 3276738624485570081 IN IP4 192.168.1.122<br>
&gt; &nbsp; &nbsp;s=FreeSWITCH<br>
&gt; &nbsp; &nbsp;c=IN IP4 192.168.1.122<br>
&gt; &nbsp; &nbsp;t=0 0<br>
&gt; &nbsp; &nbsp;m=audio 27044 RTP/AVP 9 0 8 3 101 13<br>
&gt; &nbsp; &nbsp;a=rtpmap:9 G722/8000<br>
&gt; &nbsp; &nbsp;a=rtpmap:0 PCMU/8000<br>
&gt; &nbsp; &nbsp;a=rtpmap:8 PCMA/8000<br>
&gt; &nbsp; &nbsp;a=rtpmap:3 GSM/8000<br>
&gt; &nbsp; &nbsp;a=rtpmap:101 telephone-event/8000<br>
&gt; &nbsp; &nbsp;a=fmtp:101 0-16<br>
&gt; &nbsp; &nbsp;a=rtpmap:13 CN/8000<br>
&gt; &nbsp; &nbsp;a=ptime:20<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; 2009-02-05 14:04:48 [DEBUG] mod_sofia.c:111 sofia_on_init() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) State Change CS_INIT -&gt; CS_ROUTING<br>
&gt; 2009-02-05 14:04:48 [DEBUG] switch_core_session.c:807 switch_core_session_signal_state_change() Send signal sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> [BREAK]<br>

&gt; 2009-02-05 14:04:48 [DEBUG] sofia.c:2542 sofia_handle_sip_i_state() Channel sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> entering state [calling]<br>
&gt; 2009-02-05 14:04:48 [DEBUG] switch_core_state_machine.c:444 switch_core_session_run() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) State INIT going to sleep<br>

&gt; 2009-02-05 14:04:48 [DEBUG] switch_core_state_machine.c:379 switch_core_session_run() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) Running State Change CS_ROUTING<br>

&gt; 2009-02-05 14:04:48 [DEBUG] switch_core_state_machine.c:447 switch_core_session_run() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) State ROUTING<br>
&gt; 2009-02-05 14:04:48 [DEBUG] mod_sofia.c:130 sofia_on_routing() sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> SOFIA ROUTING<br>
&gt; 2009-02-05 14:04:48 [DEBUG] switch_ivr_originate.c:58 originate_on_routing() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) State Change CS_ROUTING -&gt; CS_CONSUME_MEDIA<br>

&gt; 2009-02-05 14:04:48 [DEBUG] switch_core_session.c:807 switch_core_session_signal_state_change() Send signal sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> [BREAK]<br>

&gt; 2009-02-05 14:04:48 [DEBUG] switch_core_state_machine.c:447 switch_core_session_run() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) State ROUTING going to sleep<br>

&gt; 2009-02-05 14:04:48 [DEBUG] switch_core_state_machine.c:379 switch_core_session_run() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) Running State Change CS_CONSUME_MEDIA<br>

&gt; 2009-02-05 14:04:48 [DEBUG] switch_core_state_machine.c:466 switch_core_session_run() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) State CONSUME_MEDIA<br>

&gt; recv 361 bytes from udp/[192.168.1.126]:5070 at 13:04:48.130745:<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp;SIP/2.0 100 Trying<br>
&gt; &nbsp; &nbsp;Via: SIP/2.0/UDP 192.168.1.122;rport;branch=z9hG4bKFpQjUmp1vNHZB<br>
&gt; &nbsp; &nbsp;From: &quot;FreeSWITCH&quot; &lt;<a href="mailto:sip%3A1000@192.168.1.122">sip:1000@192.168.1.122</a>&gt;;tag=9vpFm3tBc8gSe<br>
&gt; &nbsp; &nbsp;To: &lt;<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>&gt;;tag=2111843199<br>
&gt; &nbsp; &nbsp;Contact: &lt;<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>&gt;<br>
&gt; &nbsp; &nbsp;Call-ID: 68736fc7-6e28-122c-8396-000c7680c408<br>
&gt; &nbsp; &nbsp;CSeq: 110801208 INVITE<br>
&gt; &nbsp; &nbsp;Server: X-Lite release 1105d<br>
&gt; &nbsp; &nbsp;Content-Length: 0<br>
&gt;<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; recv 362 bytes from udp/[192.168.1.126]:5070 at 13:04:48.181571:<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp;SIP/2.0 180 Ringing<br>
&gt; &nbsp; &nbsp;Via: SIP/2.0/UDP 192.168.1.122;rport;branch=z9hG4bKFpQjUmp1vNHZB<br>
&gt; &nbsp; &nbsp;From: &quot;FreeSWITCH&quot; &lt;<a href="mailto:sip%3A1000@192.168.1.122">sip:1000@192.168.1.122</a>&gt;;tag=9vpFm3tBc8gSe<br>
&gt; &nbsp; &nbsp;To: &lt;<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>&gt;;tag=2111843199<br>
&gt; &nbsp; &nbsp;Contact: &lt;<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>&gt;<br>
&gt; &nbsp; &nbsp;Call-ID: 68736fc7-6e28-122c-8396-000c7680c408<br>
&gt; &nbsp; &nbsp;CSeq: 110801208 INVITE<br>
&gt; &nbsp; &nbsp;Server: X-Lite release 1105d<br>
&gt; &nbsp; &nbsp;Content-Length: 0<br>
&gt;<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; 2009-02-05 14:04:48 [DEBUG] sofia.c:2542 sofia_handle_sip_i_state() Channel sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> entering state [proceeding]<br>

&gt; 2009-02-05 14:04:48 [NOTICE] sofia.c:2596 sofia_handle_sip_i_state() Ring-Ready sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>!<br>
&gt; recv 678 bytes from udp/[192.168.1.126]:5070 at 13:04:51.914714:<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp;SIP/2.0 200 Ok<br>
&gt; &nbsp; &nbsp;Via: SIP/2.0/UDP 192.168.1.122;rport;branch=z9hG4bKFpQjUmp1vNHZB<br>
&gt; &nbsp; &nbsp;From: &quot;FreeSWITCH&quot; &lt;<a href="mailto:sip%3A1000@192.168.1.122">sip:1000@192.168.1.122</a>&gt;;tag=9vpFm3tBc8gSe<br>
&gt; &nbsp; &nbsp;To: &lt;<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>&gt;;tag=2111843199<br>
&gt; &nbsp; &nbsp;Contact: &lt;<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>&gt;<br>
&gt; &nbsp; &nbsp;Call-ID: 68736fc7-6e28-122c-8396-000c7680c408<br>
&gt; &nbsp; &nbsp;CSeq: 110801208 INVITE<br>
&gt; &nbsp; &nbsp;Content-Type: application/sdp<br>
&gt; &nbsp; &nbsp;Server: X-Lite release 1105d<br>
&gt; &nbsp; &nbsp;Content-Length: 288<br>
&gt;<br>
&gt; &nbsp; &nbsp;v=0<br>
&gt; &nbsp; &nbsp;o=1008 1183460117 1183463903 IN IP4 192.168.1.126<br>
&gt; &nbsp; &nbsp;s=X-Lite<br>
&gt; &nbsp; &nbsp;c=IN IP4 192.168.1.126<br>
&gt; &nbsp; &nbsp;t=0 0<br>
&gt; &nbsp; &nbsp;m=audio 9000 RTP/AVP 0 8 98 97 101<br>
&gt; &nbsp; &nbsp;a=rtpmap:0 pcmu/8000<br>
&gt; &nbsp; &nbsp;a=rtpmap:8 pcma/8000<br>
&gt; &nbsp; &nbsp;a=rtpmap:98 iLBC/8000<br>
&gt; &nbsp; &nbsp;a=rtpmap:97 speex/8000<br>
&gt; &nbsp; &nbsp;a=rtpmap:101 telephone-event/8000<br>
&gt; &nbsp; &nbsp;a=fmtp:101 0-15<br>
&gt; &nbsp; &nbsp;a=sendrecv<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; send 372 bytes to udp/[192.168.1.126]:5070 at 13:04:51.915303:<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp;ACK <a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> SIP/2.0<br>
&gt; &nbsp; &nbsp;Via: SIP/2.0/UDP 192.168.1.122;rport;branch=z9hG4bKgZgBXF74Sy7HQ<br>
&gt; &nbsp; &nbsp;Max-Forwards: 70<br>
&gt; &nbsp; &nbsp;From: &quot;FreeSWITCH&quot; &lt;<a href="mailto:sip%3A1000@192.168.1.122">sip:1000@192.168.1.122</a>&gt;;tag=9vpFm3tBc8gSe<br>
&gt; &nbsp; &nbsp;To: &lt;<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>&gt;;tag=2111843199<br>
&gt; &nbsp; &nbsp;Call-ID: 68736fc7-6e28-122c-8396-000c7680c408<br>
&gt; &nbsp; &nbsp;CSeq: 110801208 ACK<br>
&gt; &nbsp; &nbsp;Contact: &lt;<a href="http://sip:mod_sofia@192.168.1.122:5060" target="_blank">sip:mod_sofia@192.168.1.122:5060</a>&gt;<br>
&gt; &nbsp; &nbsp;Content-Length: 0<br>
&gt;<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; 2009-02-05 14:04:51 [DEBUG] sofia.c:2542 sofia_handle_sip_i_state() Channel sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> entering state [ready]<br>
&gt; 2009-02-05 14:04:51 [DEBUG] sofia.c:2546 sofia_handle_sip_i_state() Remote SDP:<br>
&gt; v=0<br>
&gt; o=1008 1183460117 1183463903 IN IP4 192.168.1.126<br>
&gt; s=X-Lite<br>
&gt; c=IN IP4 192.168.1.126<br>
&gt; t=0 0<br>
&gt; m=audio 9000 RTP/AVP 0 8 98 97 101<br>
&gt; a=rtpmap:0 pcmu/8000<br>
&gt; a=rtpmap:8 pcma/8000<br>
&gt; a=rtpmap:98 iLBC/8000<br>
&gt; a=rtpmap:97 speex/8000<br>
&gt; a=rtpmap:101 telephone-event/8000<br>
&gt; a=fmtp:101 0-15<br>
&gt;<br>
&gt; 2009-02-05 14:04:51 [DEBUG] sofia_glue.c:2509 sofia_glue_negotiate_sdp() Audio Codec Compare [pcmu:0:8000]/[G722:9:8000]<br>
&gt; 2009-02-05 14:04:51 [DEBUG] sofia_glue.c:2509 sofia_glue_negotiate_sdp() Audio Codec Compare [pcmu:0:8000]/[PCMU:0:8000]<br>
&gt; 2009-02-05 14:04:51 [DEBUG] sofia_glue.c:1670 sofia_glue_tech_set_codec() Set Codec sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> PCMU/8000 20 ms 160 samples<br>

&gt; 2009-02-05 14:04:51 [DEBUG] sofia_glue.c:2473 sofia_glue_negotiate_sdp() Set 2833 dtmf payload to 101<br>
&gt; 2009-02-05 14:04:51 [DEBUG] sofia_glue.c:1890 sofia_glue_activate_rtp() AUDIO RTP [sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>] 192.168.1.122 port 27044 -&gt; 192.168.1.126 port 9000 codec: 0 ms: 20<br>

&gt; 2009-02-05 14:04:51 [DEBUG] switch_rtp.c:865 switch_rtp_create() Starting timer [soft] 160 bytes per 20000ms<br>
&gt; 2009-02-05 14:04:51 [NOTICE] sofia.c:3031 sofia_handle_sip_i_state() Channel [sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>] has been answered<br>
&gt; 2009-02-05 14:04:51 [DEBUG] switch_channel.c:177 switch_channel_audio_sync() sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> receive message [AUDIO_SYNC]<br>

&gt; 2009-02-05 14:04:51 [DEBUG] switch_ivr_originate.c:1627 switch_ivr_originate() Originate Resulted in Success: [sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>]<br>

&gt; 2009-02-05 14:04:51 [DEBUG] switch_channel.c:177 switch_channel_audio_sync() sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> receive message [AUDIO_SYNC]<br>

&gt; 2009-02-05 14:04:51 [DEBUG] switch_ivr_originate.c:1627 switch_ivr_originate() Originate Resulted in Success: [sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>]<br>

&gt; 2009-02-05 14:04:51 [DEBUG] switch_channel.c:177 switch_channel_audio_sync() sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> receive message [AUDIO_SYNC]<br>

&gt; 2009-02-05 14:04:51 [DEBUG] switch_ivr.c:1245 switch_ivr_session_transfer() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) State Change CS_CONSUME_MEDIA -&gt; CS_ROUTING<br>

&gt; 2009-02-05 14:04:51 [DEBUG] switch_core_session.c:807 switch_core_session_signal_state_change() Send signal sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> [BREAK]<br>

&gt; 2009-02-05 14:04:51 [DEBUG] switch_ivr.c:1249 switch_ivr_session_transfer() sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> receive message [TRANSFER]<br>
&gt; 2009-02-05 14:04:51 [DEBUG] switch_core_session.c:511 switch_core_session_perform_receive_message() Send signal sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> [BREAK]<br>

&gt; 2009-02-05 14:04:51 [NOTICE] switch_ivr.c:1251 switch_ivr_session_transfer() Transfer sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> to inline[bridge:sofia/gateway/halonet/0225490317@default]<br>

&gt; 2009-02-05 14:04:51 [DEBUG] switch_core_state_machine.c:466 switch_core_session_run() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) State CONSUME_MEDIA going to sleep<br>

&gt; 2009-02-05 14:04:51 [DEBUG] switch_core_state_machine.c:379 switch_core_session_run() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) Running State Change CS_ROUTING<br>

&gt; 2009-02-05 14:04:51 [DEBUG] switch_core_state_machine.c:447 switch_core_session_run() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) State ROUTING<br>
&gt; 2009-02-05 14:04:51 [DEBUG] mod_sofia.c:130 sofia_on_routing() sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> SOFIA ROUTING<br>
&gt; 2009-02-05 14:04:51 [DEBUG] switch_core_state_machine.c:64 switch_core_standard_on_routing() sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> Standard ROUTING<br>

&gt; 2009-02-05 14:04:51 [DEBUG] switch_core_state_machine.c:100 switch_core_standard_on_routing() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) State Change CS_ROUTING -&gt; CS_EXECUTE<br>

&gt; 2009-02-05 14:04:51 [DEBUG] switch_core_session.c:807 switch_core_session_signal_state_change() Send signal sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> [BREAK]<br>

&gt; 2009-02-05 14:04:51 [DEBUG] switch_core_state_machine.c:447 switch_core_session_run() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) State ROUTING going to sleep<br>

&gt; 2009-02-05 14:04:51 [DEBUG] switch_core_state_machine.c:379 switch_core_session_run() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) Running State Change CS_EXECUTE<br>

&gt; 2009-02-05 14:04:51 [DEBUG] switch_core_state_machine.c:454 switch_core_session_run() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) State EXECUTE<br>
&gt; 2009-02-05 14:04:51 [DEBUG] mod_sofia.c:173 sofia_on_execute() sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> SOFIA EXECUTE<br>
&gt; 2009-02-05 14:04:51 [DEBUG] switch_core_state_machine.c:137 switch_core_standard_on_execute() sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> Standard EXECUTE<br>

&gt; 2009-02-05 14:04:51 [DEBUG] switch_core_state_machine.c:152 switch_core_standard_on_execute() sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> Execute bridge(sofia/gateway/halonet/0225490317)<br>

&gt; 2009-02-05 14:04:51 [NOTICE] switch_channel.c:565 switch_channel_set_name() New Channel sofia/external/0225490317 [bf4fece9-38fc-40fa-8e9e-91f836f05e55]<br>
&gt; 2009-02-05 14:04:51 [DEBUG] mod_sofia.c:2518 sofia_outgoing_channel() (sofia/external/0225490317) State Change CS_NEW -&gt; CS_INIT<br>
&gt; 2009-02-05 14:04:51 [DEBUG] switch_core_session.c:807 switch_core_session_signal_state_change() Send signal sofia/external/0225490317 [BREAK]<br>
&gt; 2009-02-05 14:04:51 [DEBUG] switch_core_state_machine.c:379 switch_core_session_run() (sofia/external/0225490317) Running State Change CS_INIT<br>
&gt; 2009-02-05 14:04:51 [DEBUG] switch_core_state_machine.c:444 switch_core_session_run() (sofia/external/0225490317) State INIT<br>
&gt; 2009-02-05 14:04:51 [DEBUG] mod_sofia.c:83 sofia_on_init() sofia/external/0225490317 SOFIA INIT<br>
&gt; 2009-02-05 14:04:52 [DEBUG] sofia_glue.c:566 sofia_glue_ext_address_lookup() STUN Success [89.77.89.244]:[50863]<br>
&gt; 2009-02-05 14:04:52 [DEBUG] mod_sofia.c:111 sofia_on_init() (sofia/external/0225490317) State Change CS_INIT -&gt; CS_ROUTING<br>
&gt; 2009-02-05 14:04:52 [DEBUG] switch_core_session.c:807 switch_core_session_signal_state_change() Send signal sofia/external/0225490317 [BREAK]<br>
&gt; 2009-02-05 14:04:52 [DEBUG] switch_core_state_machine.c:444 switch_core_session_run() (sofia/external/0225490317) State INIT going to sleep<br>
&gt; 2009-02-05 14:04:52 [DEBUG] switch_core_state_machine.c:379 switch_core_session_run() (sofia/external/0225490317) Running State Change CS_ROUTING<br>
&gt; 2009-02-05 14:04:52 [DEBUG] switch_core_state_machine.c:447 switch_core_session_run() (sofia/external/0225490317) State ROUTING<br>
&gt; 2009-02-05 14:04:52 [DEBUG] mod_sofia.c:130 sofia_on_routing() sofia/external/0225490317 SOFIA ROUTING<br>
&gt; 2009-02-05 14:04:52 [DEBUG] switch_ivr_originate.c:58 originate_on_routing() (sofia/external/0225490317) State Change CS_ROUTING -&gt; CS_CONSUME_MEDIA<br>
&gt; 2009-02-05 14:04:52 [DEBUG] switch_core_session.c:807 switch_core_session_signal_state_change() Send signal sofia/external/0225490317 [BREAK]<br>
&gt; 2009-02-05 14:04:52 [DEBUG] switch_core_state_machine.c:447 switch_core_session_run() (sofia/external/0225490317) State ROUTING going to sleep<br>
&gt; 2009-02-05 14:04:52 [DEBUG] switch_core_state_machine.c:379 switch_core_session_run() (sofia/external/0225490317) Running State Change CS_CONSUME_MEDIA<br>
&gt; 2009-02-05 14:04:52 [DEBUG] switch_core_state_machine.c:466 switch_core_session_run() (sofia/external/0225490317) State CONSUME_MEDIA<br>
&gt; 2009-02-05 14:04:52 [DEBUG] sofia.c:2542 sofia_handle_sip_i_state() Channel sofia/external/0225490317 entering state [calling]<br>
&gt; send 1117 bytes to udp/[194.9.25.21]:5060 at 13:04:52.572008:<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp;INVITE <a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a> SIP/2.0<br>
&gt; &nbsp; &nbsp;Via: SIP/2.0/UDP 83.13.98.165:5080;rport;branch=z9hG4bKyvKBDBpvBQe2p<br>
&gt; &nbsp; &nbsp;Max-Forwards: 69<br>
&gt; &nbsp; &nbsp;From: &quot;Extension 1008&quot; &lt;<a href="mailto:sip%3Afixed0248b@sip.halonet.pl">sip:fixed0248b@sip.halonet.pl</a>;transport=udp&gt;;tag=FZp353yettFNN<br>
&gt; &nbsp; &nbsp;To: &lt;<a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a>&gt;<br>
&gt; &nbsp; &nbsp;Call-ID: 6b05cee4-6e28-122c-8396-000c7680c408<br>
&gt; &nbsp; &nbsp;CSeq: 110801210 INVITE<br>
&gt; &nbsp; &nbsp;Contact: &lt;sip:fixed0248b@83.13.98.165:5080;transport=udp&gt;<br>
&gt; &nbsp; &nbsp;User-Agent: FreeSWITCH-mod_sofia/1.0.2-wyeksportowane<br>
&gt; &nbsp; &nbsp;Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO<br>
&gt; &nbsp; &nbsp;Supported: timer, precondition, path, replaces<br>
&gt; &nbsp; &nbsp;Allow-Events: talk, refer<br>
&gt; &nbsp; &nbsp;Min-SE: 120<br>
&gt; &nbsp; &nbsp;Content-Type: application/sdp<br>
&gt; &nbsp; &nbsp;Content-Disposition: session<br>
&gt; &nbsp; &nbsp;Content-Length: 309<br>
&gt; &nbsp; &nbsp;Remote-Party-ID: &quot;Extension 1008&quot; &lt;<a href="mailto:sip%3A1000@sip.halonet.pl">sip:1000@sip.halonet.pl</a>&gt;;screen=yes;privacy=off<br>
&gt;<br>
&gt; &nbsp; &nbsp;v=0<br>
&gt; &nbsp; &nbsp;o=FreeSWITCH 3996368035436745512 7588776177330183331 IN IP4 89.77.89.244<br>
&gt; &nbsp; &nbsp;s=FreeSWITCH<br>
&gt; &nbsp; &nbsp;c=IN IP4 89.77.89.244<br>
&gt; &nbsp; &nbsp;t=0 0<br>
&gt; &nbsp; &nbsp;m=audio 50863 RTP/AVP 0 8 3 101 13<br>
&gt; &nbsp; &nbsp;a=rtpmap:0 PCMU/8000<br>
&gt; &nbsp; &nbsp;a=rtpmap:8 PCMA/8000<br>
&gt; &nbsp; &nbsp;a=rtpmap:3 GSM/8000<br>
&gt; &nbsp; &nbsp;a=rtpmap:101 telephone-event/8000<br>
&gt; &nbsp; &nbsp;a=fmtp:101 0-16<br>
&gt; &nbsp; &nbsp;a=rtpmap:13 CN/8000<br>
&gt; &nbsp; &nbsp;a=ptime:20<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; recv 760 bytes from udp/[194.9.25.21]:5060 at 13:04:52.993246:<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp;SIP/2.0 407 Proxy Authentication Required<br>
&gt; &nbsp; &nbsp;Via: SIP/2.0/UDP 83.13.98.165:5080;rport=5080;branch=z9hG4bKyvKBDBpvBQe2p;received=89.77.89.244<br>
&gt; &nbsp; &nbsp;From: &quot;Extension 1008&quot; &lt;<a href="mailto:sip%3Afixed0248b@sip.halonet.pl">sip:fixed0248b@sip.halonet.pl</a>;transport=udp&gt;;tag=FZp353yettFNN<br>
&gt; &nbsp; &nbsp;To: &lt;<a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a>&gt;;tag=03bd8e75ec97c9ee65c772e401792a5a.5fa3<br>
&gt; &nbsp; &nbsp;Call-ID: 6b05cee4-6e28-122c-8396-000c7680c408<br>
&gt; &nbsp; &nbsp;CSeq: 110801210 INVITE<br>
&gt; &nbsp; &nbsp;Proxy-Authenticate: Digest realm=&quot;<a href="http://sip.halonet.pl" target="_blank">sip.halonet.pl</a>&quot;, nonce=&quot;498ae51439454939d240f51ab9455e2c8505c7aa&quot;, qop=&quot;auth&quot;<br>
&gt; &nbsp; &nbsp;Server: Sip EXpress router (2.0.0-rc1 (i386/linux))<br>
&gt; &nbsp; &nbsp;Content-Length: 0<br>
&gt; &nbsp; &nbsp;Warning: 392 <a href="http://194.9.25.21:5060" target="_blank">194.9.25.21:5060</a> &quot;Noisy feedback tells: &nbsp;pid=22400 req_src_ip=89.77.89.244 req_src_port=50866 in_uri=<a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a> out_uri=<a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a> via_cnt==1&quot;<br>

&gt;<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; send 387 bytes to udp/[194.9.25.21]:5060 at 13:04:52.993616:<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp;ACK <a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a> SIP/2.0<br>
&gt; &nbsp; &nbsp;Via: SIP/2.0/UDP 83.13.98.165:5080;rport;branch=z9hG4bKyvKBDBpvBQe2p<br>
&gt; &nbsp; &nbsp;Max-Forwards: 69<br>
&gt; &nbsp; &nbsp;From: &quot;Extension 1008&quot; &lt;<a href="mailto:sip%3Afixed0248b@sip.halonet.pl">sip:fixed0248b@sip.halonet.pl</a>;transport=udp&gt;;tag=FZp353yettFNN<br>
&gt; &nbsp; &nbsp;To: &lt;<a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a>&gt;;tag=03bd8e75ec97c9ee65c772e401792a5a.5fa3<br>
&gt; &nbsp; &nbsp;Call-ID: 6b05cee4-6e28-122c-8396-000c7680c408<br>
&gt; &nbsp; &nbsp;CSeq: 110801210 ACK<br>
&gt; &nbsp; &nbsp;Content-Length: 0<br>
&gt;<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; send 1409 bytes to udp/[194.9.25.21]:5060 at 13:04:52.994530:<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp;INVITE <a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a> SIP/2.0<br>
&gt; &nbsp; &nbsp;Via: SIP/2.0/UDP 83.13.98.165:5080;rport;branch=z9hG4bKZ5c4e66Z8Z4mj<br>
&gt; &nbsp; &nbsp;Max-Forwards: 69<br>
&gt; &nbsp; &nbsp;From: &quot;Extension 1008&quot; &lt;<a href="mailto:sip%3Afixed0248b@sip.halonet.pl">sip:fixed0248b@sip.halonet.pl</a>;transport=udp&gt;;tag=FZp353yettFNN<br>
&gt; &nbsp; &nbsp;To: &lt;<a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a>&gt;<br>
&gt; &nbsp; &nbsp;Call-ID: 6b05cee4-6e28-122c-8396-000c7680c408<br>
&gt; &nbsp; &nbsp;CSeq: 110801211 INVITE<br>
&gt; &nbsp; &nbsp;Contact: &lt;sip:fixed0248b@83.13.98.165:5080;transport=udp&gt;<br>
&gt; &nbsp; &nbsp;Expires: 600<br>
&gt; &nbsp; &nbsp;User-Agent: FreeSWITCH-mod_sofia/1.0.2-wyeksportowane<br>
&gt; &nbsp; &nbsp;Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO<br>
&gt; &nbsp; &nbsp;Supported: timer, precondition, path, replaces<br>
&gt; &nbsp; &nbsp;Allow-Events: talk, refer<br>
&gt; &nbsp; &nbsp;Proxy-Authorization: Digest username=&quot;fixed0248b&quot;, realm=&quot;<a href="http://sip.halonet.pl" target="_blank">sip.halonet.pl</a>&quot;, nonce=&quot;498ae51439454939d240f51ab9455e2c8505c7aa&quot;, cnonce=&quot;a1oY524oEiyWgwAMdoDECA&quot;, algorithm=MD5, uri=&quot;<a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a>&quot;, response=&quot;f05fad749d4ff6d5a75d61e3283c3afa&quot;, qop=auth, nc=00000001<br>

&gt; &nbsp; &nbsp;Min-SE: 120<br>
&gt; &nbsp; &nbsp;Content-Type: application/sdp<br>
&gt; &nbsp; &nbsp;Content-Disposition: session<br>
&gt; &nbsp; &nbsp;Content-Length: 309<br>
&gt; &nbsp; &nbsp;Remote-Party-ID: &quot;Extension 1008&quot; &lt;<a href="mailto:sip%3A1000@sip.halonet.pl">sip:1000@sip.halonet.pl</a>&gt;;screen=yes;privacy=off<br>
&gt;<br>
&gt; &nbsp; &nbsp;v=0<br>
&gt; &nbsp; &nbsp;o=FreeSWITCH 3996368035436745512 7588776177330183331 IN IP4 89.77.89.244<br>
&gt; &nbsp; &nbsp;s=FreeSWITCH<br>
&gt; &nbsp; &nbsp;c=IN IP4 89.77.89.244<br>
&gt; &nbsp; &nbsp;t=0 0<br>
&gt; &nbsp; &nbsp;m=audio 50863 RTP/AVP 0 8 3 101 13<br>
&gt; &nbsp; &nbsp;a=rtpmap:0 PCMU/8000<br>
&gt; &nbsp; &nbsp;a=rtpmap:8 PCMA/8000<br>
&gt; &nbsp; &nbsp;a=rtpmap:3 GSM/8000<br>
&gt; &nbsp; &nbsp;a=rtpmap:101 telephone-event/8000<br>
&gt; &nbsp; &nbsp;a=fmtp:101 0-16<br>
&gt; &nbsp; &nbsp;a=rtpmap:13 CN/8000<br>
&gt; &nbsp; &nbsp;a=ptime:20<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; 2009-02-05 14:04:52 [DEBUG] sofia.c:2542 sofia_handle_sip_i_state() Channel sofia/external/0225490317 entering state [calling]<br>
&gt; recv 618 bytes from udp/[194.9.25.21]:5060 at 13:04:53.349700:<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp;SIP/2.0 100 trying -- your call is important to us<br>
&gt; &nbsp; &nbsp;Via: SIP/2.0/UDP 83.13.98.165:5080;rport=5080;branch=z9hG4bKZ5c4e66Z8Z4mj;received=89.77.89.244<br>
&gt; &nbsp; &nbsp;From: &quot;Extension 1008&quot; &lt;<a href="mailto:sip%3Afixed0248b@sip.halonet.pl">sip:fixed0248b@sip.halonet.pl</a>;transport=udp&gt;;tag=FZp353yettFNN<br>
&gt; &nbsp; &nbsp;To: &lt;<a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a>&gt;<br>
&gt; &nbsp; &nbsp;Call-ID: 6b05cee4-6e28-122c-8396-000c7680c408<br>
&gt; &nbsp; &nbsp;CSeq: 110801211 INVITE<br>
&gt; &nbsp; &nbsp;Server: Sip EXpress router (2.0.0-rc1 (i386/linux))<br>
&gt; &nbsp; &nbsp;Content-Length: 0<br>
&gt; &nbsp; &nbsp;Warning: 392 <a href="http://194.9.25.21:5060" target="_blank">194.9.25.21:5060</a> &quot;Noisy feedback tells: &nbsp;pid=22332 req_src_ip=89.77.89.244 req_src_port=50866 in_uri=<a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a> out_uri=<a href="http://sip:0225490317@217.11.128.50:5060" target="_blank">sip:0225490317@217.11.128.50:5060</a> via_cnt==1&quot;<br>

&gt;<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; recv 469 bytes from udp/[194.9.25.21]:5060 at 13:04:53.861812:<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp;SIP/2.0 500 Internal Server Error<br>
&gt; &nbsp; &nbsp;Via: SIP/2.0/UDP 83.13.98.165:5080;received=89.77.89.244;rport=5080;branch=z9hG4bKZ5c4e66Z8Z4mj<br>
&gt; &nbsp; &nbsp;From: &quot;Extension 1008&quot; &lt;<a href="mailto:sip%3Afixed0248b@sip.halonet.pl">sip:fixed0248b@sip.halonet.pl</a>;transport=udp&gt;;tag=FZp353yettFNN<br>
&gt; &nbsp; &nbsp;To: &lt;<a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a>&gt;;tag=4961D2C4-DA7<br>
&gt; &nbsp; &nbsp;Date: Thu, 05 Feb 2009 13:04:39 GMT<br>
&gt; &nbsp; &nbsp;Call-ID: 6b05cee4-6e28-122c-8396-000c7680c408<br>
&gt; &nbsp; &nbsp;Server: Cisco-SIPGateway/IOS-12.x<br>
&gt; &nbsp; &nbsp;CSeq: 110801211 INVITE<br>
&gt; &nbsp; &nbsp;Allow-Events: telephone-event<br>
&gt; &nbsp; &nbsp;Content-Length: 0<br>
&gt;<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; send 362 bytes to udp/[194.9.25.21]:5060 at 13:04:53.862199:<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp;ACK <a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a> SIP/2.0<br>
&gt; &nbsp; &nbsp;Via: SIP/2.0/UDP 83.13.98.165:5080;rport;branch=z9hG4bKZ5c4e66Z8Z4mj<br>
&gt; &nbsp; &nbsp;Max-Forwards: 69<br>
&gt; &nbsp; &nbsp;From: &quot;Extension 1008&quot; &lt;<a href="mailto:sip%3Afixed0248b@sip.halonet.pl">sip:fixed0248b@sip.halonet.pl</a>;transport=udp&gt;;tag=FZp353yettFNN<br>
&gt; &nbsp; &nbsp;To: &lt;<a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a>&gt;;tag=4961D2C4-DA7<br>
&gt; &nbsp; &nbsp;Call-ID: 6b05cee4-6e28-122c-8396-000c7680c408<br>
&gt; &nbsp; &nbsp;CSeq: 110801211 ACK<br>
&gt; &nbsp; &nbsp;Content-Length: 0<br>
&gt;<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; 2009-02-05 14:04:53 [DEBUG] sofia.c:2542 sofia_handle_sip_i_state() Channel sofia/external/0225490317 entering state [terminated]<br>
&gt; 2009-02-05 14:04:53 [NOTICE] sofia.c:3090 sofia_handle_sip_i_state() Hangup sofia/external/0225490317 [CS_CONSUME_MEDIA] [NORMAL_TEMPORARY_FAILURE]<br>
&gt; 2009-02-05 14:04:53 [DEBUG] switch_channel.c:1494 switch_channel_perform_hangup() Send signal sofia/external/0225490317 [KILL]<br>
&gt; 2009-02-05 14:04:53 [DEBUG] switch_core_session.c:807 switch_core_session_signal_state_change() Send signal sofia/external/0225490317 [BREAK]<br>
&gt; 2009-02-05 14:04:53 [DEBUG] switch_core_state_machine.c:466 switch_core_session_run() (sofia/external/0225490317) State CONSUME_MEDIA going to sleep<br>
&gt; 2009-02-05 14:04:53 [DEBUG] switch_core_state_machine.c:379 switch_core_session_run() (sofia/external/0225490317) Running State Change CS_HANGUP<br>
&gt; 2009-02-05 14:04:53 [DEBUG] switch_core_state_machine.c:410 switch_core_session_run() (sofia/external/0225490317) State HANGUP<br>
&gt; 2009-02-05 14:04:53 [DEBUG] mod_sofia.c:253 sofia_on_hangup() sofia/external/0225490317 Overriding SIP cause 503 with 500 from the other leg<br>
&gt; 2009-02-05 14:04:53 [DEBUG] mod_sofia.c:287 sofia_on_hangup() Channel sofia/external/0225490317 hanging up, cause: NORMAL_TEMPORARY_FAILURE<br>
&gt; 2009-02-05 14:04:53 [DEBUG] switch_core_state_machine.c:46 switch_core_standard_on_hangup() sofia/external/0225490317 Standard HANGUP, cause: NORMAL_TEMPORARY_FAILURE<br>
&gt; 2009-02-05 14:04:53 [DEBUG] switch_core_state_machine.c:410 switch_core_session_run() (sofia/external/0225490317) State HANGUP going to sleep<br>
&gt; 2009-02-05 14:04:53 [DEBUG] switch_core_session.c:939 switch_core_session_thread() Session 16 (sofia/external/0225490317) Locked, Waiting on external entities<br>
&gt; 2009-02-05 14:04:53 [DEBUG] switch_ivr_originate.c:1695 switch_ivr_originate() Originate Resulted in Error Cause: 41 [NORMAL_TEMPORARY_FAILURE]<br>
&gt; 2009-02-05 14:04:53 [DEBUG] switch_channel.c:177 switch_channel_audio_sync() sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> receive message [AUDIO_SYNC]<br>

&gt; 2009-02-05 14:04:53 [NOTICE] switch_core_session.c:957 switch_core_session_thread() Session 16 (sofia/external/0225490317) Ended<br>
&gt; 2009-02-05 14:04:53 [INFO] mod_dptools.c:1909 audio_bridge_function() Originate Failed. &nbsp;Cause: NORMAL_TEMPORARY_FAILURE<br>
&gt; 2009-02-05 14:04:53 [NOTICE] mod_dptools.c:1936 audio_bridge_function() Hangup sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> [CS_EXECUTE] [NORMAL_TEMPORARY_FAILURE]<br>

&gt; 2009-02-05 14:04:53 [NOTICE] switch_core_session.c:959 switch_core_session_thread() Close Channel sofia/external/0225490317 [CS_HANGUP]<br>
&gt; 2009-02-05 14:04:53 [DEBUG] switch_channel.c:1494 switch_channel_perform_hangup() Send signal sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> [KILL]<br>
&gt; 2009-02-05 14:04:53 [DEBUG] switch_core_session.c:807 switch_core_session_signal_state_change() Send signal sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> [BREAK]<br>

&gt; 2009-02-05 14:04:53 [DEBUG] switch_core_state_machine.c:454 switch_core_session_run() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) State EXECUTE going to sleep<br>

&gt; 2009-02-05 14:04:53 [DEBUG] switch_core_state_machine.c:379 switch_core_session_run() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) Running State Change CS_HANGUP<br>

&gt; 2009-02-05 14:04:53 [DEBUG] switch_core_state_machine.c:410 switch_core_session_run() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) State HANGUP<br>
&gt; 2009-02-05 14:04:53 [DEBUG] mod_sofia.c:253 sofia_on_hangup() sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> Overriding SIP cause 503 with 500 from the other leg<br>

&gt; 2009-02-05 14:04:53 [DEBUG] mod_sofia.c:287 sofia_on_hangup() Channel sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> hanging up, cause: NORMAL_TEMPORARY_FAILURE<br>

&gt; 2009-02-05 14:04:53 [DEBUG] mod_sofia.c:344 sofia_on_hangup() Sending BYE to sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a><br>
&gt; send 648 bytes to udp/[192.168.1.126]:5070 at 13:04:53.868506:<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp;BYE <a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> SIP/2.0<br>
&gt; &nbsp; &nbsp;Via: SIP/2.0/UDP 192.168.1.122;rport;branch=z9hG4bKH893yar8p7X4j<br>
&gt; &nbsp; &nbsp;Max-Forwards: 70<br>
&gt; &nbsp; &nbsp;From: &quot;FreeSWITCH&quot; &lt;<a href="mailto:sip%3A1000@192.168.1.122">sip:1000@192.168.1.122</a>&gt;;tag=9vpFm3tBc8gSe<br>
&gt; &nbsp; &nbsp;To: &lt;<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>&gt;;tag=2111843199<br>
&gt; &nbsp; &nbsp;Call-ID: 68736fc7-6e28-122c-8396-000c7680c408<br>
&gt; &nbsp; &nbsp;CSeq: 110801209 BYE<br>
&gt; &nbsp; &nbsp;Contact: &lt;<a href="http://sip:mod_sofia@192.168.1.122:5060" target="_blank">sip:mod_sofia@192.168.1.122:5060</a>&gt;<br>
&gt; &nbsp; &nbsp;User-Agent: FreeSWITCH-mod_sofia/1.0.2-wyeksportowane<br>
&gt; &nbsp; &nbsp;Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH<br>
&gt; &nbsp; &nbsp;Supported: timer, precondition, path, replaces<br>
&gt; &nbsp; &nbsp;Reason: Q.850;cause=41;text=&quot;NORMAL_TEMPORARY_FAILURE&quot;<br>
&gt; &nbsp; &nbsp;Content-Length: 0<br>
&gt;<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; 2009-02-05 14:04:53 [DEBUG] switch_core_state_machine.c:46 switch_core_standard_on_hangup() sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> Standard HANGUP, cause: NORMAL_TEMPORARY_FAILURE<br>

&gt; 2009-02-05 14:04:53 [DEBUG] switch_core_state_machine.c:410 switch_core_session_run() (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) State HANGUP going to sleep<br>

&gt; 2009-02-05 14:04:53 [DEBUG] switch_core_session.c:939 switch_core_session_thread() Session 15 (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) Locked, Waiting on external entities<br>

&gt; 2009-02-05 14:04:53 [NOTICE] switch_core_session.c:957 switch_core_session_thread() Session 15 (sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>) Ended<br>
&gt; 2009-02-05 14:04:53 [NOTICE] switch_core_session.c:959 switch_core_session_thread() Close Channel sofia/internal/<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a> [CS_HANGUP]<br>

&gt; recv 354 bytes from udp/[192.168.1.126]:5070 at 13:04:53.882344:<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp;SIP/2.0 200 Ok<br>
&gt; &nbsp; &nbsp;Via: SIP/2.0/UDP 192.168.1.122;rport;branch=z9hG4bKH893yar8p7X4j<br>
&gt; &nbsp; &nbsp;From: &quot;FreeSWITCH&quot; &lt;<a href="mailto:sip%3A1000@192.168.1.122">sip:1000@192.168.1.122</a>&gt;;tag=9vpFm3tBc8gSe<br>
&gt; &nbsp; &nbsp;To: &lt;<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>&gt;;tag=2111843199<br>
&gt; &nbsp; &nbsp;Contact: &lt;<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>&gt;<br>
&gt; &nbsp; &nbsp;Call-ID: 68736fc7-6e28-122c-8396-000c7680c408<br>
&gt; &nbsp; &nbsp;CSeq: 110801209 BYE<br>
&gt; &nbsp; &nbsp;Server: X-Lite release 1105d<br>
&gt; &nbsp; &nbsp;Content-Length: 0<br>
&gt;<br>
&gt; &nbsp; &nbsp;------------------------------------------------------------------------<br>
Dnia 04-02-2009, śro o godzinie 10:22 -0600, Anthony Minessale pisze:<br>
<div><div></div><div class="Wj3C7c">&gt; can you press f8 for debug and try that apiExecute and post the<br>
&gt; results?<br>
&gt;<br>
&gt; On Wed, Feb 4, 2009 at 8:46 AM, Jacek Sokulski<br>
&gt; &lt;jsokulski@dotsystems.pl&gt; wrote:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Thanks Anthony,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; the js snippets are very instructive.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; A couple of points:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; 1. The code with apiExecute does not work (local phone is<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; connected, but<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; after picking up it hungs up immediately), other examples are<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; working<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; fine.<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; 2. It does not show how initiate external call without<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; existing session.<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; 3. How can one pass the call through dialplan?<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Jacek<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; PS.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; we got the code probable from wiki or from this mialing list.<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Dnia 04-02-2009, śro o godzinie 08:09 -0600, Anthony Minessale<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; pisze:<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; Where did you learn how to use js this way?<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; session.originate is being misused here and is depricated<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; and may be<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; removed.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; the first arg to session.originate is either undefined or a<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; *different* session (the a leg)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; session1 = new Session();<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; session1.originate(undefined,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &quot;{ignore_early_media=true}user/<a href="mailto:1008@192.168.1.122">1008@192.168.1.122</a>&quot;);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; session1.setVariable(&quot;effective_caller_id_number&quot;,&quot;fixed0248b&quot;);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; //once you have session1 when you originate session2 you<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; pass session1<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; as the arg<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; // the effective_caller_id is taken from session1<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; session2 = new Session();<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; session2.originate(session1,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &quot;sofia/gateway/halonet/0225490317&quot;);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; Anyway this whole code is depricated in favor of this:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; session1 = new<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; Session(&quot;{ignore_early_media=true}user/<a href="mailto:1008@192.168.1.122">1008@192.168.1.122</a>&quot;);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; if (session1.ready()) {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; session1.setVariable(&quot;effective_caller_id_number&quot;,&quot;fixed0248b&quot;);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; session2 = new Session(&quot;sofia/gateway/halonet/0225490317&quot;,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; session1);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; }<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; and could be further refactored down to this:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; session1 = new<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; Session(&quot;{ignore_early_media=true}user/<a href="mailto:1008@192.168.1.122">1008@192.168.1.122</a>&quot;);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; if (session1.ready()) {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; session1.setVariable(&quot;effective_caller_id_number&quot;,&quot;fixed0248b&quot;);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; session1.execute(&quot;bridge&quot;,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &quot;sofia/gateway/halonet/0225490317&quot;);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; }<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; or down to this one line of code that will setup the call<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; detached<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; from the script and exit.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; var result = apiExecute(&quot;originate&quot;,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &quot;{effective_caller_id_number=fixed0248b,origination_caller_id_number=1000,ignore_early_media=true}user/<a href="mailto:1008@192.168.1.122">1008@192.168.1.122</a> bridge:sofia/gateway/halonet/0225490317 inline&quot;);<br>

&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; if you dont care about the result and want to exit even<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; before the<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; call is completed.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; var result = apiExecute(&quot;bgapi&quot;, &quot;originate<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; {effective_caller_id_number=fixed0248b,origination_caller_id_number=1000,ignore_early_media=true}user/<a href="mailto:1008@192.168.1.122">1008@192.168.1.122</a> bridge:sofia/gateway/halonet/0225490317 inline&quot;);<br>

&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; On Wed, Feb 4, 2009 at 2:51 AM, Jacek Sokulski<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &lt;jsokulski@dotsystems.pl&gt; wrote:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; We have tried setting both<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; effective_caller_id_number and<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; origination_caller_id_number:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; session1.originate(session1,&quot;{origination_caller_id_number=fixed0248b}sofia/gateway/halonet/0225490317&quot;,15);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;but the problem still exists. The solution we have<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; found for<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; the case<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; when we originate two calls, local and external, is<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; as follow:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; session1 = new Session();<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; session1.originate(session1,&quot;user/<a href="mailto:1003@192.168.1.122">1003@192.168.1.122</a>&quot;,15);//local<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; if(session1.ready()) {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;session1.execute(&quot;execute_extension&quot;,&quot;00930691688627 XML<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; default&quot;);//external<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; so the external call goes through the dialplan.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; It does not work if both calls are external. One<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; possible<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; solution could be<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; to pass the originating call through dialplan<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; (loopback?) but<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; we have not managed<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; to figure out how to do it.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; Thanks<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; Jacek<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; Dnia 03-02-2009, wto o godzinie 14:31 -0300, Nicolas<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Brenner<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; pisze:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; Oops! Well, fortunately I don&#39;t use that voip<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; provider<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; anymore (nor the script).<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; Thanks Brian.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; Nicolas<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; On Tue, Feb 3, 2009 at 2:25 PM, Brian West<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>&gt; wrote:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &gt; YOU should NEVER use this method or call<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; setCallerData at<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; all &nbsp;you<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &gt; should use the correct methods to override the<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; callerid.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &gt; If its a B-Leg born from an A-Leg you use these<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; on the on<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; the A-Leg:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://wiki.freeswitch.org/wiki/Channel_Variables#effective_caller_id_name" target="_blank">http://wiki.freeswitch.org/wiki/Channel_Variables#effective_caller_id_name</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://wiki.freeswitch.org/wiki/Channel_Variables#effective_caller_id_number" target="_blank">http://wiki.freeswitch.org/wiki/Channel_Variables#effective_caller_id_number</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &gt; If you&#39;re originating you use this:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://wiki.freeswitch.org/wiki/Channel_Variables#origination_caller_id_name" target="_blank">http://wiki.freeswitch.org/wiki/Channel_Variables#origination_caller_id_name</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://wiki.freeswitch.org/wiki/Channel_Variables#origination_caller_id_number" target="_blank">http://wiki.freeswitch.org/wiki/Channel_Variables#origination_caller_id_number</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &gt; /b<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; _______________________________________________<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; Freeswitch-users mailing list<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; _______________________________________________<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; Freeswitch-users mailing list<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; --<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; Anthony Minessale II<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; AIM: anthm<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; FreeSWITCH Developer Conference<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; pstn:213-799-1400<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; _______________________________________________<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; Freeswitch-users mailing list<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; _______________________________________________<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Freeswitch-users mailing list<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Anthony Minessale II<br>
&gt;<br>
&gt; FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
&gt; ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
&gt;<br>
&gt; AIM: anthm<br>
&gt; <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
&gt; GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
&gt; IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
&gt;<br>
&gt; FreeSWITCH Developer Conference<br>
&gt; <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
&gt; <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
&gt; <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
&gt; pstn:213-799-1400<br>
&gt; _______________________________________________<br>
&gt; Freeswitch-users mailing list<br>
&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <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><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>