<div>below is the transaction&nbsp;of the failed mediaproxy invite. I allready could tell that replies go through openser, but I don't see the reason why ser doesn't see them as replies (and use the mediaproxy function).</div>
<div>&nbsp;</div>
<div>as you can see, the invite from &lt;ip client&gt; to &lt;ip asterisk&gt; (through &lt;ip OPENSER&gt;, which is also ip of mediaproxy) goes in one direction good (the ip in the SDP is changed from &lt;ip client&gt; to &lt;ip openser&gt;, but the return path en the OK (with it's SDP) is not changed
</div>
<div>&nbsp;</div>
<div>I did a tcpdump with a call between 2 clients, where the proxy works, and the only difference I see is that in the reply of asterisk, there is no rinstance field in the contact header</div>
<div>&nbsp;</div>
<div>thanks</div>
<div>arne</div>
<div>&nbsp;</div>
<div>U &lt;ip client&gt;:5060 -&gt; &lt;ip OPENSER&gt;:5060<br>&nbsp; INVITE sip:701@&lt;sip domain&gt;;transport=UDP SIP/2.0..From: &quot;arne&quot; &lt;sip:1002@&lt;sip domain&gt;&gt;;tag=514a90c3-13c4-7a70a-1de331c0-5e4f..To: &quot;701&quot;&lt;
sip:701@sipgat<br>&nbsp; <a href="http://e.evonet.be">e.evonet.be</a>&gt;..Call-ID: <a href="mailto:1064dc44-514a90c3-13c4-7a70a-1de331be-529@&lt;ip">1064dc44-514a90c3-13c4-7a70a-1de331be-529@&lt;ip</a> client&gt;..CSeq: 1 INVITE..Via: SIP/2.0/UDP &lt;ip client&gt;:5060;rport;branch=z9hG4bK-7a70a-1d
<br>&nbsp; e331c2-69dc..Max-Forwards: 70..Supported: replaces,100rel,timer..Allow: INVITE, ACK, BYE, REFER, NOTIFY, CANCEL, OPTIONS, INFO, PRACK..User-Agent: Swissvoice IP1<br>&nbsp; 0 SP v1.0.1 (Build 3) 3.0.5.1..Allow-Events: talk, hold, conference..Contact: &quot;arne&quot; &lt;sip:1002@&lt;ip client&gt;:5060;transport=UDP&gt;..Session-Expires: 1800..Content-
<br>&nbsp; Type: application/sdp..Content-Length: 246....v=0..o=rtp/1 501514 501514 IN IP4 &lt;ip client&gt;..s=-..c=IN IP4 &lt;ip client&gt;..t=0 0..m=audio 50000 RTP/AVP 18 0 8..<br>&nbsp; a=fmtp:18 annexb=yes..a=ptime:40..a=SilenceSupp:on..a=rtpmap:18 g729/8000..a=rtpmap:0 pcmu/8000..a=rtpmap:8 pcma/8000..a=sendrecv..
<br>#<br>&nbsp;</div>
<div>U &lt;ip OPENSER&gt;:5060 -&gt; &lt;ip asterisk&gt;:5060<br>&nbsp; INVITE sip:701@&lt;sip domain&gt;;transport=UDP SIP/2.0..Record-Route: &lt;sip:&lt;ip OPENSER&gt;;lr=on;ftag=514a90c3-13c4-7a70a-1de331c0-5e4f&gt;..From: &quot;arne&quot; &lt;
sip:1002@si<br>&nbsp; <a href="http://pgate.evonet.be">pgate.evonet.be</a>&gt;;tag=514a90c3-13c4-7a70a-1de331c0-5e4f..To: &quot;701&quot;&lt;sip:701@&lt;sip domain&gt;&gt;..Call-ID: <a href="mailto:1064dc44-514a90c3-13c4-7a70a-1de331be-529@&lt;ip">
1064dc44-514a90c3-13c4-7a70a-1de331be-529@&lt;ip</a> client&gt;..C<br>&nbsp; Seq: 1 INVITE..Via: SIP/2.0/UDP &lt;ip OPENSER&gt;;branch=0..Via: SIP/2.0/UDP &lt;ip client&gt;:5060;rport=5060;branch=z9hG4bK-7a70a-1de331c2-69dc..Max-Forwards: 69..Supp
<br>&nbsp; orted: replaces,100rel,timer..Allow: INVITE, ACK, BYE, REFER, NOTIFY, CANCEL, OPTIONS, INFO, PRACK..User-Agent: Swissvoice IP10 SP v1.0.1 (Build 3) 3.0.5.1..Allo<br>&nbsp; w-Events: talk, hold, conference..Contact: &quot;arne&quot; &lt;sip:1002@&lt;ip client&gt;:5060;transport=UDP&gt;..Session-Expires: 1800..Content-Type: application/sdp..Content-Leng
<br>&nbsp; th: 246....v=0..o=rtp/1 501514 501514 IN IP4 &lt;ip client&gt;..s=-..c=IN IP4 &lt;ip OPENSER&gt;..t=0 0..m=audio 60106 RTP/AVP 18 0 8..a=fmtp:18 annexb=yes..a=ptime:40..a<br>&nbsp; =SilenceSupp:on..a=rtpmap:18 g729/8000..a=rtpmap:0 pcmu/8000..a=rtpmap:8 pcma/8000..a=sendrecv..
<br>#<br>&nbsp;</div>
<div>U &lt;ip asterisk&gt;:5060 -&gt; &lt;ip OPENSER&gt;:5060<br>&nbsp; SIP/2.0 100 Trying..Via: SIP/2.0/UDP &lt;ip OPENSER&gt;;branch=0;received=&lt;ip OPENSER&gt;..Via: SIP/2.0/UDP &lt;ip client&gt;:5060;rport=5060;branch=z9hG4bK-7a70a-1de331c2-
<br>&nbsp; 69dc..From: &quot;arne&quot; &lt;sip:1002@&lt;sip domain&gt;&gt;;tag=514a90c3-13c4-7a70a-1de331c0-5e4f..To: &quot;701&quot;&lt;sip:701@&lt;sip domain&gt;&gt;..Call-ID: 1064dc44-514a90c3-13c4-7a70<br>&nbsp; <a href="mailto:a-1de331be-529@&lt;ip">
a-1de331be-529@&lt;ip</a> client&gt;..CSeq: 1 INVITE..User-Agent: Asterisk PBX..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY..Contact: &lt;sip:701@<br>&nbsp; &lt;ip asterisk&gt;&gt;..Content-Length: 0....
<br>#<br>&nbsp;</div>
<div>U &lt;ip OPENSER&gt;:5060 -&gt; &lt;ip client&gt;:5060<br>&nbsp; SIP/2.0 100 Trying..Via: SIP/2.0/UDP &lt;ip client&gt;:5060;rport=5060;branch=z9hG4bK-7a70a-1de331c2-69dc..From: &quot;arne&quot; &lt;sip:1002@&lt;sip domain&gt;&gt;;tag=514a90c3-13c
<br>&nbsp; 4-7a70a-1de331c0-5e4f..To: &quot;701&quot;&lt;sip:701@&lt;sip domain&gt;&gt;..Call-ID: <a href="mailto:1064dc44-514a90c3-13c4-7a70a-1de331be-529@&lt;ip">1064dc44-514a90c3-13c4-7a70a-1de331be-529@&lt;ip</a> client&gt;..CSeq: 1 INVITE..User-Agent: Asteri
<br>&nbsp; sk PBX..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY..Contact: &lt;sip:701@&lt;ip asterisk&gt;&gt;..Content-Length: 0....<br>#<br>&nbsp;</div>
<div>U &lt;ip asterisk&gt;:5060 -&gt; &lt;ip OPENSER&gt;:5060<br>&nbsp; SIP/2.0 200 OK..Via: SIP/2.0/UDP &lt;ip OPENSER&gt;;branch=0;received=&lt;ip OPENSER&gt;..Via: SIP/2.0/UDP &lt;ip client&gt;:5060;rport=5060;branch=z9hG4bK-7a70a-1de331c2-69dc
<br>&nbsp; ..Record-Route: &lt;sip:&lt;ip OPENSER&gt;;lr=on;ftag=514a90c3-13c4-7a70a-1de331c0-5e4f&gt;..From: &quot;arne&quot; &lt;sip:1002@&lt;sip domain&gt;&gt;;tag=514a90c3-13c4-7a70a-1de331c0-5e4f<br>&nbsp; ..To: &quot;701&quot;&lt;sip:701@&lt;sip domain&gt;&gt;;tag=as60ebd3fc..Call-ID: 
<a href="mailto:1064dc44-514a90c3-13c4-7a70a-1de331be-529@&lt;ip">1064dc44-514a90c3-13c4-7a70a-1de331be-529@&lt;ip</a> client&gt;..CSeq: 1 INVITE..User-Agent: Asterisk PBX<br>&nbsp; ..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY..Contact: &lt;sip:701@&lt;ip asterisk&gt;&gt;..Content-Type: application/sdp..Content-Length: 188....v=
<br>&nbsp; 0..o=root 26276 26276 IN IP4 &lt;ip asterisk&gt;..s=session..c=IN IP4 &lt;ip asterisk&gt;..t=0 0..m=audio 13434 RTP/AVP 0 8..a=rtpmap:0 PCMU/8000..a=rtpmap:8 PCMA/8000..a=<br>&nbsp; silenceSupp:off - - - -..<br>#<br>&nbsp;</div>

<div>U &lt;ip OPENSER&gt;:5060 -&gt; &lt;ip client&gt;:5060<br>&nbsp; SIP/2.0 200 OK..Via: SIP/2.0/UDP &lt;ip client&gt;:5060;rport=5060;branch=z9hG4bK-7a70a-1de331c2-69dc..Record-Route: &lt;sip:&lt;ip OPENSER&gt;;lr=on;ftag=514a90c3-13c4-7a70
<br>&nbsp; a-1de331c0-5e4f&gt;..From: &quot;arne&quot; &lt;sip:1002@&lt;sip domain&gt;&gt;;tag=514a90c3-13c4-7a70a-1de331c0-5e4f..To: &quot;701&quot;&lt;sip:701@&lt;sip domain&gt;&gt;;tag=as60ebd3fc..Call-ID:<br>&nbsp; <a href="mailto:1064dc44-514a90c3-13c4-7a70a-1de331be-529@&lt;ip">
1064dc44-514a90c3-13c4-7a70a-1de331be-529@&lt;ip</a> client&gt;..CSeq: 1 INVITE..User-Agent: Asterisk PBX..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NO<br>&nbsp; TIFY..Contact: &lt;sip:701@&lt;ip asterisk&gt;&gt;..Content-Type: application/sdp..Content-Length: 188....v=0..o=root 26276 26276 IN IP4 &lt;ip asterisk&gt;..s=session..c=IN IP4
<br>&nbsp;&nbsp; &lt;ip asterisk&gt;..t=0 0..m=audio 13434 RTP/AVP 0 8..a=rtpmap:0 PCMU/8000..a=rtpmap:8 PCMA/8000..a=silenceSupp:off - - - -..<br>#<br>&nbsp;</div>
<div>&nbsp;</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">2006/9/21, Daniel-Constantin Mierla &lt;<a href="mailto:daniel@voice-system.ro">daniel@voice-system.ro</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello,<br><br>watch the network traffic with ngrep on your sip server. You can see the<br>call flow which may help to identify the issue. You can paste it to the
<br>list and someone may give you hints.<br><br>Cheers,<br>Daniel<br><br><br>On 09/21/06 12:28, Arne Van Theemsche wrote:<br>&gt; hi<br>&gt;<br>&gt; my users subscribe with openser, en asterisk is used as connectivity<br>
&gt; to pstn<br>&gt;<br>&gt; i am now installing a mediaproxy, for all users, so every call goes<br>&gt; via a mediaproxy.<br>&gt;<br>&gt; I'm doing this as follows (relevant statements only)<br>&gt;<br>&gt; in route<br>&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #I installed the t_on_reply here to be sure that every reply<br>&gt; gets parsed, but normally in the INVITE section should be enough?<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_on_reply(&quot;1&quot;);<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (method==INVITE) {
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; use_media_proxy();<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&gt;<br>&gt;<br>&gt; onreply_route[1] {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log(-3,&quot;reply received&quot;);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!search(&quot;^Content-Length:[ ]*0&quot;)) {
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log(-3,&quot;using mediaproxy&quot;);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; use_media_proxy();<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>&gt; }<br>&gt;<br>&gt;<br>&gt; the weird is, for all local users, this works fine, but as soon as
<br>&gt; asterisk is involved, the reply doesn't get triggered (not seeing the<br>&gt; &quot;reply received&quot; either, only when disconnecting the call). The call<br>&gt; get's established fine, asterisk is sending media to the mediaproxy,
<br>&gt; but&nbsp;&nbsp;the SDP towards the calling phone is not modified (since the<br>&gt; onreply isn't triggered)<br>&gt;<br>&gt; am I missing something here?<br>&gt;<br>&gt; thanks<br>&gt; Arne<br>&gt;<br>&gt; ------------------------------------------------------------------------
<br>&gt;<br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a href="mailto:Users@openser.org">Users@openser.org</a><br>&gt; <a href="http://openser.org/cgi-bin/mailman/listinfo/users">
http://openser.org/cgi-bin/mailman/listinfo/users</a><br>&gt;<br></blockquote></div><br>