[Asterisk-Users] Re: CLUELESS NEWBIE needs help making an outbound sip call to PSTN

Rich Adamson radamson at routers.com
Fri Jun 3 08:13:33 MST 2005


> Just a slight correction, in case the OP didn't realise it was an error:
> 
> In article <Chameleon.1117805299.adar0 at vegas>,
> Rich Adamson <radamson at routers.com> wrote:
> > 
> > When dialing an outbound sip call (via your sip provider), the Dial()
> > statement can use the form:
> >   exten => _1XXXXXXXXXX,1,Dial(SIP/myOutContext)
> > where the myOutContext would look something like:
> >  [myOutContext]
> >  type=peer	; for outbound calls
> >  (other parameters as needed to authenticate an outbound call)
> 
> The Dial command needs to pass the dialled number to the ITSP,
> so I would think it should be:
> 
> exten => _1XXXXXXXXXX,1,Dial(SIP/${EXTEN}@myOutContext)
> 
> or something similar.
> 
> I'm assuming it isn't passed my some magic means if the Dial command
> is written as per Rich's example. Is it?

Ops (running to find the coffee pot).

You're right on; no magic involved.

Or, using another syntax that I like:
 exten => _1XXXXXXXXXX,1,Dial(SIP/myOutContext/${EXTEN})






More information about the asterisk-users mailing list