so, is ti by design or its a bug.... can someone tell ?<br><br>T:<br><br><div class="gmail_quote">On Fri, May 27, 2011 at 10:17 AM, Tihomir Culjaga <span dir="ltr">&lt;<a href="mailto:tculjaga@gmail.com">tculjaga@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br><br><div class="gmail_quote"><div class="im">On Thu, May 26, 2011 at 9:54 PM, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Check your variables. via uuid_dump/info<br></blockquote><div><br></div><div><br></div><div><br></div></div><div>here they are :=)</div><div><br></div><div><br></div><div><div>EXECUTE sofia/external/<a href="http://00681038515000402@127.0.0.1:5061" target="_blank">00681038515000402@127.0.0.1:5061</a> info()</div>

<div>2011-05-26 10:05:29.230485 [INFO] mod_dptools.c:1203 CHANNEL_DATA:</div><div>Channel-State: [CS_EXECUTE]</div><div>Channel-Call-State: [RINGING]</div><div>Channel-State-Number: [4]</div><div>Channel-Name: [sofia/external/<a href="http://00681038515000402@127.0.0.1:5061" target="_blank">00681038515000402@127.0.0.1:5061</a>]</div>

<div>Unique-ID: [17ebc5e5-87cf-4fc9-a5b7-c69c0e682d41]</div><div>Call-Direction: [inbound]</div><div>Presence-Call-Direction: [inbound]</div><div>Answer-State: [ringing]</div><div>Channel-Read-Codec-Name: [PCMA]</div><div>

Channel-Read-Codec-Rate: [8000]</div><div>Channel-Read-Codec-Bit-Rate: [64000]</div><div>Channel-Write-Codec-Name: [PCMA]</div><div>Channel-Write-Codec-Rate: [8000]</div><div>Channel-Write-Codec-Bit-Rate: [64000]</div><div>

Caller-Direction: [inbound]</div><div>Caller-Username: [00681038515000402]</div><div>Caller-Dialplan: [XML]</div><div>Caller-Caller-ID-Name: [00681038515000402]</div><div>Caller-Caller-ID-Number: [00681038515000402]</div>

<div>Caller-Network-Addr: [10.4.62.88]</div><div>Caller-ANI: [00681038515000402]</div><div>Caller-Destination-Number: [30003016094191500]</div><div>Caller-Unique-ID: [17ebc5e5-87cf-4fc9-a5b7-c69c0e682d41]</div><div>Caller-Source: [mod_sofia]</div>

<div>Caller-Context: [public]</div><div>Caller-Channel-Name: [sofia/external/<a href="http://00681038515000402@127.0.0.1:5061" target="_blank">00681038515000402@127.0.0.1:5061</a>]</div><div>Caller-Profile-Index: [1]</div>
<div>Caller-Profile-Created-Time: [1306407929129882]</div>
<div>Caller-Channel-Created-Time: [1306407929129882]</div><div>Caller-Channel-Answered-Time: [0]</div><div>Caller-Channel-Progress-Time: [0]</div><div>Caller-Channel-Progress-Media-Time: [0]</div><div>Caller-Channel-Hangup-Time: [0]</div>

<div>Caller-Channel-Transfer-Time: [0]</div><div>Caller-Screen-Bit: [true]</div><div>Caller-Privacy-Hide-Name: [false]</div><div>Caller-Privacy-Hide-Number: [false]</div><div>variable_direction: [inbound]</div><div>variable_uuid: [17ebc5e5-87cf-4fc9-a5b7-c69c0e682d41]</div>

<div>variable_sip_local_network_addr: [10.4.62.88]</div><div>variable_sip_network_ip: [10.4.62.88]</div><div>variable_sip_network_port: [5061]</div><div>variable_sip_received_ip: [10.4.62.88]</div><div>variable_sip_received_port: [5061]</div>

<div>variable_sip_via_protocol: [udp]</div><div>variable_sip_from_user: [00681038515000402]</div><div>variable_sip_from_port: [5061]</div><div>variable_sip_from_uri: [<a href="http://00681038515000402@127.0.0.1:5061" target="_blank">00681038515000402@127.0.0.1:5061</a>]</div>

<div>variable_sip_from_host: [127.0.0.1]</div><div>variable_sip_from_user_stripped: [00681038515000402]</div><div>variable_sip_from_tag: [3]</div><div>variable_sofia_profile_name: [external]</div><div>variable_sip_full_via: [SIP/2.0/UDP 127.0.0.1:5061;branch=z9hG4bK-354-3-0;received=10.4.62.88]</div>

