django-twilio
django-twilio copied to clipboard
TWILIO_DEFAULT_CALLERID missing from documentation
The TWILIO_DEFAULT_CALLERID
setting is not mentioned in the settings documentation.
It's mentioned in the docs here but it doesn't seem to be used by the app anywhere.
But is it the account sid or what?
Correct, it appears to have zero usage in the framework currently.
It is supposed to be the default number (e.g. "5555555555") that is shown/used for calling the call or text in progress.
So if Person A is calling person B, then person B will get a voice call from this default caller ID (it won't look like Person A is calling, even though they are). So if you look up that call log on twilio, you'll have 2 call legs. The first leg person A calling into your system, and this number calling person B (that's my understanding. but either way, that's the idea). You can also check the twilio call logs to verify. But that's the concept at least.
But, it's not used :) We could/should look into that if we think it's useful still.
This setting, if we use it, will be a number that you have already purchased from twilio. It is a twilio phone number.
I've had some more time to think about this. This is probably usage on the application-level.
If I build an application and I assign this setting, then I can use it as settings.TWILIO_DEFAULT_CALLERID
whenever I do r.dial(to_num=the_to_num, caller_id=settings.TWILIO_DEFAULT_CALLERID)
. It does lose some if its power this way given that we have to specify it "by hand", but at least it won't be hard-coded to a number.
That's my take at least.