[asterisk-users] Calling users to the external domain using Asterisk
Mojo with Horan & Company, LLC
mojo at horanappraisals.com
Thu Mar 27 13:47:31 CDT 2008
Aadilkhan Maniyar wrote:
> Hi All,
>
> I am a newbie to Asterisk. Presently I am working with Asterisk 1.4.17
> and using it to make SIP calls.
> I have a configuration of Asterisk which serves the users in a
> particular domain, say internal.com
> I would like to make a SIP call from bob at internal.com to
> charles at external.com
> I have added the following lines in extensions.conf
> exten => charles,1,Dial(SIP/${EXTEN}@external.com)
> exten => charles,2,Hangup
>
> Asterisk does a DNS SRV lookup and resolves the external.com to its
> proper IP and calls are established.
> But the problem with the above configuration is that I have manually
> added users that are in the external domain.
>
> Is there any way wherein I can call the users in external.com without
> adding them in the extensions.conf?
>
> Any help would be appreciated.
>
> Thanks,
> Aadil
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
I could be wrong about this, but isn't that what a switch statement is
for? So you might check to see if the dialed number is local to
internal.com, then you might do a switch statement to external.com's
dialplan if it wasn't local?
moj
More information about the asterisk-users
mailing list