<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Lucida Console";
        panose-1:2 11 6 9 4 5 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML con formato previo Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EstiloCorreo17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLconformatoprevioCar
        {mso-style-name:"HTML con formato previo Car";
        mso-style-priority:99;
        mso-style-link:"HTML con formato previo";
        font-family:Consolas;
        color:black;
        mso-fareast-language:EN-US;}
span.EstiloCorreo20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1027" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=ES-MX link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Hi Daniel<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Thank you so much for your response. Here is the SIP trace of one of the calls, I am not sure where the call initiates but you can see at the end of the file in bold <b>X-Asterisk-HangupCause: No user responding. </b>I am not sure why is it sending this message though.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>The variables are<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Extension/Username=XXXXX<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Ext_IP= Public IP<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Internal_IP= Asterisk/Kamailio internal IP<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Sorry for the long file but again I am not sure where the call initiates<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>This is the part where that call is hung on.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>U 2014/06/26 13:36:11.831965 Kamailio_IP:5080 -> Kamailio_IP:5060<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>BYE sip:XXXXX@65.190.71.203:5060;user=phone;transport=udp SIP/2.0.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Via: SIP/2.0/UDP Kamailio_IP:5080;branch=z9hG4bK7ce1be47.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Route: <sip:Kamailio_IP;lr=on;ftag=000653dc394000970f227678-1fafb4e2>.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Max-Forwards: 70.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>From: <sip:919707249077@Kamailio_IP:5060>;tag=as2e670ea4.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>To: "User" <sip:XXXXX@Kamailio_IP:5060>;tag=000653dc394000970f227678-1fafb4e2.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Call-ID: 000653dc-3940000b-33caf1b2-20ccd185@192.168.0.22.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>CSeq: 102 BYE.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>User-Agent: FPBX-2.11.0(11.10.2).<o:p></o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='color:#1F497D'>X-Asterisk-HangupCause: No user responding.<o:p></o:p></span></b></p><p class=MsoNormal><b><span lang=EN-US style='color:#1F497D'>X-Asterisk-HangupCauseCode: 18.<o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Content-Length: 0.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>U 2014/06/26 13:36:11.832260 Kamailio_IP:5060 -> 65.190.71.203:5060<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>BYE sip:XXXXX@65.190.71.203:5060;user=phone;transport=udp SIP/2.0.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Via: SIP/2.0/UDP Kamailio_IP;branch=z9hG4bKcf68.d6ef5aa9cc5bd0fb0ab13a563b7cf284.0.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Via: SIP/2.0/UDP Kamailio_IP:5080;branch=z9hG4bK7ce1be47.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Max-Forwards: 69.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>From: <sip:919707249077@Kamailio_IP:5060>;tag=as2e670ea4.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>To: "User" <sip:XXXXX@Kamailio_IP:5060>;tag=000653dc394000970f227678-1fafb4e2.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Call-ID: 000653dc-3940000b-33caf1b2-20ccd185@192.168.0.22.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>CSeq: 102 BYE.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>User-Agent: FPBX-2.11.0(11.10.2).<o:p></o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='color:#1F497D'>X-Asterisk-HangupCause: No user responding.<o:p></o:p></span></b></p><p class=MsoNormal><b><span lang=EN-US style='color:#1F497D'>X-Asterisk-HangupCauseCode: 18.<o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Content-Length: 0.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><span lang=EN-US style='color:#1F497D;mso-fareast-language:ES-MX'><o:p> </o:p></span></p><p class=MsoNormal><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter" />
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0" />
<v:f eqn="sum @0 1 0" />
<v:f eqn="sum 0 0 @1" />
<v:f eqn="prod @2 1 2" />
<v:f eqn="prod @3 21600 pixelWidth" />
<v:f eqn="prod @3 21600 pixelHeight" />
<v:f eqn="sum @0 0 1" />
<v:f eqn="prod @6 1 2" />
<v:f eqn="prod @7 21600 pixelWidth" />
<v:f eqn="sum @8 21600 0" />
<v:f eqn="prod @7 21600 pixelHeight" />
<v:f eqn="sum @10 21600 0" />
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect" />
<o:lock v:ext="edit" aspectratio="t" />
</v:shapetype><v:shape id="Imagen_x0020_2" o:spid="_x0000_s1026" type="#_x0000_t75" alt="Descripción: Description: Description: DLR-Logo-No-Text" style='position:absolute;margin-left:0;margin-top:0;width:53.25pt;height:32.25pt;z-index:251659264;visibility:visible;mso-wrap-style:square;mso-width-percent:0;mso-height-percent:0;mso-wrap-distance-left:9pt;mso-wrap-distance-top:0;mso-wrap-distance-right:9pt;mso-wrap-distance-bottom:0;mso-position-horizontal:left;mso-position-horizontal-relative:text;mso-position-vertical:absolute;mso-position-vertical-relative:line;mso-width-percent:0;mso-height-percent:0;mso-width-relative:page;mso-height-relative:page' o:allowoverlap="f">
<v:imagedata src="cid:image001.jpg@01CF9141.AA5BABF0" o:title=" DLR-Logo-No-Text" />
<w:wrap type="square" anchory="line"/>
</v:shape><![endif]--><![if !vml]><img width=71 height=43 src="cid:image001.jpg@01CF9141.AA5BABF0" align=left hspace=12 alt="Descripción: Description: Description: DLR-Logo-No-Text" v:shapes="Imagen_x0020_2"><![endif]><b><span style='font-size:9.0pt;color:gray;mso-fareast-language:ES-MX'>CARLOS RANGEL<span style='text-transform:uppercase'> | INFORMATION TECHNOLOGY DIRECTOR</span></span></b><span style='color:#1F497D;mso-fareast-language:ES-MX'><o:p></o:p></span></p><p class=MsoNormal><b><span style='font-size:9.0pt;color:#333333;mso-fareast-language:ES-MX'>Global Telesourcing México, S. de R.L. de C.V. | </span></b><b><span style='font-size:9.0pt;background:white;mso-fareast-language:ES-MX'>Aarón Sáenz #1891-1</span></b><b><span style='color:#1F497D;mso-fareast-language:ES-MX'> </span></b><b><span style='font-size:9.0pt;color:#333333;mso-fareast-language:ES-MX'>| Monterrey, N.L., México<br>Direct 703 894 1667 | Mobile US 703 894 1667 | Mobile MX +52 1 812 000 7362 | <a href="mailto:crangel@globaltelesourcing.com">crangel@globaltelesourcing.com</a><o:p></o:p></span></b></p><p class=MsoNormal><b><span lang=EN-US style='font-size:9.0pt;color:#333333;mso-fareast-language:ES-MX'>________________________________________________________________________________________________________________</span></b><span lang=EN-US style='color:#1F497D;mso-fareast-language:ES-MX'><o:p></o:p></span></p><p class=MsoNormal style='margin-right:28.8pt'><span lang=EN-US style='font-size:7.0pt;font-family:"Arial","sans-serif";mso-fareast-language:ES-MX'>The information contained in this e-mail and any attached documents may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient of this message, or if this message has been sent to you in error, please immediately alert the sender by reply e-mail and then delete this message, including any attachments. Any dissemination, distribution or other use of the contents of this message by anyone other than the intended recipient is strictly prohibited. </span><span lang=EN-US style='color:#1F497D;mso-fareast-language:ES-MX'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D;mso-fareast-language:ES-MX'><o:p> </o:p></span></p></div><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:ES-MX'>De:</span></b><span lang=ES style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:ES-MX'> sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] <b>En nombre de </b>Daniel-Constantin Mierla<br><b>Enviado el:</b> jueves, 26 de junio de 2014 03:12 a.m.<br><b>Para:</b> Kamailio (SER) - Users Mailing List<br><b>Asunto:</b> Re: [SR-Users] Kamailio Freepbx Integration Dropping Calls<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Hello,<br><br>can you gran the SIP trace on kamailio server for such case?<br><br>You can use ngrep, like:<br><br>ngrep -d any -qt -W byline port 5060<br><br>and send the output to the mailing list. You can replace any sensitive information (e.g., ip address) before sending to mailing list.<br><br>The typical call drop after 30-40 secs is when ACK is not routed properly, but we have to see that in the sip trace.<br><br>Cheers,<br>Daniel<o:p></o:p></p><div><p class=MsoNormal>On 25/06/14 18:50, Carlos Rangel wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>Hello<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span lang=EN-US>I have successfully (I believe) implemented Kamailio 4.1.4 integration with Freepbx 5.2.11 taking as a guide Daniel’s tutorial <a href="http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb">http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb</a>.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>I just did not create the voicemail tables because voice mail is handled by Freepbx. I installed the system in a separate box for testing and connected to the Freepbx Production server via IAX trunk. </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>The system is behind a Cisco Firewall and looks like this</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>    Remote User                                     Internet                       Internal network</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>Cisco 7960 ----DSL router ---|------Internet --------|-----Cisco ASA 5500 FW--------------Kamailio/Freepbx (Same Box)------IAX Trunk----------Freepbx Production Server --------|------ PSTN</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>I have configured the FW to allow UDP and TCP traffic from the corresponding IP as well as tfpt that is needed for the Ciscos to pick up the configuration from the server. I have a few remotes Cisco 7960 phones that  can register remotely in Kamailio as long as the user is added with kamctl add user password and as long as the extension is created in Freepbx. </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>The problem that I have is when try to make a call from the remote Ciscos the call is dropped after 30 or 40 seconds. I can see from the logs that the problem appears to be that the server is not receiving responses from the phone</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Lucida Console","serif"'>06-25 10:57:30] WARNING[1814] chan_sip.c: Retransmission timeout reached on transmission <a href="mailto:000653dc-39400006-2579bbcd-13d9adcb@192.168.0.22">000653dc-39400006-2579bbcd-13d9adcb@192.168.0.22</a> for seqno 102 (Critical Response) -- See <a href="https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions">https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions</a></span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Lucida Console","serif"'>Packet timed out after 32001ms with no response</span><o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Lucida Console","serif"'>[2014-06-25 10:57:30] WARNING[1814] chan_sip.c: Hanging up call <a href="mailto:000653dc-39400006-2579bbcd-13d9adcb@192.168.0.22">000653dc-39400006-2579bbcd-13d9adcb@192.168.0.22</a> - no reply to our critical packet (see <a href="https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions">https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions</a>).</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>Is this something that we can adjust in kamailio or could it be related to the FW configuration??  Sorry but I am very new to kamailio and sip.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>Thanks</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>Carlos</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:ES-MX'><br><br><br><o:p></o:p></span></p><pre>_______________________________________________<o:p></o:p></pre><pre>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<o:p></o:p></pre><pre><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><o:p></o:p></pre><pre><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre></blockquote><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:ES-MX'><br><br><o:p></o:p></span></p><pre>-- <o:p></o:p></pre><pre>Daniel-Constantin Mierla - <a href="http://www.asipto.com">http://www.asipto.com</a><o:p></o:p></pre><pre><a href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a><o:p></o:p></pre></div></body></html>