<div>variable_sip_from_display: [00681038515000402]</div><div>variable_sip_full_from: [00681038515000402 &lt;<a href="http://sip:00681038515000402@127.0.0.1:5061" target="_blank">sip:00681038515000402@127.0.0.1:5061</a>&gt;;tag=3]</div>
<div>
variable_sip_to_display: [30003016094191500]</div><div>variable_sip_full_to: [30003016094191500 &lt;<a href="http://sip:30003016094191500@10.4.62.88:5060" target="_blank">sip:30003016094191500@10.4.62.88:5060</a>&gt;]</div>
<div>variable_sip_req_user: [30003016094191500]</div>
<div>variable_sip_req_port: [5060]</div><div>variable_sip_req_uri: [<a href="http://30003016094191500@10.4.62.88:5060" target="_blank">30003016094191500@10.4.62.88:5060</a>]</div><div>variable_sip_req_host: [10.4.62.88]</div>
<div>variable_sip_to_user: [30003016094191500]</div>
<div>variable_sip_to_port: [5060]</div><div>variable_sip_to_uri: [<a href="http://30003016094191500@10.4.62.88:5060" target="_blank">30003016094191500@10.4.62.88:5060</a>]</div><div>variable_sip_to_host: [10.4.62.88]</div>
<div>variable_sip_contact_user: [00681038515000402]</div>
<div>variable_sip_contact_uri: [<a href="mailto:00681038515000402@127.0.0.1" target="_blank">00681038515000402@127.0.0.1</a>]</div><div>variable_sip_contact_host: [127.0.0.1]</div><div>variable_channel_name: [sofia/external/<a href="http://00681038515000402@127.0.0.1:5061" target="_blank">00681038515000402@127.0.0.1:5061</a>]</div>

<div>variable_sip_call_id: [<a href="mailto:3-354@127.0.0.1" target="_blank">3-354@127.0.0.1</a>]</div><div>variable_sip_via_host: [127.0.0.1]</div><div>variable_sip_via_port: [5061]</div><div>variable_max_forwards: [70]</div>
<div><span style="background-color:rgb(255, 255, 0)">variable_sip_h_Diversion: [&lt;<a href="mailto:sip%3A030230003038516608363@10.4.13.11" target="_blank">sip:030230003038516608363@10.4.13.11</a>;user=phone&gt;;reason=deflection;counter=1]</span></div>

<div>variable_switch_r_sdp: [v=0</div><div>o=user1 53655765 2353687637 IN IP4 127.0.0.1</div><div>s=-</div><div>c=IN IP4 127.0.0.1</div><div>t=0 0</div><div>m=audio 6000 RTP/AVP 0</div><div>a=rtpmap:0 PCMA/8000</div><div>

]</div><div>variable_remote_media_ip: [127.0.0.1]</div><div>variable_remote_media_port: [6000]</div><div>variable_sip_audio_recv_pt: [0]</div><div>variable_sip_use_codec_name: [PCMA]</div><div>variable_sip_use_codec_rate: [8000]</div>

<div>variable_sip_use_codec_ptime: [20]</div><div>variable_read_codec: [PCMA]</div><div>variable_read_rate: [8000]</div><div>variable_write_codec: [PCMA]</div><div>variable_write_rate: [8000]</div><div>variable_dtmf_type: [none]</div>

<div>variable_endpoint_disposition: [RECEIVED]</div><div>variable_intf: [false]</div><div>variable_aPfx: [006810]</div><div>variable_divertTo: [385030230003038516608363]</div><div>variable_aNum: [38515000402]</div><div>variable_IP_ADDR: [<a href="http://10.4.62.88:5060" target="_blank">10.4.62.88:5060</a>]</div>

<div>variable_bPfx: [300030]</div><div>variable_bNum: [16094191500]</div><div>variable_caller_id_number: [006810385030230003038516608363]</div><div>variable_my_sid: [[006810 38515000402 -&gt; 300030 16094191500 : gid-68ab-5969]]</div>

<div>variable_red_contact: [&lt;sip:01002016094191500@10.4.62.88:5060;user=phone&gt;;q=0.99,&lt;sip:04901016094191500@10.4.62.88:5060;user=phone&gt;;q=0.98,&lt;sip:03861016094191500@10.4.62.88:5060;user=phone&gt;;q=0.97,&lt;sip:00001016094191500@10.4.62.88:5060;user=phone&gt;;q=0.96]</div>

<div><br></div><div>variable_authResult: [0]</div><div>variable_componentStatus: [0:0]</div><div>variable_current_application: [info]</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Invite:</div>

<div><div>   ------------------------------------------------------------------------</div><div>   INVITE <a href="http://sip:30003016094191500@10.4.62.88:5060" target="_blank">sip:30003016094191500@10.4.62.88:5060</a> SIP/2.0</div>
<div>
   Via: SIP/2.0/UDP 127.0.0.1:5061;branch=z9hG4bK-354-3-0</div><div>   Max-Forwards: 70</div><div>   Contact: &lt;<a href="mailto:sip%3A00681038515000402@127.0.0.1" target="_blank">sip:00681038515000402@127.0.0.1</a>&gt;</div>
