<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>Hi,</p>
<p><br>
</p>
<p>Thanks for your suggestion, I have tried it and I am able to do a Inbound call via Nexmo now. But still I am not able to make any outbound&nbsp;call from my application.</p>
<p><br>
</p>
<p>I have checked the FreeSwitch log by siptrace enable and found that my call was terminated with a SIP message as &quot;</p>
<p><strong style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">IP/2.0 407 Proxy Authentication Required</span></strong>&quot;.
</p>
<p><br>
</p>
<p>Please find the siptrace log for my call as an attachment. and let me know what changes or configuration I need to make for Proxy Authentication Header.</p>
<p><br>
</p>
<p>Thanks,</p>
<p><br>
</p>
<p><span id="ms-rterangepaste-end">Regards</span>,</p>
<p>Manish Talwar</p>
<p><br>
</p>
<div style="color: rgb(33, 33, 33);">
<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> freeswitch-users-bounces@lists.freeswitch.org &lt;freeswitch-users-bounces@lists.freeswitch.org&gt; on behalf of Aviv Shaham &lt;aviv@sent.com&gt;<br>
<b>Sent:</b> 06 November 2014 14:39<br>
<b>To:</b> freeswitch-users@lists.freeswitch.org<br>
<b>Subject:</b> Re: [Freeswitch-users] SIP trunking with Nexmo</font>
<div>&nbsp;</div>
</div>
<div>
<div>Hi Manish,<br>
</div>
<div>&nbsp;</div>
<div>Nexmo expects your API KEY to be in the From header. To set the caller ID you will need to use &quot;caller-id-name&quot;. Good timing btw, I just posted a reply to a similar question on Quora. Have a look:&nbsp;<a href="http://qr.ae/DEbk2">http://qr.ae/DEbk2</a>&nbsp;- also
 covers Plivo.<br>
</div>
<div>&nbsp;</div>
<div>Aviv</div>
<div>&nbsp;</div>
<div>&nbsp;</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">
&nbsp;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; margin-top:0px; margin-bottom:0px">
I have make a&nbsp;<span class="highlight" style="background-color:rgb(255,255,255)">SIP Trunking</span>&nbsp;(gateway)&nbsp;in FreeSwitch for&nbsp;connecting Nexmo via bridge. I have added this Nexmo file under &quot;<b>\FreeSWITCH\conf\sip_profiles\external</b>&quot; folder. Its successfully
 registering &quot;<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>&quot;&nbsp;Gateway
 as mentioned below:<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; margin-top:0px; margin-bottom:0px">
&nbsp;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">&nbsp;</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Type &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Data &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; external-ipv6 &nbsp; &nbsp; &nbsp; profile &nbsp; sip:mod_sofia@[2001:0:9d38:90d7:102f:3fc4:3f57:fe73]:5080 &nbsp; &nbsp; RUNNING (0)<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 192.168.1.140 &nbsp; &nbsp; &nbsp; &nbsp; alias &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; internal &nbsp; &nbsp; &nbsp;ALIASED<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;external &nbsp; &nbsp; &nbsp; profile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sip:mod_sofia@192.168.1.140:5080 &nbsp; &nbsp; &nbsp;RUNNING (0)<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">&nbsp; &nbsp; external::example.com &nbsp; &nbsp; &nbsp; gateway &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sip:joeuser@example.com &nbsp; &nbsp; &nbsp;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 &nbsp; &nbsp; &nbsp; gateway &nbsp; &nbsp; &nbsp; &nbsp;sip:b9c280dd:7678b8c4@sip.nexmo.c</span><span class="colour" style="color:rgb(75,165,36)">om
 &nbsp; &nbsp; &nbsp;REGED</span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; internal-ipv6 &nbsp; &nbsp; &nbsp; profile &nbsp; sip:mod_sofia@[2001:0:9d38:90d7:102f:3fc4:3f57:fe73]:5060 &nbsp; &nbsp; RUNNING (0)<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;internal &nbsp; &nbsp; &nbsp; profile &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sip:mod_sofia@192.168.1.140:5060 &nbsp; &nbsp; &nbsp;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">&nbsp;</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>&lt;document type=&quot;xml/freeswitch-httapi&quot;&gt;&lt;params&gt;&lt;/params&gt;&lt;work&gt;&lt;execute applicati</b><b>on=&quot;set&quot; data=&quot;sip_h_api_key=b9c280dd&quot; /&gt;&lt;execute application=&quot;set&quot; data=&quot;sip_h_</b><b>api_secret=7678b8c4&quot; /&gt;&lt;execute application=&quot;set&quot; data=&quot;sip_h_to=919818753995&quot;
 /</b><b>&gt;&lt;execute application=&quot;set&quot; data=&quot;sip_h_from=18188535351 &lt;sip:b9c280dd@sip.nexmo</b><b>.com&gt;&quot; /&gt;&lt;execute application=&quot;set&quot; data=&quot;sip_h_answer_url=http://services.qpayi</b><b>.com:8080/ivr/assets/NexmoTransfer.vxml&quot; /&gt;&lt;dial name=&quot;exten&quot; action=&quot;http://loc</b><b>alhost:8080/ivr/fsdialmenu/dialendresponse/&quot;
 caller-id-name=&quot;HTTAPI Test&quot;&nbsp;</b><br>
</div>
<div><b>caller</b><b>-id-number=&quot;18188535351&quot; context=&quot;default&quot; Dialplan=&quot;XML&quot; &gt;919818753995&lt;/dial&gt;&lt;/</b><b>work&gt;&lt;/document&gt;</b><br>
</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>here,&nbsp;<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>&nbsp;= 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>&nbsp;= mobile number where I am looking for making a call.<br>
</div>
<div>&nbsp;</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. &nbsp;Cause: N</span><span class="colour" style="color:red">ORMAL_UNSPECIFIED</span><br>
</div>
<div>&nbsp;</div>
</div>
<div>Please find the FreeSwitch call Log and&nbsp;<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&nbsp;</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)&nbsp;</span></span></span>as an attachment.<br>
</div>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">&nbsp;</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">&nbsp;</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&nbsp;a call on mobile by this ways.<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">&nbsp;</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">&nbsp;</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>&nbsp;</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>&nbsp;</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>
&nbsp; 15k (text/plain)</li><li><code>Nexmo.xml</code><br>
&nbsp; 3k (text/xml)</li></ul>
</blockquote>
<div>&nbsp;</div>
</div>
</div>
</div>
</body>
</html>