I’m really looking forward to you sharing the end result of your project(s) with the community. It will be a nice way to thank those that have been providing help to your various forum avatars.
Allow me to provide some gentle correction. You are soliciting free help in this forum for your commercial project(s), which is absolutely fine. I ask that you consider sharing the result publicly as a way of thanking those that have provided guidance, and as a resource for others in the future. Years hence, when you’ve moved on to other shiny things, a dm request is worthless.
@lgaetz You are right,
but thoses aren’t commercial projects they are from a personnal school one.
And yes i’m still a bit newbie into freepbx just because this isn’t the only thing i do, this is an annex part of the thing.
But well, for sure i will help people with what i learned from this forum if i can.
This is normal and kind from you to worry about this, but this topic wasn’t suppose to create a debate around this.
EDIT : And yes the work i did around the webRTC from scratch, gonna be open source.
And to return on the main problem. This custom webRTC should be able to put trunk auth to launch a one-shot trunk call
If someone still looking at this post, i just need to know how to change PEER details (secret or hostname) of the trunk i’m using.
maybe in [macro-dialout-trunk-predial-hook]
I mean, i have a trunk installed with freepbx.
But i want my server to set a different one on the dialplan, with maybe variables calls ?
We have customers that are making WebRTC calls from our website. By default, when making a WebRTC call, we use our own trunk that we have configured on FreePBX.
We also want to let them use their own Trunk (that they purcharsed on their own) if they don’t want to use our trunk (for cost reason for example). We present our customer with a form where they enter their trunk credential (username/password/domain), and we send these data to our Freepbx server each time they make a call.
Now we need a way to use these variable so we can connect dynamically to the customer’s trunk before making the call. We could manually add our customers’s trunk on the FreePBX GUI and figure out a dialplan to select them according to the customer that is making the call, but we’d like to skip this step and find a way for Asterisk to directly use the variable send with the call