[asterisk-users] Set DID
Lacy Moore - Aspendora
aspendora at gmail.com
Wed Aug 16 20:28:07 MST 2006
You should probably add that you are doing this with FreePBX, not plain
Asterisk. That being said, you might want to ask on those lists, since I
still haven't understood what you are asking.
The way I see it, a call comes in from your IAX provider, and you want that
call sent to a certain extension. You would need to set the context of that
provider to from-iax-provider. Then, in extensions.conf add the following:
[from-iax-provider]
exten => s,1,Goto(2100|local-ext|1)
where 2100 is the extension number and local-ext is the context this
extension is in, or even simpler:
[from-iax-provider]
exten => s,1,Dial(SIP/2100)
if you are dialing a sip device with an extension of 2100.
Now, the problem is going to be that you can't modify your
extension.conffile because you're using FreePBX/Asterisk @
Home/Trixbox/whatever. If
that's the case, then you really should be asking this question elsewhere,
or install plain Asterisk (which I would recommend doing).
Now, looking at what you posted, instead of messing with the caller id, I
would instead use:
exten => s,1,Set(FROM_DID=2125316214)
and continue on. At that point, you can always reference ${FROM_DID} to
find out what DID the incoming call came from. That's what I use. You're
free to use whatever variable you wish. I'm not sure if including this in
the custom context will do what you are wanting to do. Again, you'll have
to ask people who are familiar with FreePBX.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060816/7b96d963/attachment.htm
More information about the asterisk-users
mailing list