our asterisk server is currently connected via 4 isdn trunks to our main pbx using it as a voip gateway for homeworkers.
currently this is the dial command for outgoing calls exten => _., 1, Dial,CAPI/141:${EXTEN}
what i like to do, is giving each sip-user a different outgoing msn (the 141 in the example above).
the only solution i found, is to put each user into a different context, but this leads to a very complex and error-prone extentions.conf.
is there a niftier solution?
Well I'm not sure it's niftier but how about:
exten => _.,1,SetVar(MSN=${CALLERID:7:3})
exten => _.,2, Dial,CAPI/${MSN}:${EXTEN}Assuming that the 3 least significant digits of their callerid (from sip.conf) is equal to the MSN you want. If not use a database get keyed by thier sip callerid...
Just an idea...
Later; Tim
_______________________________________________ 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
