Oddly the provider returns <br><br>SIP/2.0 500 Internal Server Error<br><br>to your invite. 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"><jsokulski@dotsystems.pl></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("bgapi", "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");<br>
</div>> /:<br>
> 2009-02-05 14:04:48 [DEBUG] switch_ivr_originate.c:777 switch_ivr_originate() variable string 0 = [effective_caller_id_number=fixed0248b]<br>
> 2009-02-05 14:04:48 [DEBUG] switch_ivr_originate.c:777 switch_ivr_originate() variable string 1 = [origination_caller_id_number=1000]<br>
> 2009-02-05 14:04:48 [DEBUG] switch_ivr_originate.c:777 switch_ivr_originate() variable string 2 = [ignore_early_media=true]<br>
> 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>
> 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>
> 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 -> CS_INIT<br>
> 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>
> 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>
> 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>
> 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>
> send 1196 bytes to udp/[192.168.1.126]:5070 at 13:04:48.127004:<br>
> ------------------------------------------------------------------------<br>
> 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>
> Via: SIP/2.0/UDP 192.168.1.122;rport;branch=z9hG4bKFpQjUmp1vNHZB<br>
> Max-Forwards: 70<br>
> From: "FreeSWITCH" <<a href="mailto:sip%3A1000@192.168.1.122">sip:1000@192.168.1.122</a>>;tag=9vpFm3tBc8gSe<br>
> To: <<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>><br>
> Call-ID: 68736fc7-6e28-122c-8396-000c7680c408<br>
> CSeq: 110801208 INVITE<br>
> Contact: <<a href="http://sip:mod_sofia@192.168.1.122:5060" target="_blank">sip:mod_sofia@192.168.1.122:5060</a>><br>
> User-Agent: FreeSWITCH-mod_sofia/1.0.2-wyeksportowane<br>
> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH<br>
> Supported: timer, precondition, path, replaces<br>
> Allow-Events: talk, presence, dialog, call-info, sla, include-session-description, presence.winfo, message-summary, refer<br>
> Min-SE: 120<br>
> Content-Type: application/sdp<br>
> Content-Disposition: session<br>
> Content-Length: 335<br>
> Remote-Party-ID: "FreeSWITCH" <<a href="mailto:sip%3A1000@192.168.1.122">sip:1000@192.168.1.122</a>>;screen=yes;privacy=off<br>
><br>
> v=0<br>
> o=FreeSWITCH 1927164999227225404 3276738624485570081 IN IP4 192.168.1.122<br>
> s=FreeSWITCH<br>
> c=IN IP4 192.168.1.122<br>
> t=0 0<br>
> m=audio 27044 RTP/AVP 9 0 8 3 101 13<br>
> a=rtpmap:9 G722/8000<br>
> a=rtpmap:0 PCMU/8000<br>
> a=rtpmap:8 PCMA/8000<br>
> a=rtpmap:3 GSM/8000<br>
> a=rtpmap:101 telephone-event/8000<br>
> a=fmtp:101 0-16<br>
> a=rtpmap:13 CN/8000<br>
> a=ptime:20<br>
> ------------------------------------------------------------------------<br>
> 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 -> CS_ROUTING<br>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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 -> CS_CONSUME_MEDIA<br>
> 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>
> 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>
> 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>
> 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>
> recv 361 bytes from udp/[192.168.1.126]:5070 at 13:04:48.130745:<br>
> ------------------------------------------------------------------------<br>
> SIP/2.0 100 Trying<br>
> Via: SIP/2.0/UDP 192.168.1.122;rport;branch=z9hG4bKFpQjUmp1vNHZB<br>
> From: "FreeSWITCH" <<a href="mailto:sip%3A1000@192.168.1.122">sip:1000@192.168.1.122</a>>;tag=9vpFm3tBc8gSe<br>
> To: <<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>>;tag=2111843199<br>
> Contact: <<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>><br>
> Call-ID: 68736fc7-6e28-122c-8396-000c7680c408<br>
> CSeq: 110801208 INVITE<br>
> Server: X-Lite release 1105d<br>
> Content-Length: 0<br>
><br>
> ------------------------------------------------------------------------<br>
> recv 362 bytes from udp/[192.168.1.126]:5070 at 13:04:48.181571:<br>
> ------------------------------------------------------------------------<br>
> SIP/2.0 180 Ringing<br>
> Via: SIP/2.0/UDP 192.168.1.122;rport;branch=z9hG4bKFpQjUmp1vNHZB<br>
> From: "FreeSWITCH" <<a href="mailto:sip%3A1000@192.168.1.122">sip:1000@192.168.1.122</a>>;tag=9vpFm3tBc8gSe<br>
> To: <<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>>;tag=2111843199<br>
> Contact: <<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>><br>
> Call-ID: 68736fc7-6e28-122c-8396-000c7680c408<br>
> CSeq: 110801208 INVITE<br>
> Server: X-Lite release 1105d<br>
> Content-Length: 0<br>
><br>
> ------------------------------------------------------------------------<br>
> 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>
> 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>
> recv 678 bytes from udp/[192.168.1.126]:5070 at 13:04:51.914714:<br>
> ------------------------------------------------------------------------<br>
> SIP/2.0 200 Ok<br>
> Via: SIP/2.0/UDP 192.168.1.122;rport;branch=z9hG4bKFpQjUmp1vNHZB<br>
> From: "FreeSWITCH" <<a href="mailto:sip%3A1000@192.168.1.122">sip:1000@192.168.1.122</a>>;tag=9vpFm3tBc8gSe<br>
> To: <<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>>;tag=2111843199<br>
> Contact: <<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>><br>
> Call-ID: 68736fc7-6e28-122c-8396-000c7680c408<br>
> CSeq: 110801208 INVITE<br>
> Content-Type: application/sdp<br>
> Server: X-Lite release 1105d<br>
> Content-Length: 288<br>
><br>
> v=0<br>
> o=1008 1183460117 1183463903 IN IP4 192.168.1.126<br>
> s=X-Lite<br>
> c=IN IP4 192.168.1.126<br>
> t=0 0<br>
> m=audio 9000 RTP/AVP 0 8 98 97 101<br>
> a=rtpmap:0 pcmu/8000<br>
> a=rtpmap:8 pcma/8000<br>
> a=rtpmap:98 iLBC/8000<br>
> a=rtpmap:97 speex/8000<br>
> a=rtpmap:101 telephone-event/8000<br>
> a=fmtp:101 0-15<br>
> a=sendrecv<br>
> ------------------------------------------------------------------------<br>
> send 372 bytes to udp/[192.168.1.126]:5070 at 13:04:51.915303:<br>
> ------------------------------------------------------------------------<br>
> 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>
> Via: SIP/2.0/UDP 192.168.1.122;rport;branch=z9hG4bKgZgBXF74Sy7HQ<br>
> Max-Forwards: 70<br>
> From: "FreeSWITCH" <<a href="mailto:sip%3A1000@192.168.1.122">sip:1000@192.168.1.122</a>>;tag=9vpFm3tBc8gSe<br>
> To: <<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>>;tag=2111843199<br>
> Call-ID: 68736fc7-6e28-122c-8396-000c7680c408<br>
> CSeq: 110801208 ACK<br>
> Contact: <<a href="http://sip:mod_sofia@192.168.1.122:5060" target="_blank">sip:mod_sofia@192.168.1.122:5060</a>><br>
> Content-Length: 0<br>
><br>
> ------------------------------------------------------------------------<br>
> 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>
> 2009-02-05 14:04:51 [DEBUG] sofia.c:2546 sofia_handle_sip_i_state() Remote SDP:<br>
> v=0<br>
> o=1008 1183460117 1183463903 IN IP4 192.168.1.126<br>
> s=X-Lite<br>
> c=IN IP4 192.168.1.126<br>
> t=0 0<br>
> m=audio 9000 RTP/AVP 0 8 98 97 101<br>
> a=rtpmap:0 pcmu/8000<br>
> a=rtpmap:8 pcma/8000<br>
> a=rtpmap:98 iLBC/8000<br>
> a=rtpmap:97 speex/8000<br>
> a=rtpmap:101 telephone-event/8000<br>
> a=fmtp:101 0-15<br>
><br>
> 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>
> 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>
> 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>
> 2009-02-05 14:04:51 [DEBUG] sofia_glue.c:2473 sofia_glue_negotiate_sdp() Set 2833 dtmf payload to 101<br>
> 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 -> 192.168.1.126 port 9000 codec: 0 ms: 20<br>
> 2009-02-05 14:04:51 [DEBUG] switch_rtp.c:865 switch_rtp_create() Starting timer [soft] 160 bytes per 20000ms<br>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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 -> CS_ROUTING<br>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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 -> CS_EXECUTE<br>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 2009-02-05 14:04:51 [DEBUG] mod_sofia.c:2518 sofia_outgoing_channel() (sofia/external/0225490317) State Change CS_NEW -> CS_INIT<br>
> 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>
> 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>
> 2009-02-05 14:04:51 [DEBUG] switch_core_state_machine.c:444 switch_core_session_run() (sofia/external/0225490317) State INIT<br>
> 2009-02-05 14:04:51 [DEBUG] mod_sofia.c:83 sofia_on_init() sofia/external/0225490317 SOFIA INIT<br>
> 2009-02-05 14:04:52 [DEBUG] sofia_glue.c:566 sofia_glue_ext_address_lookup() STUN Success [89.77.89.244]:[50863]<br>
> 2009-02-05 14:04:52 [DEBUG] mod_sofia.c:111 sofia_on_init() (sofia/external/0225490317) State Change CS_INIT -> CS_ROUTING<br>
> 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>
> 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>
> 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>
> 2009-02-05 14:04:52 [DEBUG] switch_core_state_machine.c:447 switch_core_session_run() (sofia/external/0225490317) State ROUTING<br>
> 2009-02-05 14:04:52 [DEBUG] mod_sofia.c:130 sofia_on_routing() sofia/external/0225490317 SOFIA ROUTING<br>
> 2009-02-05 14:04:52 [DEBUG] switch_ivr_originate.c:58 originate_on_routing() (sofia/external/0225490317) State Change CS_ROUTING -> CS_CONSUME_MEDIA<br>
> 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>
> 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>
> 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>
> 2009-02-05 14:04:52 [DEBUG] switch_core_state_machine.c:466 switch_core_session_run() (sofia/external/0225490317) State CONSUME_MEDIA<br>
> 2009-02-05 14:04:52 [DEBUG] sofia.c:2542 sofia_handle_sip_i_state() Channel sofia/external/0225490317 entering state [calling]<br>
> send 1117 bytes to udp/[194.9.25.21]:5060 at 13:04:52.572008:<br>
> ------------------------------------------------------------------------<br>
> INVITE <a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a> SIP/2.0<br>
> Via: SIP/2.0/UDP 83.13.98.165:5080;rport;branch=z9hG4bKyvKBDBpvBQe2p<br>
> Max-Forwards: 69<br>
> From: "Extension 1008" <<a href="mailto:sip%3Afixed0248b@sip.halonet.pl">sip:fixed0248b@sip.halonet.pl</a>;transport=udp>;tag=FZp353yettFNN<br>
> To: <<a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a>><br>
> Call-ID: 6b05cee4-6e28-122c-8396-000c7680c408<br>
> CSeq: 110801210 INVITE<br>
> Contact: <sip:fixed0248b@83.13.98.165:5080;transport=udp><br>
> User-Agent: FreeSWITCH-mod_sofia/1.0.2-wyeksportowane<br>
> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO<br>
> Supported: timer, precondition, path, replaces<br>
> Allow-Events: talk, refer<br>
> Min-SE: 120<br>
> Content-Type: application/sdp<br>
> Content-Disposition: session<br>
> Content-Length: 309<br>
> Remote-Party-ID: "Extension 1008" <<a href="mailto:sip%3A1000@sip.halonet.pl">sip:1000@sip.halonet.pl</a>>;screen=yes;privacy=off<br>
><br>
> v=0<br>
> o=FreeSWITCH 3996368035436745512 7588776177330183331 IN IP4 89.77.89.244<br>
> s=FreeSWITCH<br>
> c=IN IP4 89.77.89.244<br>
> t=0 0<br>
> m=audio 50863 RTP/AVP 0 8 3 101 13<br>
> a=rtpmap:0 PCMU/8000<br>
> a=rtpmap:8 PCMA/8000<br>
> a=rtpmap:3 GSM/8000<br>
> a=rtpmap:101 telephone-event/8000<br>
> a=fmtp:101 0-16<br>
> a=rtpmap:13 CN/8000<br>
> a=ptime:20<br>
> ------------------------------------------------------------------------<br>
> recv 760 bytes from udp/[194.9.25.21]:5060 at 13:04:52.993246:<br>
> ------------------------------------------------------------------------<br>
> SIP/2.0 407 Proxy Authentication Required<br>
> Via: SIP/2.0/UDP 83.13.98.165:5080;rport=5080;branch=z9hG4bKyvKBDBpvBQe2p;received=89.77.89.244<br>
> From: "Extension 1008" <<a href="mailto:sip%3Afixed0248b@sip.halonet.pl">sip:fixed0248b@sip.halonet.pl</a>;transport=udp>;tag=FZp353yettFNN<br>
> To: <<a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a>>;tag=03bd8e75ec97c9ee65c772e401792a5a.5fa3<br>
> Call-ID: 6b05cee4-6e28-122c-8396-000c7680c408<br>
> CSeq: 110801210 INVITE<br>
> Proxy-Authenticate: Digest realm="<a href="http://sip.halonet.pl" target="_blank">sip.halonet.pl</a>", nonce="498ae51439454939d240f51ab9455e2c8505c7aa", qop="auth"<br>
> Server: Sip EXpress router (2.0.0-rc1 (i386/linux))<br>
> Content-Length: 0<br>
> Warning: 392 <a href="http://194.9.25.21:5060" target="_blank">194.9.25.21:5060</a> "Noisy feedback tells: 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"<br>
><br>
> ------------------------------------------------------------------------<br>
> send 387 bytes to udp/[194.9.25.21]:5060 at 13:04:52.993616:<br>
> ------------------------------------------------------------------------<br>
> ACK <a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a> SIP/2.0<br>
> Via: SIP/2.0/UDP 83.13.98.165:5080;rport;branch=z9hG4bKyvKBDBpvBQe2p<br>
> Max-Forwards: 69<br>
> From: "Extension 1008" <<a href="mailto:sip%3Afixed0248b@sip.halonet.pl">sip:fixed0248b@sip.halonet.pl</a>;transport=udp>;tag=FZp353yettFNN<br>
> To: <<a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a>>;tag=03bd8e75ec97c9ee65c772e401792a5a.5fa3<br>
> Call-ID: 6b05cee4-6e28-122c-8396-000c7680c408<br>
> CSeq: 110801210 ACK<br>
> Content-Length: 0<br>
><br>
> ------------------------------------------------------------------------<br>
> send 1409 bytes to udp/[194.9.25.21]:5060 at 13:04:52.994530:<br>
> ------------------------------------------------------------------------<br>
> INVITE <a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a> SIP/2.0<br>
> Via: SIP/2.0/UDP 83.13.98.165:5080;rport;branch=z9hG4bKZ5c4e66Z8Z4mj<br>
> Max-Forwards: 69<br>
> From: "Extension 1008" <<a href="mailto:sip%3Afixed0248b@sip.halonet.pl">sip:fixed0248b@sip.halonet.pl</a>;transport=udp>;tag=FZp353yettFNN<br>
> To: <<a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a>><br>
> Call-ID: 6b05cee4-6e28-122c-8396-000c7680c408<br>
> CSeq: 110801211 INVITE<br>
> Contact: <sip:fixed0248b@83.13.98.165:5080;transport=udp><br>
> Expires: 600<br>
> User-Agent: FreeSWITCH-mod_sofia/1.0.2-wyeksportowane<br>
> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO<br>
> Supported: timer, precondition, path, replaces<br>
> Allow-Events: talk, refer<br>
> Proxy-Authorization: Digest username="fixed0248b", realm="<a href="http://sip.halonet.pl" target="_blank">sip.halonet.pl</a>", nonce="498ae51439454939d240f51ab9455e2c8505c7aa", cnonce="a1oY524oEiyWgwAMdoDECA", algorithm=MD5, uri="<a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a>", response="f05fad749d4ff6d5a75d61e3283c3afa", qop=auth, nc=00000001<br>
> Min-SE: 120<br>
> Content-Type: application/sdp<br>
> Content-Disposition: session<br>
> Content-Length: 309<br>
> Remote-Party-ID: "Extension 1008" <<a href="mailto:sip%3A1000@sip.halonet.pl">sip:1000@sip.halonet.pl</a>>;screen=yes;privacy=off<br>
><br>
> v=0<br>
> o=FreeSWITCH 3996368035436745512 7588776177330183331 IN IP4 89.77.89.244<br>
> s=FreeSWITCH<br>
> c=IN IP4 89.77.89.244<br>
> t=0 0<br>
> m=audio 50863 RTP/AVP 0 8 3 101 13<br>
> a=rtpmap:0 PCMU/8000<br>
> a=rtpmap:8 PCMA/8000<br>
> a=rtpmap:3 GSM/8000<br>
> a=rtpmap:101 telephone-event/8000<br>
> a=fmtp:101 0-16<br>
> a=rtpmap:13 CN/8000<br>
> a=ptime:20<br>
> ------------------------------------------------------------------------<br>
> 2009-02-05 14:04:52 [DEBUG] sofia.c:2542 sofia_handle_sip_i_state() Channel sofia/external/0225490317 entering state [calling]<br>
> recv 618 bytes from udp/[194.9.25.21]:5060 at 13:04:53.349700:<br>
> ------------------------------------------------------------------------<br>
> SIP/2.0 100 trying -- your call is important to us<br>
> Via: SIP/2.0/UDP 83.13.98.165:5080;rport=5080;branch=z9hG4bKZ5c4e66Z8Z4mj;received=89.77.89.244<br>
> From: "Extension 1008" <<a href="mailto:sip%3Afixed0248b@sip.halonet.pl">sip:fixed0248b@sip.halonet.pl</a>;transport=udp>;tag=FZp353yettFNN<br>
> To: <<a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a>><br>
> Call-ID: 6b05cee4-6e28-122c-8396-000c7680c408<br>
> CSeq: 110801211 INVITE<br>
> Server: Sip EXpress router (2.0.0-rc1 (i386/linux))<br>
> Content-Length: 0<br>
> Warning: 392 <a href="http://194.9.25.21:5060" target="_blank">194.9.25.21:5060</a> "Noisy feedback tells: 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"<br>
><br>
> ------------------------------------------------------------------------<br>
> recv 469 bytes from udp/[194.9.25.21]:5060 at 13:04:53.861812:<br>
> ------------------------------------------------------------------------<br>
> SIP/2.0 500 Internal Server Error<br>
> Via: SIP/2.0/UDP 83.13.98.165:5080;received=89.77.89.244;rport=5080;branch=z9hG4bKZ5c4e66Z8Z4mj<br>
> From: "Extension 1008" <<a href="mailto:sip%3Afixed0248b@sip.halonet.pl">sip:fixed0248b@sip.halonet.pl</a>;transport=udp>;tag=FZp353yettFNN<br>
> To: <<a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a>>;tag=4961D2C4-DA7<br>
> Date: Thu, 05 Feb 2009 13:04:39 GMT<br>
> Call-ID: 6b05cee4-6e28-122c-8396-000c7680c408<br>
> Server: Cisco-SIPGateway/IOS-12.x<br>
> CSeq: 110801211 INVITE<br>
> Allow-Events: telephone-event<br>
> Content-Length: 0<br>
><br>
> ------------------------------------------------------------------------<br>
> send 362 bytes to udp/[194.9.25.21]:5060 at 13:04:53.862199:<br>
> ------------------------------------------------------------------------<br>
> ACK <a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a> SIP/2.0<br>
> Via: SIP/2.0/UDP 83.13.98.165:5080;rport;branch=z9hG4bKZ5c4e66Z8Z4mj<br>
> Max-Forwards: 69<br>
> From: "Extension 1008" <<a href="mailto:sip%3Afixed0248b@sip.halonet.pl">sip:fixed0248b@sip.halonet.pl</a>;transport=udp>;tag=FZp353yettFNN<br>
> To: <<a href="mailto:sip%3A0225490317@sip.halonet.pl">sip:0225490317@sip.halonet.pl</a>>;tag=4961D2C4-DA7<br>
> Call-ID: 6b05cee4-6e28-122c-8396-000c7680c408<br>
> CSeq: 110801211 ACK<br>
> Content-Length: 0<br>
><br>
> ------------------------------------------------------------------------<br>
> 2009-02-05 14:04:53 [DEBUG] sofia.c:2542 sofia_handle_sip_i_state() Channel sofia/external/0225490317 entering state [terminated]<br>
> 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>
> 2009-02-05 14:04:53 [DEBUG] switch_channel.c:1494 switch_channel_perform_hangup() Send signal sofia/external/0225490317 [KILL]<br>
> 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>
> 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>
> 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>
> 2009-02-05 14:04:53 [DEBUG] switch_core_state_machine.c:410 switch_core_session_run() (sofia/external/0225490317) State HANGUP<br>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 2009-02-05 14:04:53 [NOTICE] switch_core_session.c:957 switch_core_session_thread() Session 16 (sofia/external/0225490317) Ended<br>
> 2009-02-05 14:04:53 [INFO] mod_dptools.c:1909 audio_bridge_function() Originate Failed. Cause: NORMAL_TEMPORARY_FAILURE<br>
> 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>
> 2009-02-05 14:04:53 [NOTICE] switch_core_session.c:959 switch_core_session_thread() Close Channel sofia/external/0225490317 [CS_HANGUP]<br>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> send 648 bytes to udp/[192.168.1.126]:5070 at 13:04:53.868506:<br>
> ------------------------------------------------------------------------<br>
> 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>
> Via: SIP/2.0/UDP 192.168.1.122;rport;branch=z9hG4bKH893yar8p7X4j<br>
> Max-Forwards: 70<br>
> From: "FreeSWITCH" <<a href="mailto:sip%3A1000@192.168.1.122">sip:1000@192.168.1.122</a>>;tag=9vpFm3tBc8gSe<br>
> To: <<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>>;tag=2111843199<br>
> Call-ID: 68736fc7-6e28-122c-8396-000c7680c408<br>
> CSeq: 110801209 BYE<br>
> Contact: <<a href="http://sip:mod_sofia@192.168.1.122:5060" target="_blank">sip:mod_sofia@192.168.1.122:5060</a>><br>
> User-Agent: FreeSWITCH-mod_sofia/1.0.2-wyeksportowane<br>
> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH<br>
> Supported: timer, precondition, path, replaces<br>
> Reason: Q.850;cause=41;text="NORMAL_TEMPORARY_FAILURE"<br>
> Content-Length: 0<br>
><br>
> ------------------------------------------------------------------------<br>
> 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>
> 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>
> 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>
> 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>
> 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>
> recv 354 bytes from udp/[192.168.1.126]:5070 at 13:04:53.882344:<br>
> ------------------------------------------------------------------------<br>
> SIP/2.0 200 Ok<br>
> Via: SIP/2.0/UDP 192.168.1.122;rport;branch=z9hG4bKH893yar8p7X4j<br>
> From: "FreeSWITCH" <<a href="mailto:sip%3A1000@192.168.1.122">sip:1000@192.168.1.122</a>>;tag=9vpFm3tBc8gSe<br>
> To: <<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>>;tag=2111843199<br>
> Contact: <<a href="http://sip:1008@192.168.1.126:5070" target="_blank">sip:1008@192.168.1.126:5070</a>><br>
> Call-ID: 68736fc7-6e28-122c-8396-000c7680c408<br>
> CSeq: 110801209 BYE<br>
> Server: X-Lite release 1105d<br>
> Content-Length: 0<br>
><br>
> ------------------------------------------------------------------------<br>
Dnia 04-02-2009, śro o godzinie 10:22 -0600, Anthony Minessale pisze:<br>
<div><div></div><div class="Wj3C7c">> can you press f8 for debug and try that apiExecute and post the<br>
> results?<br>
><br>
> On Wed, Feb 4, 2009 at 8:46 AM, Jacek Sokulski<br>
> <jsokulski@dotsystems.pl> wrote:<br>
> Thanks Anthony,<br>
> the js snippets are very instructive.<br>
> A couple of points:<br>
> 1. The code with apiExecute does not work (local phone is<br>
> connected, but<br>
> after picking up it hungs up immediately), other examples are<br>
> working<br>
> fine.<br>
><br>
> 2. It does not show how initiate external call without<br>
> existing session.<br>
><br>
> 3. How can one pass the call through dialplan?<br>
><br>
> Jacek<br>
><br>
> PS.<br>
> we got the code probable from wiki or from this mialing list.<br>
><br>
> Dnia 04-02-2009, śro o godzinie 08:09 -0600, Anthony Minessale<br>
> pisze:<br>
><br>
> > Where did you learn how to use js this way?<br>
> > session.originate is being misused here and is depricated<br>
> and may be<br>
> > removed.<br>
> ><br>
> > the first arg to session.originate is either undefined or a<br>
> > *different* session (the a leg)<br>
> ><br>
> > session1 = new Session();<br>
> > session1.originate(undefined,<br>
> > "{ignore_early_media=true}user/<a href="mailto:1008@192.168.1.122">1008@192.168.1.122</a>");<br>
> ><br>
> ><br>
> session1.setVariable("effective_caller_id_number","fixed0248b");<br>
> ><br>
> > //once you have session1 when you originate session2 you<br>
> pass session1<br>
> > as the arg<br>
> > // the effective_caller_id is taken from session1<br>
> ><br>
> > session2 = new Session();<br>
> > session2.originate(session1,<br>
> "sofia/gateway/halonet/0225490317");<br>
> ><br>
> > Anyway this whole code is depricated in favor of this:<br>
> ><br>
> > session1 = new<br>
> > Session("{ignore_early_media=true}user/<a href="mailto:1008@192.168.1.122">1008@192.168.1.122</a>");<br>
> ><br>
> > if (session1.ready()) {<br>
> ><br>
> session1.setVariable("effective_caller_id_number","fixed0248b");<br>
> > session2 = new Session("sofia/gateway/halonet/0225490317",<br>
> > session1);<br>
> > }<br>
> ><br>
> > and could be further refactored down to this:<br>
> ><br>
> > session1 = new<br>
> > Session("{ignore_early_media=true}user/<a href="mailto:1008@192.168.1.122">1008@192.168.1.122</a>");<br>
> > if (session1.ready()) {<br>
> ><br>
> session1.setVariable("effective_caller_id_number","fixed0248b");<br>
> > session1.execute("bridge",<br>
> "sofia/gateway/halonet/0225490317");<br>
> > }<br>
> ><br>
> > or down to this one line of code that will setup the call<br>
> detached<br>
> > from the script and exit.<br>
> ><br>
> > var result = apiExecute("originate",<br>
> ><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");<br>
> ><br>
> > if you dont care about the result and want to exit even<br>
> before the<br>
> > call is completed.<br>
> ><br>
> > var result = apiExecute("bgapi", "originate<br>
> ><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");<br>
> ><br>
> ><br>
> ><br>
> > On Wed, Feb 4, 2009 at 2:51 AM, Jacek Sokulski<br>
> > <jsokulski@dotsystems.pl> wrote:<br>
> ><br>
> > We have tried setting both<br>
> effective_caller_id_number and<br>
> > origination_caller_id_number:<br>
> ><br>
> ><br>
> session1.originate(session1,"{origination_caller_id_number=fixed0248b}sofia/gateway/halonet/0225490317",15);<br>
> > but the problem still exists. The solution we have<br>
> found for<br>
> > the case<br>
> > when we originate two calls, local and external, is<br>
> as follow:<br>
> ><br>
> > session1 = new Session();<br>
> ><br>
> session1.originate(session1,"user/<a href="mailto:1003@192.168.1.122">1003@192.168.1.122</a>",15);//local<br>
> > if(session1.ready()) {<br>
> ><br>
> session1.execute("execute_extension","00930691688627 XML<br>
> > default");//external<br>
> > }<br>
> ><br>
> > so the external call goes through the dialplan.<br>
> > It does not work if both calls are external. One<br>
> possible<br>
> > solution could be<br>
> > to pass the originating call through dialplan<br>
> (loopback?) but<br>
> > we have not managed<br>
> > to figure out how to do it.<br>
> ><br>
> > Thanks<br>
> > Jacek<br>
> ><br>
> > Dnia 03-02-2009, wto o godzinie 14:31 -0300, Nicolas<br>
> Brenner<br>
> > pisze:<br>
> ><br>
> > > Oops! Well, fortunately I don't use that voip<br>
> provider<br>
> > anymore (nor the script).<br>
> > ><br>
> > > Thanks Brian.<br>
> > ><br>
> > > Nicolas<br>
> > ><br>
> > > On Tue, Feb 3, 2009 at 2:25 PM, Brian West<br>
> > <<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>> wrote:<br>
> > > > YOU should NEVER use this method or call<br>
> setCallerData at<br>
> > all you<br>
> > > > should use the correct methods to override the<br>
> callerid.<br>
> > > ><br>
> > > > If its a B-Leg born from an A-Leg you use these<br>
> on the on<br>
> > the A-Leg:<br>
> > > ><br>
> > > ><br>
> ><br>
> <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>
> > > ><br>
> ><br>
> <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>
> > > ><br>
> > > > If you're originating you use this:<br>
> > > ><br>
> > > ><br>
> ><br>
> <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>
> > > ><br>
> ><br>
> <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>
> > > ><br>
> > > > /b<br>
> > ><br>
> > > _______________________________________________<br>
> > > Freeswitch-users mailing list<br>
> > > <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> > ><br>
> ><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> > ><br>
> ><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>
> ><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> ><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>
> ><br>
> ><br>
> > --<br>
> > Anthony Minessale II<br>
> ><br>
> > FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
> > ClueCon <a href="http://www.cluecon.com/" target="_blank">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" target="_blank">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" target="_blank">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>
> > _______________________________________________<br>
> > Freeswitch-users mailing list<br>
> > <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> ><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> ><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>
><br>
> --<br>
> Anthony Minessale II<br>
><br>
> FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
> ClueCon <a href="http://www.cluecon.com/" target="_blank">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" target="_blank">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" target="_blank">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>
> _______________________________________________<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><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>