<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Thanks again Daniel for replying.</p>
<p>Now the call is failing with 404 not found and goes to voicemail. I was calling between 7632689991 and 7632689993, I looked the extensions on freeswitch, and look OK but it is possible I might have missed something. Freeswitch issues the following errors.
 Thank you again for your help</p>
<p>Abdulmalik Sherif<br>
</p>
<p><br>
</p>
2016-01-13 05:37:29.572184 [NOTICE] switch_channel.c:1055 New Channel sofia/internal/7632689991@AbdulKamailioSIP.com [e945266d-8eec-4c0e-80b4-b306f43e18df]<br>
2016-01-13 05:37:29.572184 [INFO] mod_dialplan_xml.c:635 Processing 7632689991 <7632689991>->kb-7632689993 in context public<br>
2016-01-13 05:37:29.572184 [NOTICE] switch_ivr.c:1861 Transfer sofia/internal/7632689991@AbdulKamailioSIP.com to XML[kb-7632689993@default]<br>
2016-01-13 05:37:29.572184 [INFO] mod_dialplan_xml.c:635 Processing 7632689991 <7632689991>->kb-7632689993 in context default<br>
2016-01-13 05:37:29.572184 [CRIT] mod_dptools.c:1638 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
<br>
2016-01-13 05:37:29.572184 [CRIT] mod_dptools.c:1638 Open /usr/local/freeswitch/conf/vars.xml and change the default_password.<br>
2016-01-13 05:37:29.572184 [CRIT] mod_dptools.c:1638 Once changed type 'reloadxml' at the console.<br>
2016-01-13 05:37:29.572184 [CRIT] mod_dptools.c:1638 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
<br>
2016-01-13 05:37:39.632245 [NOTICE] switch_channel.c:1055 New Channel sofia/internal/7632689993@10.22.52.2 [d52b6ef9-c4f6-4edf-aff9-8a8da3761788]<br>
2016-01-13 05:37:39.632245 [NOTICE] sofia.c:7539 Hangup sofia/internal/7632689993@10.22.52.2 [CS_ROUTING] [UNALLOCATED_NUMBER]<br>
2016-01-13 05:37:39.632245 [INFO] mod_dptools.c:3244 Originate Failed.  Cause: UNALLOCATED_NUMBER<br>
2016-01-13 05:37:39.632245 [NOTICE] switch_core_session.c:1641 Session 12 (sofia/internal/7632689993@10.22.52.2) Ended<br>
2016-01-13 05:37:39.632245 [NOTICE] switch_core_session.c:1645 Close Channel sofia/internal/7632689993@10.22.52.2 [CS_DESTROY]<br>
2016-01-13 05:37:39.632245 [NOTICE] sofia_media.c:92 Pre-Answer sofia/internal/7632689991@AbdulKamailioSIP.com!<br>
2016-01-13 05:37:39.653182 [NOTICE] mod_dptools.c:1268 Channel [sofia/internal/7632689991@AbdulKamailioSIP.com] has been answered<br>
2016-01-13 05:37:50.532203 [NOTICE] sofia.c:952 Hangup sofia/internal/7632689991@AbdulKamailioSIP.com [CS_EXECUTE] [NORMAL_CLEARING]<br>
2016-01-13 05:37:50.552949 [NOTICE] switch_core_session.c:1641 Session 11 (sofia/internal/7632689991@AbdulKamailioSIP.com) Ended<br>
2016-01-13 05:37:50.552949 [NOTICE] switch_core_session.c:1645 Close Channel sofia/internal/7632689991@AbdulKamailioSIP.com [CS_DESTROY]<br>
<p>###########################################################################################################################</p>
<p><br>
</p>
<p><br>
</p>
<p>My extensions are as follow:</p>
<p><include><br>
  <user id="7632689991"><br>
    <params><br>
      <param name="vm-password" value="1001"/><br>
    </params><br>
    <variables><br>
      <variable name="accountcode" value="7632689991"/><br>
      <variable name="user_context" value="default"/><br>
      <variable name="effective_caller_id_name" value="Extension 7632689991"/><br>
      <variable name="effective_caller_id_number" value="7632689991"/><br>
    </variables><br>
  </user><br>
</include><br>
</p>
<p>##########################################################################</p>
<p><include><br>
  <user id="7632689993"><br>
    <params><br>
      <param name="vm-password" value="1003"/><br>
    </params><br>
    <variables><br>
      <variable name="accountcode" value="7632689993"/><br>
      <variable name="user_context" value="default"/><br>
      <variable name="effective_caller_id_name" value="Extension Sherif"/><br>
      <variable name="effective_caller_id_number" value="7632689993"/><br>
    </variables><br>
  </user><br>