<div>   Diversion: &lt;<a href="mailto:sip%3A030230003038516608363@10.4.13.11" target="_blank">sip:030230003038516608363@10.4.13.11</a>;user=phone&gt;;reason=deflection;counter=1</div>
<div>   From: 00681038515000402 &lt;<a href="http://sip:00681038515000402@127.0.0.1:5061" target="_blank">sip:00681038515000402@127.0.0.1:5061</a>&gt;;tag=3</div><div>   To: 30003016094191500 &lt;<a href="http://sip:30003016094191500@10.4.62.88:5060" target="_blank">sip:30003016094191500@10.4.62.88:5060</a>&gt;</div>

<div>   Call-ID: <a href="mailto:3-354@127.0.0.1" target="_blank">3-354@127.0.0.1</a></div><div>   CSeq: 1 INVITE</div><div>   Content-Type: application/sdp</div><div>   Content-Length:   129</div><div>   </div><div>   v=0</div>
<div>   o=user1 53655765 2353687637 IN IP4 127.0.0.1</div>
<div>   s=-</div><div>   c=IN IP4 127.0.0.1</div><div>   t=0 0</div><div>   m=audio 6000 RTP/AVP 0</div><div>   a=rtpmap:0 PCMA/8000</div></div><div>   ------------------------------------------------------------------------</div>

<div><br></div><div><br></div><div><br></div><div>300:</div><div><div>   ------------------------------------------------------------------------</div><div>   SIP/2.0 300 Multiple Choices</div><div>   Via: SIP/2.0/UDP 127.0.0.1:5061;branch=z9hG4bK-354-3-0;received=10.4.62.88</div>

<div>   From: 00681038515000402 &lt;<a href="http://sip:00681038515000402@127.0.0.1:5061" target="_blank">sip:00681038515000402@127.0.0.1:5061</a>&gt;;tag=3</div><div>   To: 30003016094191500 &lt;<a href="http://sip:30003016094191500@10.4.62.88:5060" target="_blank">sip:30003016094191500@10.4.62.88:5060</a>&gt;;tag=N0pScX59jUjHm</div>

<div>   Call-ID: <a href="mailto:3-354@127.0.0.1" target="_blank">3-354@127.0.0.1</a></div><div>   CSeq: 1 INVITE</div><div>   Contact: &lt;sip:01002016094191500@10.4.62.88:5060;user=phone&gt;;q=0.99</div><div>   Contact: &lt;sip:04901016094191500@10.4.62.88:5060;user=phone&gt;;q=0.98</div>

<div>   Contact: &lt;sip:03861016094191500@10.4.62.88:5060;user=phone&gt;;q=0.97</div><div>   Contact: &lt;sip:00001016094191500@10.4.62.88:5060;user=phone&gt;;q=0.96</div><div>   User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-</div>

<div>   Accept: application/sdp</div><div>   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY</div><div>   Supported: timer, precondition, path, replaces</div><div>   Allow-Events: talk, hold, refer</div>

<div>   Content-Length: 0</div><div>   </div><div>   ------------------------------------------------------------------------</div></div><div><div></div><div class="h5"><div><br></div><div><br></div><div><br></div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
/b<br>
<div><div></div><div><br>
On May 26, 2011, at 2:42 PM, Tihomir Culjaga wrote:<br>
<br>
&gt; hello,<br>
&gt;<br>
&gt; i got a strange issue ... I&#39;m using FS as a redirect server (route server)<br>
&gt; and it does work fine ... except if the original INVITE contains a Diversion<br>
&gt; header, the same header is lost in the responding 300 or 302 message.<br>
&gt; Is this by design or its a bug ?<br>
&gt;<br>
&gt;<br>
&gt; this is a part of the code in sofia where u construct redirect response<br>
&gt; message...<br>
&gt;<br>
&gt;                if (argc &gt; 1) {<br>
&gt;                    nua_respond(tech_pvt-&gt;nh, SIP_300_MULTIPLE_CHOICES,<br>
&gt; SIPTAG_CONTACT_STR(dest),<br>
&gt;                                TAG_IF(!zstr(extra_headers),<br>
&gt; SIPTAG_HEADER_STR(extra_headers)), TAG_END());<br>
&gt;                } else {<br>
&gt;                    nua_respond(tech_pvt-&gt;nh, SIP_302_MOVED_TEMPORARILY,<br>
&gt; SIPTAG_CONTACT_STR(dest),<br>
&gt;                                TAG_IF(!zstr(extra_headers),<br>
&gt; SIPTAG_HEADER_STR(extra_headers)), TAG_END());<br>
&gt;                }<br>
&gt;<br>
&gt;<br>
&gt; so, why the original diversion header is missing ? ... m&#39;I missing something<br>
&gt; ?<br>
&gt;<br>
&gt;<br>
&gt; also, should the 3000/302 message always contain a diversion field saying<br>
&gt; the call is diverted ?<br>
&gt;<br>
&gt;<br>
&gt; Thanks for your answer,<br>
&gt; Tihomir.<br>
</div></div>&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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" target="_blank">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>
</blockquote></div></div></div><br>
</blockquote></div><br>