> The thing is I can not set a static CallerID for all outbound calls. > For example "Set(CallerIDnum=2021235395|a)". > > I want to pass the DID numbers which are assign to customers to > outbound provider. For example if a customer with DID number > (3106548899) makes an outbound call, the callerID has to be same the > DID number...So the receive can see its coming from call number > 3106548899. > > Thanks for your help... I am running Asterisk 1.0.9
In the customer definitions in sip.conf, include a line like: callerid=John Doe <3106548899> and in outbound extensions.conf entry, use a callerid variable to pass the callerid within shared outbound sections of extensions.conf. See the README.variables text in asterisk/doc directory. About the only other way that I can think of to accomplish that is to define each such user in their own sip context, and in extensions.conf use those contexts to set their appropriate callerid. The problem really is the end result of trying to use a pbx as a central office switch, effectively trying to replicate the CO's ANI function. _______________________________________________ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@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