</include><br>
############################################################################<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Daniel-Constantin Mierla <miconda@gmail.com><br>
<b>Sent:</b> Wednesday, January 13, 2016 6:34 AM<br>
<b>To:</b> malik sherif; Kamailio (SER) - Users Mailing List<br>
<b>Subject:</b> Re: [SR-Users] Kamailio and freeswitch integration for SBC</font>
<div> </div>
</div>
<div>Hello,<br>
<br>
the error with creating the SIP UA is most probable because of kamailio listening on 5060 and freeswitch trying to do the same.<br>
<br>
To troubleshoot the 408, use ngrep or other network sniffing tool, and look on the network to see where the sip request is sent. Like:<br>
<br>
ngrep -d any -qt -W byline port 5060<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 13/01/16 00:52, malik sherif wrote:<br>
</div>
<blockquote type="cite">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hello Daniel,</p>
<p>No I didn't configure freeswitch with loopback but for some reason it was going to the loopback , it consider it as default network but I am able to point both kamailio and freeswitch to 10.22.52.2 by disabling IP-v6 for both external-ipv6.xml and internal-ipv6.xml.
 Freeswitch was complaining about  the following error.  <br>
</p>
<pre><code>sofia.c:2853 Error Creating SIP UA for profile: internal-ipv6 (<a class="moz-txt-link-freetext" href="sip:mod_sofia@">sip:mod_sofia@</a>[::1]
:5060;transport=udp,tcp) ATTEMPT 2 (RETRY IN 5 SEC)</code></pre>
netstat -unlp now shows what I want but call is time out with 408, I might have to check if port 5090 reachable but I am still wandering why i am getting 408.<br>
<p><br>
</p>
udp        0      0 10.22.52.2:5060          0.0.0.0:*                           10603/kamailio       <br>
udp        0      0 10.22.52.2:5090          0.0.0.0:*                           10469/freeswitch     <br>
<p>udp        0      0 10.22.52.2:5092          0.0.0.0:*                           10469/freeswitch</p>
<p><br>
</p>
<p>Thanks again Daniel for responding <br>
</p>
<p>Abdul<br>
</p>
<br>
<div style="color:rgb(0,0,0)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> sr-users
<a class="moz-txt-link-rfc2396E" href="mailto:sr-users-bounces@lists.sip-router.org">
<sr-users-bounces@lists.sip-router.org></a> on behalf of Daniel-Constantin Mierla
<a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a><br>
<b>Sent:</b> Tuesday, January 12, 2016 11:07 PM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List<br>
<b>Subject:</b> Re: [SR-Users] Kamailio and freeswitch integration for SBC</font>
<div> </div>
</div>
<div>Hello,<br>
<br>
did you configure the freeswitch to listen on loopback? You would need to do bridging of singnaling and eventually rtp between the network interface and loopback if you want this kind of topology.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 12/01/16 19:00, malik sherif wrote:<br>
</div>
<blockquote type="cite">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hello Abdul Basit,</p>
<p>I specified that kamailio and freeswitch to share same IP address but different udp port but netstat -unlp show freeswitch use the loopback IP address (port 5090 and 5092) and kamailio show the loopback IP and 10.22.52.2 port 5060. Does freeswitch has to
 go to loopback IP address?</p>
