And you login to fop2 with extension 100, when you dial out, it will originate the call using "some-funky-context"
If you login with extension 200, it will originate using "my-other-tennant-context"
fop2 never uses explicity the "default" context. If that happens is because your context is missing in the button definition and asterisk defaults to "default" when the context is empty.
I am sorry, I cannot debug issues with your provider. If your provider authenticates based on the callerid then it is super insecure. You cannot tweak fop2 to fix it, you have to tweak your dialplan. The origination goes to a context, extension and priority. It does not perform a Dial. you have to fix your dialplan.
I just saw you had 2.1 out so I upgraded to that and used the new fop2cfg file. One of those fixed the problem for me as it works now. However its dialing on all the available lines on my Aastra so I need to work that out. Progress comes in steps.
You can't change the context unless you modify the autoconfig-buttons-freepbx.sh script. By default it uses the context defined in the sip peer definition.
Comments
[SIP/100]
type=extension
context=some-funky-context
extension=100
[SIP/200]
type=extension
context=my-other-tennant-context
extension=200
And you login to fop2 with extension 100, when you dial out, it will originate the call using "some-funky-context"
If you login with extension 200, it will originate using "my-other-tennant-context"
fop2 never uses explicity the "default" context. If that happens is because your context is missing in the button definition and asterisk defaults to "default" when the context is empty.
Its not passing my caller ID as seen below. Calling between extensions this information is properly passed.
Best regards,