<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Hi Manish,<br></div>
<div> </div>
<div>Nexmo expects your API KEY to be in the From header. To set the caller ID you will need to use "caller-id-name". Good timing btw, I just posted a reply to a similar question on Quora. Have a look: <a href="http://qr.ae/DEbk2">http://qr.ae/DEbk2</a> - also covers Plivo.<br></div>
<div> </div>
<div>Aviv</div>
<div> </div>
<div> </div>
<div>On Thu, Nov 6, 2014, at 12:07 AM, Manish Talwar wrote:<br></div>
<blockquote type="cite"><div 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;"> </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; margin-top: 0px; margin-bottom: 0px;">I have make a <span class="highlight" 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 "<b>\FreeSWITCH\conf\sip_profiles\external</b>" folder. Its successfully
registering "<span class="colour" style="color:rgb(75, 165, 36)"><span class="font" style="font-family:Calibri, Arial, Helvetica, sans-serif"><span class="size" style="font-size:small"><span class="size" style="font-size:16px">sip.nexmo.com</span></span></span></span>" Gateway as mentioned below:<br></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; margin-top: 0px; margin-bottom: 0px;"> </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;"> Name Type Data State<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;"> external-ipv6 profile sip:mod_sofia@[2001:0:9d38:90d7:102f:3fc4:3f57:fe73]:5080 RUNNING (0)<br></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"> 192.168.1.140 alias internal ALIASED<br></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)<br></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"> external::example.com gateway sip:joeuser@example.com NOREG<br></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;"><span class="colour" style="color:rgb(75, 165, 36)">external::sip.nexmo.com gateway sip:b9c280dd:7678b8c4@sip.nexmo.c</span><span class="colour" style="color:rgb(75, 165, 36)">om REGED</span><br></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)<br></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)<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;">4 profiles 1 alias<br></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;">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><b><document type="xml/freeswitch-httapi"><params></params><work><execute applicati</b><b>on="set" data="sip_h_api_key=b9c280dd" /><execute application="set" data="sip_h_</b><b>api_secret=7678b8c4" /><execute application="set"
data="sip_h_to=919818753995" /</b><b>><execute application="set" data="sip_h_from=18188535351 <sip:b9c280dd@sip.nexmo</b><b>.com>" /><execute application="set" data="sip_h_answer_url=http://services.qpayi</b><b>.com:8080/ivr/assets/NexmoTransfer.vxml"
/><dial name="exten" action="http://loc</b><b>alhost:8080/ivr/fsdialmenu/dialendresponse/" caller-id-name="HTTAPI Test" </b><br></div>
<div><b>caller</b><b>-id-number="18188535351" context="default" Dialplan="XML" >919818753995</dial></</b><b>work></document></b><br></div>
<div> </div>
<div> </div>
<div>here, <span class="font" style="font-family:Calibri, Arial, Helvetica, sans-serif"><span class="size" style="font-size:small"><span class="size" style="font-size:16px"><b>18188535351</b></span></span></span> = Nexmo virtual number for connecting call.<br></div>
<div><span class="font" style="font-family:Calibri, Arial, Helvetica, sans-serif"><span class="size" style="font-size:small"><span class="size" style="font-size:16px"><b>919818753995</b></span></span></span> = mobile number where I am looking for making a call.<br></div>
<div> </div>
<div>It will not connected to Nexmo and call will be terminated with message as:<br></div>
<div><div><span class="colour" style="color:red">2014-11-06 11:05:18.088340 [INFO] mod_dptools.c:3234 Originate Failed. Cause: N</span><span class="colour" style="color:red">ORMAL_UNSPECIFIED</span><br></div>
<div> </div>
</div>
<div>Please find the FreeSwitch call Log and <span class="font" style="font-family:Calibri, Arial, Helvetica, sans-serif"><span class="size" style="font-size:small"><span class="size" style="font-size:16px">Nexmo Gateway (which I have added in freeswitch conf </span></span></span><span class="font" style="font-family:Calibri, Arial, Helvetica, sans-serif"><span class="size" style="font-size:small"><span class="size" style="font-size:16px">e</span></span></span><span class="font" style="font-family:Calibri, Arial, Helvetica, sans-serif"><span class="size" style="font-size:small"><span class="size" style="font-size:16px">xternal
folder) </span></span></span>as an attachment.<br></div>
</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;">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;"> </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.<br></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;">Thanks,<br></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;">Regards,<br></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;">Manish Talwar<br></div>
<p style="margin-bottom: 0px; margin-top: 0px;"><br></p></div>
<div><u>_________________________________________________________________________</u><br></div>
<div>Professional FreeSWITCH Consulting Services:<br></div>
<div><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br></div>
<div><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br></div>
<div> </div>
<div>Official FreeSWITCH Sites<br></div>
<div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></div>
<div><a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a><br></div>
<div><a href="http://www.cluecon.com">http://www.cluecon.com</a><br></div>
<div> </div>
<div>FreeSWITCH-users mailing list<br></div>
<div><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br></div>
<div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br></div>
<div>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br></div>
<div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></div>
<p style="margin-bottom: 0px; margin-top: 0px;">Email had 2 attachments:<br></p><ul><li><code>FsCall.txt</code><br> 15k (text/plain)</li><li><code>Nexmo.xml</code><br> 3k (text/xml)</li></ul></blockquote><div> </div>
</body>
</html>