<p>Thank you very much Abdul Basit for responding.</p>
<p>Abdulmalik Sherif<br>
</p>
<p><br>
</p>
<p><br>
</p>
udp        0      0 10.22.52.2:5060         0.0.0.0:*                           31036/kamailio       <br>
udp        0      0 127.0.0.1:5060          0.0.0.0:*                           31036/kamailio       <br>
udp        0      0 127.0.0.1:5090          0.0.0.0:*                           30958/freeswitch     <br>
udp        0      0 127.0.0.1:5092          0.0.0.0:*                           30958/freeswitch<br>
<br>
<div style="color:rgb(0,0,0)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> sr-users
<a class="moz-txt-link-rfc2396E" href="mailto:sr-users-bounces@lists.sip-router.org">
<sr-users-bounces@lists.sip-router.org></a> on behalf of Abdul Basit <a class="moz-txt-link-rfc2396E" href="mailto:basitstar@hotmail.com">
</a><a class="moz-txt-link-rfc2396E" href="mailto:basitstar@hotmail.com"><basitstar@hotmail.com></a><br>
<b>Sent:</b> Tuesday, January 12, 2016 2:55 AM<br>
<b>To:</b> Kamailio SER - Users Mailing List<br>
<b>Subject:</b> Re: [SR-Users] Kamailio and freeswitch integration for SBC</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi AbdulMalik,<br>
<br>
<br>
brother this is not kamailio related issue, this is some misconfiguration.<br>
I think, there is some port misconfiguration , kamailio running on 5060 and also freeswitch running on 5060, make ur kamailio run specfically on 5060, and freeswitch on different port entirely.  please do it and share netstat result again
<br>
<br>
udp        0      0 10.22.52.2:5060         0.0.0.0:*                           9075/kamailio 
<br>
udp        0      0 ::1:5060                :::*                                9002/freeswitch    
<br>
<br>
<br>
Regards,<br>
AB<br>
<div>
<hr id="stopSpelling">
From: <a class="moz-txt-link-abbreviated" href="mailto:asherif74@hotmail.com">asherif74@hotmail.com</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">
sr-users@lists.sip-router.org</a><br>
Date: Mon, 11 Jan 2016 23:47:41 +0000<br>
Subject: Re: [SR-Users] Kamailio and freeswitch integration for SBC<br>
<br>
<div id="ecxdivtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
When I run netstat -unlp command it show the following list. Is it correct for freeswitch to have the loopback IP address? I think this is maybe a reason the invite is timeout with 408 but I am not sure. How can I fix this problem? I just want to confirm if
 integrating Kamailio with freeswitch works as SBC?<br>
Thanks Again<br>
<br>
<br>
<br>
<br>
udp        0      0 10.22.52.2:7060         0.0.0.0:*                           9075/kamailio       <br>
udp        0      0 10.22.52.2:5060         0.0.0.0:*                           9075/kamailio       <br>
udp        0      0 127.0.0.1:5090          0.0.0.0:*                           9002/freeswitch     <br>
udp        0      0 127.0.0.1:5092          0.0.0.0:*                           9002/freeswitch  <br>
udp        0      0 ::1:5060                :::*                                9002/freeswitch     <br>
udp        0      0 ::1:5080                :::*                                9002/freeswitch    <br>
<br>
<br>
<br>
<div style="color:rgb(24,22,21)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="ecxdivRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri,
                                sans-serif"><b>From:</b> sr-users
<a class="moz-txt-link-rfc2396E" href="mailto:sr-users-bounces@lists.sip-router.org">
<sr-users-bounces@lists.sip-router.org></a> on behalf of malik sherif <a class="moz-txt-link-rfc2396E" href="mailto:asherif74@hotmail.com">
<asherif74@hotmail.com></a><br>
<b>Sent:</b> Monday, January 11, 2016 5:03 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">
sr-users@lists.sip-router.org</a><br>
<b>Subject:</b> Re: [SR-Users] Kamailio and freeswitch integration for SBC</font>
<div> </div>
</div>
<div>
<div id="ecxdivtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
Hello,<br>
Any hint? How do I get a response?  is it through user digest? <span></span><br>
<span>Thanks</span><br>
<span>Abdulmalik Sherif</span><br>
<br>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="ecxdivRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> sr-users
<a class="moz-txt-link-rfc2396E" href="mailto:sr-users-bounces@lists.sip-router.org">
<sr-users-bounces@lists.sip-router.org></a> on behalf of malik sherif <a class="moz-txt-link-rfc2396E" href="mailto:asherif74@hotmail.com">
<asherif74@hotmail.com></a><br>
<b>Sent:</b> Friday, January 8, 2016 7:39 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">
</a><a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<b>Subject:</b> [SR-Users] Kamailio and freeswitch integration for SBC</font>
<div> </div>
</div>
<div>
<div id="ecxdivtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
Hello,<br>
I was able to have successful call with kamailio and after integrating kamailio with freeswitch using the following link, the invite timeout and as a result the call failed.The status on kamailio show these info. Do I need to download outbound model? I am running
 kamailio ver 4.1.1 and freeswitch 1.4.18.<br>
<br>
<br>
kamailio[19153]: 0(19162) INFO: rr [../outbound/api.h:54]: ob_load_api(): Failed to import bind_ob<br>
 kamailio[19153]: 0(19162) INFO: rr [rr_mod.c:159]: mod_init(): outbound module not available<br>
