<div>I changed the following in the ctd.sh script</div><div> </div><div>Changed the default of</div><div>"`printf "v=0\r\no=click-to-dial 0 0 IN IP4 0.0.0.0\r\ns=session\r\nc=IN IP4 0.0.0.0\r\nb=CT:1000\r\nt=0 0\r\nm=audio 9 RTP/AVP 8 0\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:0 PCMU/8000\r\n"`</div>
<div> </div><div>To<br>"`printf "v=0\r\no=click2dial 0 0 IN IP4 50.XX.XX.156\r\ns=click2dial call\r\nc=IN IP4 173.XX.XX.111\r\nt=0 0\r\nm=audio 12790 RTP/AVP 0 8 18 3 4 97 98\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:18 G729/8000\r\na=rtpmap:97 ilbc/8000\r\na=rtpmap:98 speex/8000\r\n"`</div>
<div> </div><div> </div><div>And now it is making it into the OpenSIPS/SBC's main route. Not sure why.</div><div> </div><div>I noticed another issue now. My snom phone is receiving the INVITE but it is replying with a "404 Not Found" error. (If I test with a Jitsi client I don't have the 404 issue)</div>
<div> </div><div>This shouldn't happen since the TO header is the correct SIP URI. The only thing that can be wrong is that the To: URI is not in <> </div><div> </div><div>I think the TM MI function t_uac_dlg isn't placing the <> around the TO: header URI. Reading the RFC I am not 100% sure if the <> are required.</div>
<div> </div><div> </div><div>U 2012/08/08 22:09:13.756976 <a href="http://192.168.88.1:5060">192.168.88.1:5060</a> -> <a href="http://192.168.88.13:3072">192.168.88.13:3072</a><br>INVITE <a href="http://sip:9016XX6XX4@192.168.88.13:3072">sip:9016XX6XX4@192.168.88.13:3072</a> SIP/2.0.<br>
Max-Forwards: 10.<br>Record-Route: <sip:192.168.88.1;r2=on;lr>.<br>Record-Route: <sip:99.XX.XX.161;r2=on;lr>.<br>Via: SIP/2.0/UDP 192.168.88.1;branch=z9hG4bK3f03.9cb7ee3.0.<br>Via: SIP/2.0/UDP 50.XX.XX.156;branch=z9hG4bK3f03.18d165f1.0.<br>
<strong>To: <a href="mailto:sip%3A9016XX6XX4@irck.com">sip:9016XX6XX4@irck.com</a>.</strong><br>From: <<a href="mailto:sip%3Acontroller@ae.com">sip:controller@ae.com</a>>;tag=134448175329440.<br>CSeq: 1 INVITE.<br>Call-ID: 134448175329440.fifouacctd.<br>
Content-Length: 226.<br>User-Agent: OpenSIPS (1.8.0-dev0-tls (x86_64/linux)).<br>Contact: <<a href="http://sip:caller@50.57.54.156:5060">sip:caller@50.57.54.156:5060</a>>.<br>Content-Type: application/sdp.<br>.<br>v=0.<br>
o=click2dial 0 0 IN IP4 50.XX.XX.156.<br>s=click2dial call.<br>c=IN IP4 173.XX.XX.111.<br>t=0 0.<br>m=audio 12790 RTP/AVP 0 8 18 3 4 97 98.<br>a=rtpmap:0 PCMU/8000.<br>a=rtpmap:18 G729/8000.<br>a=rtpmap:97 ilbc/8000.<br>a=rtpmap:98 speex/8000.</div>
<div>#<br>U 2012/08/08 22:09:13.766974 <a href="http://192.168.88.13:3072">192.168.88.13:3072</a> -> <a href="http://192.168.88.1:5060">192.168.88.1:5060</a><br>SIP/2.0 404 Not found.<br>Via: SIP/2.0/UDP 192.168.88.1;branch=z9hG4bK3f03.9cb7ee3.0.<br>
Via: SIP/2.0/UDP 50.XX.XX.156;branch=z9hG4bK3f03.18d165f1.0.<br>From: <<a href="mailto:sip%3Acontroller@ae.com">sip:controller@ae.com</a>>;tag=134448175329440.<br>To: <<a href="mailto:sip%3A9016726924@irock.com">sip:9016726924@irock.com</a>>.<br>
Call-ID: 134448175329440.fifouacctd.<br>CSeq: 1 INVITE.<br>User-Agent: snom821/<a href="http://8.7.3.10">8.7.3.10</a>.<br>Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK, MESSAGE, INFO, UPDATE.<br>
Allow-Events: talk, hold, refer, call-info.<br>Supported: timer, replaces, from-change.<br>Content-Length: 0.</div><div> </div><div><br> </div><div class="gmail_quote">On Fri, Jul 27, 2012 at 3:24 PM, <span dir="ltr"><<a href="mailto:duane.larson@gmail.com" target="_blank">duane.larson@gmail.com</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">Very sure. Normal calls are working with clients behind the OpenSIPS/SBC.<div class="im">
<br><br><br><br>On , Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>> wrote:<br>> <br>> <br>> <br>> <br>> <br>> <br></div><div><div class="h5">
> Duane,some stupid question : are you sure your opensips is<br>> listening on the given IP:port ? have you check with netstat ?<br>> also have you checked with netstat also if there is traffic queued<br>
> on the sockets ?<br>> <br>> <br>> <br>> Regards,<br>> <br>> <br>> Bogdan-Andrei Iancu<br>> OpenSIPS Founder and Developer<br>> <a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a><br>
> <br>> <br>> On 07/27/2012 12:48 AM, Duane Larson wrote:<br>> Oh yeah. My first email has the SIPTrace from the<br>> OpenSIPS/SBC. So I am logged into the OpenSIPS/SBC and did the<br>> NGREP. So I see it SIP invite (99.XX.XX.161 is the IP of the<br>
> OpenSIPS/SBC). I would even let you log into the OpenSIPS/SBC<br>> and see it for yourself. Makes no sense.<br>> <br>> <br>> <br>> U 2012/07/19 18:20:13.486847 50.XX.XX.156:5060 -> 99.XX.XX.161:5060<br>
> <br>> INVITE sip:9016XXXXX@192.168.88.13:3072;line=g2hfphrk SIP/2.0.<br>> <br>> Via: SIP/2.0/UDP 50.57.54.156;branch=z9hG4bKaab1.6c7ffd84.0.<br>> <br>> To: <a href="mailto:sip%3A9016XXXXX@irock.com" target="_blank">sip:9016XXXXX@irock.com</a>.<br>
> <br>> From: <a href="mailto:sip%3Acontroller@ae.com" target="_blank">sip:controller@ae.com</a>>;tag=134274001013257.<br>> <br>> CSeq: 1 INVITE.<br>> <br>> Call-ID: 134274001013257.fifouacctd.<br>
> <br>> Content-Length: 155.<br>> <br>> User-Agent: OpenSIPS (1.8.0-dev0-tls (x86_64/linux)).<br>> <br>> Contact: <a href="http://sip:caller@50.57.54.156:5060" target="_blank">sip:caller@50.57.54.156:5060</a>>.<br>
> <br>> Content-Type: application/sdp.<br>> <br>> .<br>> <br>> v=0.<br>> <br>> o=click-to-dial 0 0 IN IP4 0.0.0.0.<br>> <br>> s=session.<br>> <br>> c=IN IP4 0.0.0.0.<br>
> <br>> b=CT:1000.<br>> <br>> t=0 0.<br>> <br>> m=audio 9 RTP/AVP 8 0.<br>> <br>> a=rtpmap:8 PCMA/8000.<br>> <br>> a=rtpmap:0 PCMU/8000. <br>> <br>> <br>
> <br>> On Thu, Jul 26, 2012 at 4:35 PM,<br>> Bogdan-Andrei Iancu <a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>> wrote:<br>> <br>> OK, so the OpenSIPS SBC is not receiving<br>
> the INVITE from the OpenSIPS proxy? If so, have you checked on<br>> the opensips proxy, using network capture tool if the INVITE<br>> is sent to the proper destination ??<br>> <br>
> <br>> <br>> <br>> <br>> Regards,<br>> <br>> <br>> <br>> Bogdan-Andrei Iancu<br>> <br>> OpenSIPS Founder and Developer<br>
> <br>> <a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a><br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>
> <br>> <br>> On 07/25/2012 07:58 AM, <a href="mailto:duane.larson@gmail.com" target="_blank">duane.larson@gmail.com</a><br>> wrote:<br>> <br>> <br>
> Hey Bogdan,<br>> <br>> <br>> <br>> I think you might be a little confused from my emails.<br>> The last email that had a SIP trace and the 100 Trying<br>
> was a click-to-dial generated from php-sip(<a href="http://code.google.com/p/php-sip/" target="_blank">http://code.google.com/p/php-sip/</a>)<br>> and I wanted to show you that with php-sip the OpenSIPS<br>
> server processes the INVITE and replies with a 100<br>> Trying.<br>> <br>> <br>> <br>> Here is what I am doing<br>> <br>> <br>
> <br></div></div>> Client_on_LAN OpenSIPS/SBC Internet<div><div class="h5"><br>> OpenSIPS/Proxy<br>> <br>> <br>> <br>> So I am executing the ctd.sh script on the<br>
> OpenSIPS/Proxy server and the INVITE is going to the<br>> OpenSIPS/SBC server and that is where OpenSIPS isn't<br>> even seeing the INVITE.<br>> <br>> <br>
> <br>> <br>> <br>> <br>> <br>> <br>> <br>> On , Bogdan-Andrei Iancu <a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>><br>
> wrote:<br>> <br>> > Hi Duane,<br>> <br>> ><br>> <br>> ><br>> <br>> ><br>> <br>> ><br>
> <br>> ><br>> <br>> > The INVITE generated by the opensips (triggered by<br>> the PHP script via MI) will not show up in the opensips<br>> script - it is directly sent out by opensips internals<br>
> (without script interaction) to the destination from<br>> DURI / RURI - the only place where you can see it (on<br>> the opensips instance that generates that INVITE) is by<br>
> using a local route.<br>> <br>> ><br>> <br>> ><br>> <br>> ><br>> <br>> ><br>> <br>> ><br>
> <br>> > In your capture, I see that there is a 100 trying<br>> reply received after all from the destination - are<br>> there any other replies following ?<br>
> <br>> ><br>> <br>> ><br>> <br>> ><br>> <br>> ><br>> <br>> ><br>> <br>> > Regards,<br>
> <br>> ><br>> <br>> ><br>> <br>> ><br>> <br>> ><br>> <br>> ><br>> <br>> > Bogdan-Andrei Iancu<br>
> <br>> ><br>> <br>> ><br>> <br>> > OpenSIPS Founder and Developer<br>> <br>> ><br>> <br>> ><br>
> <br>> > <a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a><br>> <br>> ><br>> <br>> ><br>> <br>
> ><br>> <br>> ><br>> <br>> ><br>> <br>> ><br>> <br>> ><br>> <br>> ><br>> <br>
> > On 07/23/2012 07:54 PM, <a href="mailto:duane.larson@gmail.com" target="_blank">duane.larson@gmail.com</a><br>> wrote:<br>> <br>> ><br>> <br>> ><br>
> <br>> ><br>> <br>> ><br>> <br>> > That is correct there is no answer to the INVITE<br>> and it doesn't appear to even enter the main route of<br>
> the OpenSIPS config. I have xlogs set up in the opensips<br>> script and I never see the INVITE enter. Here is another<br>> sip trace from the php-sip click to call program and for<br>
> some reason this INVITE does go through the main route<br>> without issue.<br>> <br>> ><br>> <br>> ><br>> <br>> ><br>
> <br>> ><br>> <br>> ><br>> <br>> > #<br>> <br>> ><br>> <br>> ><br>> <br>> > U 2012/07/23 11:49:04.398750 50.XX.XX.156:5060<br>
> -> 99.XX.XX.161:5060<br>> <br>> ><br>> <br>> ><br>> <br>> > INVITE sip:9016XX6XX4@192.168.88.13:3072;line=996he62l<br>> SIP/2.0.<br>
> <br>> ><br>> <br>> ><br>> <br>> > Record-Route: 34533;vst=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA;did=38a.ff1a8d45>.<br>> <br>> ><br>
> <br>> ><br>> <br>> > Via: SIP/2.0/UDP 50.XX.XX.156;branch=z9hG4bK10f3.c6fade97.0.<br>> <br>> ><br>> <br>> ><br>> <br>
> > Via: SIP/2.0/UDP 50.XX.XX.54:5065;received=50.XX.XX.54;rport=5065;branch=z9hG4bK185398.<br>> <br>> ><br>> <br>> ><br>> <br>> > From: ;tag=34533.<br>
> <br>> ><br>> <br>> ><br>> <br>> > To: <a href="mailto:sip%3A9016XX6XX4@irock.com" target="_blank">sip:9016XX6XX4@irock.com</a>>.<br>> <br>
> ><br>> <br>> ><br>> <br>> > Call-ID: <a href="mailto:78ecbf1cd5542c12fe2293da14517b38@50.57.75.54" target="_blank">78ecbf1cd5542c12fe2293da14517b38@50.57.75.54</a>.<br>
> <br>> ><br>> <br>> ><br>> <br>> > CSeq: 20 INVITE.<br>> <br>> ><br>> <br>> ><br>> <br>> > Contact: .<br>
> <br>> ><br>> <br>> ><br>> <br>> > Content-Type: application/sdp.<br>> <br>> ><br>> <br>> ><br>
> <br>> > Max-Forwards: 69.<br>> <br>> ><br>> <br>> ><br>> <br>> > User-Agent: PHP SIP.<br>> <br>> ><br>
> <br>> ><br>> <br>> > Subject: click2call.<br>> <br>> ><br>> <br>> ><br>> <br>> > Content-Length: 225.<br>
> <br>> ><br>> <br>> ><br>> <br>> > P-hint: outbound->inbound .<br>> <br>> ><br>> <br>> ><br>
> <br>> > P-hint: Route[6]: mediaproxy .<br>> <br>> ><br>> <br>> ><br>> <br>> > .<br>> <br>> ><br>
> <br>> ><br>> <br>> > v=0.<br>> <br>> ><br>> <br>> ><br>> <br>> > o=click2dial 0 0 IN IP4 50.57.75.54.<br>
> <br>> ><br>> <br>> ><br>> <br>> > s=click2dial call.<br>> <br>> ><br>> <br>> ><br>> <br>> > c=IN IP4 173.XX.XX.111.<br>
> <br>> ><br>> <br>> ><br>> <br>> > t=0 0.<br>> <br>> ><br>> <br>> ><br>> <br>> > m=audio 12790 RTP/AVP 0 8 18 3 4 97 98.<br>
> <br>> ><br>> <br>> ><br>> <br>> > a=rtpmap:0 PCMU/8000.<br>> <br>> ><br>> <br>> ><br>> <br>
> > a=rtpmap:18 G729/8000.<br>> <br>> ><br>> <br>> ><br>> <br>> > a=rtpmap:97 ilbc/8000.<br>> <br>> ><br>
> <br>> ><br>> <br>> > a=rtpmap:98 speex/8000.<br>> <br>> ><br>> <br>> ><br>> <br>> ><br>> <br>
> ><br>> <br>> ><br>> <br>> > #<br>> <br>> ><br>> <br>> ><br>> <br>> > U 2012/07/23 11:49:04.398750 99.XX.XX.161:5060<br>
> -> 50.XX.XX.156:5060<br>> <br>> ><br>> <br>> ><br>> <br>> > SIP/2.0 100 Giving a try.<br>> <br>> ><br>
> <br>> ><br>> <br>> > Via: SIP/2.0/UDP 50.XX.XX.156;branch=z9hG4bK10f3.c6fade97.0.<br>> <br>> ><br>> <br>> ><br>> <br>
> > Via: SIP/2.0/UDP 50.XX.XX.54:5065;received=50.XX.XX.54;rport=5065;branch=z9hG4bK185398.<br>> <br>> ><br>> <br>> ><br>> <br>> > From: ;tag=34533.<br>
> <br>> ><br>> <br>> ><br>> <br>> > To: <a href="mailto:sip%3A9016Xx6xx4@irock.com" target="_blank">sip:9016Xx6xx4@irock.com</a>>.<br>> <br>
> ><br>> <br>> ><br>> <br>> > Call-ID: 78ecbf1cd5542c12fe2293da14517b38@50.XX.xx.54.<br>> <br>> ><br>> <br>> ><br>
> <br>> > CSeq: 20 INVITE.<br>> <br>> ><br>> <br>> ><br>> <br>> > Server: OpenSIPS (1.8.0-notls (x86_64/linux)).<br>> <br>
> ><br>> <br>> ><br>> <br>> > Content-Length: 0.<br>> <br>> ><br>> <br>> ><br>> <br>> > .<br>
> <br>> ><br>> <br>> ><br>> <br>> ><br>> <br>> ><br>> <br>> ><br>> <br>> ><br>
> <br>> ><br>> <br>> ><br>> <br>> > So I am not sure why the first sip trace INVITE I<br>> sent isn't being processed but the one above is. Very<br>
> weird.<br>> <br>> ><br>> <br>> ><br>> <br>> ><br>> <br>> ><br>> <br>> ><br>
> <br>> > I haven't tried to send it to another OpenSIPS<br>> server because I really don't have any other server to<br>> test with.<br>> <br>> ><br>
> <br>> ><br>> <br>> ><br>> <br>> ><br>> <br>> ><br>> <br>> > On , Bogdan-Andrei Iancu <a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>><br>
> wrote:<br>> <br>> ><br>> <br>> ><br>> <br>> > ><br>> <br>> ><br>> <br>> ><br>
> <br>> > ><br>> <br>> ><br>> <br>> ><br>> <br>> > ><br>> <br>> ><br>> <br>> ><br>
> <br>> > ><br>> <br>> ><br>> <br>> ><br>> <br>> > ><br>> <br>> ><br>> <br>> ><br>
> <br>> > ><br>> <br>> ><br>> <br>> ><br>> <br>> > > Hi Duane,<br>> <br>> ><br>> <br>> ><br>
> <br>> > ><br>> <br>> ><br>> <br>> ><br>> <br>> > ><br>> <br>> ><br>> <br>> ><br>
> <br>> > ><br>> <br>> ><br>> <br>> ><br>> <br>> > > You mean there is no answer to that INVITE ?<br>> When you tried to<br>
> <br>> ><br>> <br>> ><br>> <br>> > > send the INVITE to another opensips, have you<br>> noticed errors in<br>> <br>> ><br>
> <br>> ><br>> <br>> > > the logs (like parsing errors)?<br>> <br>> ><br>> <br>> ><br>> <br>> > ><br>
> <br>> ><br>> <br>> ><br>> <br>> > ><br>> <br>> ><br>> <br>> ><br>> <br>> > ><br>
> <br>> ><br>> <br>> ><br>> <br>> > > Regards,<br>> <br>> ><br>> <br>> ><br>> <br>> > ><br>
> <br>> ><br>> <br>> ><br>> <br>> > ><br>> <br>> ><br>> <br>> ><br>> <br>> > > Bogdan-Andrei Iancu<br>
> <br>> ><br>> <br>> ><br>> <br>> > > OpenSIPS Founder and Developer<br>> <br>> ><br>> <br>> ><br>
> <br>> > > <a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a><br>> <br>> ><br>> <br>> ><br>> <br>
> > ><br>> <br>> ><br>> <br>> ><br>> <br>> > ><br>> <br>> ><br>> <br>> ><br>
> <br>> > > On 07/21/2012 07:45 AM, <a href="mailto:duane.larson@gmail.com" target="_blank">duane.larson@gmail.com</a><br>> wrote:<br>> <br>> ><br>> <br>
> ><br>> <br>> > > Has anyone used the ctd.sh example that comes<br>> with<br>> <br>> ><br>> <br>> ><br>
> <br>> > > Opensips in the "example" folder? I am trying<br>> to use it and the<br>> <br>> ><br>> <br>> ><br>> <br>
> > > INVITE gets sent out but nothing happens. I<br>> even tried with<br>> <br>> ><br>> <br>> ><br>> <br>> > > sending the INVITE to an OpenSIPS server and<br>
> the OpenSIPS server<br>> <br>> ><br>> <br>> ><br>> <br>> > > never even sees it enter the main route even<br>> though I see that the<br>
> <br>> ><br>> <br>> ><br>> <br>> > > INVITE is making it to the server because an<br>> NGREP shows it making<br>> <br>> ><br>
> <br>> ><br>> <br>> > > it. It doesn't make much sense. I even did a<br>> debug and don't see<br>> <br>> ><br>> <br>
> ><br>> <br>> > > anything showing that OpenSIPS sees the<br>> INVITE.<br>> <br>> ><br>> <br>> ><br>> <br>
> > ><br>> <br>> ><br>> <br>> ><br>> <br>> > ><br>> <br>> ><br>> <br>> ><br>
> <br>> > ><br>> <br>> ><br>> <br>> ><br>> <br>> > ><br>> <br>> ><br>> <br>> ><br>
</div></div>> <br /</blockquote></div><br><br clear="all"><br>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--<br>