<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; margin-top: 0px; margin-bottom: 0px;">
Hi,​<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; margin-top: 0px; margin-bottom: 0px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; margin-top: 0px; margin-bottom: 0px;">
I have​ make a <span style="background-color: rgb(255, 255, 255);">SIP Trunking</span> (gateway) in FreeSwitch for connecting Nexmo via bridge. I have added this Nexmo file under "<strong>\FreeSWITCH\conf\sip_profiles\external</strong>​" folder. Its successfully
registering "<font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#4BA524"><span style="font-size: 16px;">sip.nexmo.com</span></font>" Gateway as mentioned below:<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; margin-top: 0px; margin-bottom: 0px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
Name ​Type Data State</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
================================================================================================</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
external-ipv6 profile sip:mod_sofia@[2001:0:9d38:90d7:102f:3fc4:3f57:fe73]:5080 RUNNING (0)</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
192.168.1.140 alias internal ALIASED</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
external profile sip:mod_sofia@192.168.1.140:5080 RUNNING (0)</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
external::example.com gateway sip:joeuser@example.com NOREG</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
<font color="#4BA524">external::sip.nexmo.com gateway sip:b9c280dd:7678b8c4@sip.nexmo.c</font><font color="#4BA524">om REGED</font></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
internal-ipv6 profile sip:mod_sofia@[2001:0:9d38:90d7:102f:3fc4:3f57:fe73]:5060 RUNNING (0)</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
internal profile sip:mod_sofia@192.168.1.140:5060 RUNNING (0)</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
================================================================================================</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
4 profiles 1 alias<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
But when I send the request to FreeSwitch by Dial command as:<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
<div><strong><document type="xml/freeswitch-httapi"><params></params><work><execute applicati</strong><strong>on="set" data="sip_h_api_key=b9c280dd" /><execute application="set" data="sip_h_</strong><strong>api_secret=7678b8c4" /><execute application="set"
data="sip_h_to=919818753995" /</strong><strong>><execute application="set" data="sip_h_from=18188535351 <sip:b9c280dd@sip.nexmo</strong><strong>.com>" /><execute application="set" data="sip_h_answer_url=http://services.qpayi</strong><strong>.com:8080/ivr/assets/NexmoTransfer.vxml"
/><dial name="exten" action="http://loc</strong><strong>alhost:8080/ivr/fsdialmenu/dialendresponse/" caller-id-name="HTTAPI Test" </strong></div>
<div><strong>caller</strong><strong>-id-number="18188535351" context="default" Dialplan="XML" >919818753995</dial></</strong><strong>work></document></strong></div>
<div><br>
</div>
<div><br>
</div>
<div>here, <font face="Calibri,Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><strong>18188535351</strong></span></font> = Nexmo virtual number for connecting call.<br>
</div>
<div><font face="Calibri,Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;"><strong>919818753995</strong></span></font> = mobile number where I am looking for making a call.<br>
</div>
<div><br>
</div>
<div>It will not connected to Nexmo and call will be terminated with message as:<br>
</div>
<div>
<div><font color="red">2014-11-06 11:05:18.088340 [INFO] mod_dptools.c:3234 Originate Failed. Cause: N</font><font color="red">ORMAL_UNSPECIFIED</font>​</div>
<br>
</div>
Please find the FreeSwitch call Log and <font face="Calibri,Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">Nexmo Gateway (which I have added in freeswitch conf </span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">e</span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2"><span style="font-size: 16px;">xternal
folder) </span></font>​as an attachment.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
Please let me know whether I am doing SIP trunking in correct way or need to change something.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
Also, Please suggest me what will be my next step for making a call on mobile by this ways.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
Thanks,<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
Regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">
Manish Talwar​<br>
</div>
<p><br>
</p>
</div>
</body>
</html>