[Asterisk-Users] Accommodating multiple FWD users
Philipp von Klitzing
klitzing at pool.informatik.rwth-aachen.de
Mon Apr 19 07:33:25 MST 2004
Hi!
> > Can anyone suggest a way in which all users could dial the prefix 8 and *
> > would automatically associate the correct FWD account for the outbound call?
>
> Try using GoToIf [show application gotoif] in combination with
> ${CALLERIDNUM} [asterisk/doc/README.variables]
I prefer a slightly cleaner method:
1. create a type=peer entry for each outgoing FWD account in sip.conf.
For example you have [fwd-out_joe], [fwd-out_bob], [fwd-out_mary] where
you specify the individual username, fromuser and password
2. in sip.conf put each of your local phone users into their own context
like context=from-joe or context=from-mary
3. in extension.conf you do smth like "include => default" for each of
those person contexts like [from-joe], and arrange a FWD dialout like
_8X. = Dial(SIP/{EXTEN:1}@fwd-out_joe)
If, however, you want to avoid individual contexts in extensions.conf you
could instead us DBput() and DBget() lookup the correct fwd-out_xxx
string based upon your local users's callerid.
Cheers, Philipp
More information about the asterisk-users
mailing list