<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Ok guys,<br><br>Few issues still (after updating from trunk).<br><br>
As suggested, I removed the engage_rtp_proxy from the b2b opensips instance.<br><br>I noticed the following debug from the opensips:<br>Feb 11 12:49:06 sms /root/opensips-1.6.4-tls/opensips[21621]: ERROR:db_postgres:db_postgres_store_result: 0x7b9360 - invalid query, execution aborted<br>
Feb 11 12:49:06 sms /root/opensips-1.6.4-tls/opensips[21621]: ERROR:db_postgres:db_postgres_store_result: 0x7b9360: PGRES_FATAL_ERROR<br>Feb 11 12:49:06 sms /root/opensips-1.6.4-tls/opensips[21621]: ERROR:db_postgres:db_postgres_store_result: 0x7b9360: ERROR: null value in column "e3_sid" violates not-null constraint#012<br>
<br>Looking on the postgres log, here is the failed SQL statement:<br>2011-02-11 12:49:06 UTC ERROR: null value in column "e3_sid" violates not-null constraint<br>2011-02-11 12:49:06 UTC STATEMENT: insert into b2b_logic (si_key,scenario,sparam0,sparam1,sparam2,sparam3,sparam4,sdp,sstate,next_sstate,e1_type,e1_sid,e1_to,e1_from,e1_key,e2_type,e2_sid,e2_to,e2_from,e2_key ) values ('545.0','','','','','','','',-3,0,0,'','<a href="http://sip:17864776626@190.124.220.12:5060" target="_blank">sip:17864776626@190.124.220.12:5060</a>','<a href="mailto:sip%3A359883327749@69.25.128.234" target="_blank">sip:359883327749@69.25.128.234</a>','B2B.608.661',1,'','<a href="http://sip:17864776626@190.124.220.12:5060" target="_blank">sip:17864776626@190.124.220.12:5060</a>','<a href="mailto:sip%3A359883327749@69.25.128.234" target="_blank">sip:359883327749@69.25.128.234</a>','B2B.545.4207959')<br>
<br>I am using the default b2b postgres tables.<br><br>So next, I have the following config on the rtpproxy opensips (not the b2b one):<br>#####################################################<br><i>route[1] {<br> fix_nated_contact();<br>
<br> if (is_method("INVITE")) {<br> rewritehostport("<a href="http://184.106.168.144:5061" target="_blank">184.106.168.144:5061</a>");<br>
if (rtpproxy_offer("eo","184.106.168.144"))<br> t_on_reply("1");<br>
}<br> else if (method == "BYE" || method == "CANCEL") {<br> unforce_rtp_proxy();<br> }<br> ..<br>}<br><br>onreply_route[1] {<br> if (!(status=~"183" || status=~"200")) {<br>
drop;<br> }<br><br> rtpproxy_answer("FA");<br><br>}</i><br>#####################################################<br>
<br>As result, when I initiate a call, I get the following on the syslog:<br><br>Feb 11 12:52:48 sms /root/opensips-1.6.4-tls/opensips[21754]: INFO:nathelper:rtpp_test: rtp proxy <udp:<a href="http://184.106.168.144:22332" target="_blank">184.106.168.144:22332</a>> found, support for it enabled<br>
Feb 11 12:52:48 sms /root/opensips-1.6.4-tls/opensips[21753]: INFO:nathelper:rtpp_test: rtp proxy <udp:<a href="http://184.106.168.144:22332" target="_blank">184.106.168.144:22332</a>> found, support for it enabled<br>
....<br>
Feb 11 12:53:05 sms /root/opensips-1.6.4-tls/opensips[21746]: DBG:nathelper:force_rtp_proxy: Forcing body:#012[v=0#015#012o=- 229796569696953 1 IN IP4 190.124.220.12#015#012s=-#015#012c=IN IP4 190.124.220.12<br>#015#012t=0 0#015#012m=audio 18338 RTP/AVP 0 101#015#012a=rtpmap:0 PCMU/8000#015#012a=rtpmap:101 telephone-event/8000#015#012a=fmtp:101 0-16]<br>
Feb 11 12:53:05 sms /root/opensips-1.6.4-tls/opensips[21746]: DBG:core:parse_to: display={011359883327749}, ruri={<a href="mailto:sip%3A359883327749@69.25.128.233" target="_blank">sip:359883327749@69.25.128.233</a>}<br>Feb 11 12:53:05 sms rtpproxy[21731]: DBUG:handle_command: received command "21746_6 LA <a href="mailto:4512c49c3cd0db1b410744fe0ced15bf@69.25.128.233" target="_blank">4512c49c3cd0db1b410744fe0ced15bf@69.25.128.233</a> 190.124.220.12 18338 as612bc040;1 B2B.599.537;1"<br>
Feb 11 12:53:05 sms kernel: [7145167.526106] rtpproxy[21731]: segfault at 0 ip 00000000004053e9 sp 00007fff71948b00 error 4 in rtpproxy[400000+e000]<br>....<br>....<br>Feb 11 12:53:05 sms /root/opensips-1.6.4-tls/opensips[21748]: DBG:tm:t_reply_matching: hash 23820 label 1987919557 branch 0<br>
Feb 11 12:53:05 sms /root/opensips-1.6.4-tls/opensips[21748]: DBG:tm:t_reply_matching: REF_UNSAFE:[0x7fc0f89b4f10] after is 2<br>Feb 11 12:53:05 sms /root/opensips-1.6.4-tls/opensips[21748]: DBG:tm:t_reply_matching: reply matched (T=0x7fc0f89b4f10)!<br>
Feb 11 12:53:05 sms /root/opensips-1.6.4-tls/opensips[21748]: DBG:tm:t_check: end=0x7fc0f89b4f10<br>Feb 11 12:53:05 sms /root/opensips-1.6.4-tls/opensips[21748]: DBG:tm:reply_received: org. status uas=100, uac[0]=0 local=0 is_invite=1)<br>
Feb 11 12:53:06 sms /root/opensips-1.6.4-tls/opensips[21746]: ERROR:nathelper:send_rtpp_command: timeout waiting reply from a RTP proxy<br>Feb 11 12:53:06 sms /root/opensips-1.6.4-tls/opensips[21746]: ERROR:nathelper:send_rtpp_command: proxy <udp:<a href="http://184.106.168.144:22332" target="_blank">184.106.168.144:22332</a>> does not respond, disable it<br>
Feb 11 12:53:06 sms /root/opensips-1.6.4-tls/opensips[21746]: ERROR:nathelper:send_rtpp_command: can't send command to a RTP proxy Connection refused<br>........................ repeating over 100 times................................<br>
<br>Obviously the RTPproxy dies.<br>What I noticed is, when i remove <br> <i><u>rtpproxy_answer("FA");</u></i><br>from the onreply_route, the RTPproxy does not dies.<br><br>Any ideas what I am doing wrong ?<br>
<br>Thank you.<br><font color="#888888">-- Kamen</font></blockquote></div><br>