<br>
<br>
<span style="font-family:"Calibri","sans-serif""><a class="moz-txt-link-freetext" href="http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc"></a><a class="moz-txt-link-freetext" href="http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc">http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc</a></span>
<div id="LPBorder_GT_14526208031040.4396164270867692" style="margin-bottom:20px; overflow:auto; width:100%" contenteditable="false">
<table id="LPContainer_14526208030940.2633741344305218" style="width:90%; background-color:rgb(255,255,255); overflow:auto; padding-top:20px; padding-bottom:20px; margin-top:20px; border-top:1px dotted
                                          rgb(200,200,200); border-bottom:1px dotted
                                          rgb(200,200,200)" cellspacing="0">
<tbody>
<tr style="border-spacing:0px" valign="top">
<td colspan="1" id="ImageCell_14526208030960.05220938578522738" style="width:250px; display:table-cell; padding-right:20px">
<div id="LPImageContainer_14526208030960.5311618042799746" style="background-color:rgb(255,255,255); height:49px; margin:auto; display:table; width:180px">
<a target="_blank" href="http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc" id="LPImageAnchor_14526208030970.7659222730050124" style="display:table-cell; text-align:center"><img style="display:inline-block; margin-left:auto; margin-right:auto; max-width:250px; max-height:250px; height:49px; width:180px; border-width:0px; vertical-align:bottom" height="49" width="180" src="http://kb.asipto.com/_media/wiki:logo.png"></a></div>
</td>
<td colspan="2" id="TextCell_14526208030980.27989634851831025" style="vertical-align:top; padding:0px; display:table-cell">
<div id="LPTitle_14526208030980.32545733105349905" style=""><a target="_blank" href="http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc" id="LPUrlAnchor_14526208031000.19839444808270112" style="text-decoration:none">freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc
 [Asipto ...</a></div>
<div id="LPMetadata_14526208031000.9779273151048514" style="">kb.asipto.com</div>
<div id="LPDescription_14526208031020.383221521328172" style="">The scope of this tutorial is to show how you can use Kamailio (former OpenSER) and FreeSWITCH to build a complete SIP/VoIP platform for large number of subscribers.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<span style="font-family:"Calibri","sans-serif""></span><br>
Thank you very much and your help is appreciated.<br>
Thanks<br>
Abdul<br>
<span style="font-family:"Calibri","sans-serif""></span><br>
<br>
<span style="font-family:"Calibri","sans-serif""></span><br>
<br>
<span style="font-family:"Calibri","sans-serif""></span><br>
<span style="font-family:"Calibri","sans-serif""><a id="ecxLPlnk316256" href="http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc" target="_blank"><br>
</a></span><br>
<div id="ecxLPBorder_GT_14522810569430.20568789829030087" style="overflow:auto; width:100%">
<table id="ecxLPContainer_14522810569220.5205856588552134" style="width:90%; background-color:rgb(255,255,255); overflow:auto; padding-top:20px; padding-bottom:20px; border-top:1px dotted
                                          rgb(200,200,200); border-bottom:1px dotted
                                          rgb(200,200,200)" cellspacing="0">
<tbody>
<tr style="border-spacing:0px" valign="top">
<td colspan="1" id="ecxImageCell_14522810569260.464580891131801" style="width:250px; display:table-cell; padding-right:20px">
<div id="ecxLPImageContainer_14522810569270.24389599520059857" style="background-color:rgb(255,255,255); height:49px; display:table; width:180px">
<a target="_blank" href="http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc" id="ecxLPImageAnchor_14522810569300.7275686506344291" style="display:table-cell; text-align:center"><img style="display: inline-block; max-width: 250px; max-height: 250px; height: 49px; width: 180px; border-width: 0px; vertical-align: bottom; -moz-user-select: none;" height="49" width="180" src="http://kb.asipto.com/_media/wiki:logo.png"></a></div>
</td>
<td colspan="2" id="ecxTextCell_14522810569350.8140484181343103" style="vertical-align:top; padding:0px; display:table-cell">
<div id="ecxLPTitle_14522810569350.5407953290945959" style=""><a target="_blank" href="http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc" id="ecxLPUrlAnchor_14522810569390.5735546042118297" style="text-decoration:none">freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc
 [Asipto ...</a></div>
<div id="ecxLPMetadata_14522810569390.09141085491429912" style="">kb.asipto.com</div>
<div id="ecxLPDescription_14522810569410.27389675705103333" style="">The scope of this tutorial is to show how you can use Kamailio (former OpenSER) and FreeSWITCH to build a complete SIP/VoIP platform for large number of subscribers.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://miconda.eu">http://miconda.eu</a></pre>
</div>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://miconda.eu">http://miconda.eu</a></pre>
</div>
</div>
</div>
</body>
</html>