You can test manually any SRV DNS record using dig, like this:<br>dig -t SRV _sip._udp.fwd.pulver.com<br><br>At the asterisk CLI you can also verify that SRV lookup has been succeeded. It shows something like this when it does:<br>
parse_srv: SRV mapped to host <a href="http://fwd.pulver.com">fwd.pulver.com</a>, port 5060<br>In your dialplan you can also trigger some Set(CDR(userfield)=SRV call from ${SIPCHANINFO(recvip)}) so that in your mysql CDR table be written which calls got sent by IP to any SIP URI.<br>
<br>Regards,<br>Ricardo Carvalho.<br><br><br><br><div class="gmail_quote">On Fri, Mar 28, 2008 at 12:00 PM, Aadilkhan Maniyar &lt;<a href="mailto:amaniyar@velankani.com">amaniyar@velankani.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">















<div link="blue" vlink="blue" lang="EN-US">

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Thanks for the reply <span>Recardo</span><span>..</span></span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">I was indeed looking at something like
this…</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Also I was also looking at Asterisk's
SRV lookups… Is there anyway I can know that a SRV lookup has failed?</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Regards,</span></font></p>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Aadil</span></font></p><div><div></div><div class="Wj3C7c">

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<p style="margin-left: 0.5in;"><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;">-----Original Message-----<br>
<b><span style="font-weight: bold;">From:</span></b> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>
[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b><span style="font-weight: bold;">On Behalf Of </span></b>Ricardo Carvalho<br>
<b><span style="font-weight: bold;">Sent:</span></b> Friday, March 28, 2008 4:07
PM<br>
<b><span style="font-weight: bold;">To:</span></b> Asterisk Users Mailing List -
Non-Commercial Discussion<br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [asterisk-users]
Calling users to the external domain usingAsterisk</span></font></p>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<p style="margin-right: 0in; margin-bottom: 12pt; margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">What you are looking for is something like this piece
of code. Adapt it for your scenario:<br>
<br>
[default]<br>
exten =&gt; _.,1,NoOp(incomming call from ${CALLERID} to ${EXTEN}@${SIPDOMAIN})<br>
exten =&gt; _.,2,GotoIf($[${LEN(${SIPDOMAIN})} = 0]?10)<br>
exten =&gt; _.,3,GotoIf($[${SIPDOMAIN} = ${MYDOMAIN}]?10)<br>
exten =&gt; _.,4,GotoIf($[${SIPDOMAIN} = ${MYFQDN}]?10)<br>
exten =&gt; _.,5,GotoIf($[${SIPDOMAIN} = ${MYFQDN}:5060]?10)<br>
exten =&gt; _.,6,GotoIf($[${SIPDOMAIN} = <a href="http://192.168.1.1" target="_blank">192.168.1.1</a>]?10)<br>
exten =&gt; _.,7,NoOp(@${SIPDOMAIN} is from an external domain, sending to
it...)<br>
exten =&gt; _.,8,Dial(SIP/${EXTEN}@${SIPDOMAIN})<br>
exten =&gt; _.,9,HangUp()<br>
exten =&gt; _.,10,Goto(noturi-default,${EXTEN},1)<br>
exten =&gt; h,1,HangUp()<br>
<br>
[noturi-default]<br>
;(your dialplan)<br>
<br>
<br>
Regards,<br>
Ricardo Carvalho.<br>
<br>
<br>
<br>
</span></font></p>

<div>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">On Thu, Mar 27, 2008 at 7:47 AM, Aadilkhan Maniyar
&lt;<a href="mailto:amaniyar@velankani.com" target="_blank">amaniyar@velankani.com</a>&gt;
wrote:</span></font></p>

<div link="blue" vlink="purple">

<div>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Hi All,</span></font></p>

<p style="margin-left: 0.5in;"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">I am a newbie to Asterisk. Presently I am working with
Asterisk 1.4.17 and using it to make SIP calls.</span></font></p>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">I have a configuration of Asterisk which serves the
users in a particular domain, say <a href="http://internal.com" target="_blank">internal.com</a></span></font></p>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">I would like to make a SIP call from <a href="mailto:bob@internal.com" target="_blank">bob@internal.com</a> to <a href="mailto:charles@external.com" target="_blank">charles@external.com</a> </span></font></p>


<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">I have added the following lines in extensions.conf</span></font></p>

<p style="margin-left: 0.5in; text-indent: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">exten =&gt;&nbsp; charles,1,Dial(<a href="mailto:SIP/$%7BEXTEN%7D@external.com" target="_blank">SIP/${EXTEN}@external.com</a>)</span></font></p>


<p style="margin-left: 0.5in; text-indent: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">exten =&gt;&nbsp; charles,2,Hangup</span></font></p>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Asterisk does a DNS SRV lookup and resolves the <a href="http://external.com" target="_blank">external.com</a> to its proper IP
and calls are established.</span></font></p>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">But the problem with the above configuration is that I
have manually added users that are in the external domain.</span></font></p>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Is there any way wherein I can call the users in <a href="http://external.com" target="_blank">external.com</a> without adding them
in the extensions.conf?</span></font></p>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Any help would be appreciated.</span></font></p>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Thanks,<br>
Aadil</span></font></p>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

</div>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></span></font></p>

</div>

<p style="margin-left: 0.5in;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div></div></div>

</div>


<br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
 &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>