[Asterisk-Users] Accommodating multiple FWD users

Malcolm Taylor mtaylor at pcnet.com
Mon Apr 19 17:55:29 MST 2004


Thanks to Philipp, Eric and Vic for their responses.  In the end, I decided
to use Philipp's approach and it works like a charm!

	Malcolm

-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Philipp von
Klitzing
Sent: Monday, April 19, 2004 10:33 AM
To: asterisk-users at lists.digium.com
Subject: Re: [Asterisk-Users] Accommodating multiple FWD users

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


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




More information about the asterisk-users mailing list