sholinaty
(sholinaty)
June 30, 2021, 3:25pm
1
I found the “AddExtension” Graphql API. it seems nice.
i was surprised however to see that my test user received an email containing my device password and extension.
is there a way to suppress this welcome email? we handle hardware setup, have a centrally-managed softphone, and don’t use the user portal, so the end user does not need (and should not have) the password that is being sent.
we DO need the email address in there for voicemail-to-email however, so simply not including the email is not an option.
Have you tried setting umEnable to False? It’s True by default.
1 Like
sholinaty
(sholinaty)
June 30, 2021, 3:34pm
3
to be entirely honest, i had simply removed the “optional” umEnable line. will try it again with that explicitly disabled.
you’re right though, from here, it seems it does default to on.
https://wiki.freepbx.org/display/FPG/Core+Module+GraphQL+APIs#CoreModuleGraphQLAPIs-CreateExtension
note: the above doc seems outdated, as the sample code mentioned
clientMutationId:
but that is not in the table above.
give me a moment to investigate umEnable False.
sholinaty
(sholinaty)
June 30, 2021, 3:42pm
4
SUCCESS!
sending umEnable: False
successfully stops this behaviour.
for completeness, here is a very basic GQL example im using in postman.
POST to http://{{sever}}/admin/api/api/gql
graphQL query:
addExtension(
input: {
extensionId: 1234
name: "graphql test"
tech: "pjsip"
outboundCid: ""
email: "[email protected] "
umEnable: false
vmPassword: "4321"
vmEnable: true
}
) {
status
message
}
}
which gives the response:
"data": {
"addExtension": {
"status": true,
"message": "Extension has been created Successfully"
}
}
}
1 Like
PitzKey
(Itzik)
June 30, 2021, 4:04pm
5
If you set this to no, then you don’t need to pass the umEnable: falst
1 Like
sholinaty
(sholinaty)
June 30, 2021, 4:04pm
6
Thank you for that as well, PitzKey. very handy.
system
(system)
Closed
July 7, 2021, 4:04pm
7
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.