Closed wizhippo closed 8 years ago
You get $data but then you never use $data again
Data is just used to make sure an device exists before we try to originate to the user. We could blindly send it the 'from'. To be honest I'm not sure why the check for the device in the first place.
It's used to prevent callerid spoofing. However it could probably be checked by just checking what the default extension is of the user from usermanager
@tm1000 thanks for the clarification and direction. Is this better?
Yes that is perfect! thanks!
Originate using the correct extension for originate when in user and device mode.