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:[EMAIL PROTECTED])

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


_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to