Skip to main content
Participant
August 24, 2011
Question

FMG and dynamic SIP profile?

  • August 24, 2011
  • 1 reply
  • 842 views

Currently we can define user profile in sip.xml. Is there any way to make it dynamic? For instance: I want to login into FMS app providing my SIP username and password (or even SIP host and port), and then make a call with this credentials. Now CallControlService.createLeg supports only profiles from sip.xml (sip|1234567@myprofile). The goal is to make a call with supplied username and pass to sip gateway.

Defining profiles for all users in sip.xml is not the answer, as we have tons of them.

This topic has been closed for replies.

1 reply

Participating Frequently
August 25, 2011

Currently FMG supports dynamic sip profile in a limited way. It is possible to specify the destination number, SIP host (and port) but not the authentication username and password using the syntax: (sip|1234567@myhost) or (sip|1234567@myhost@myprofile). In the first case, if "myhost" doesn't match any SIP-profile, then it considered a SIP host and the default profile, if enabled, is used to make the call. For the second case, all the settings of "myprofile" are used, except that the remote SIP host is "myhost".

Alternatively, dynamic SIP profile functionality can be achieved by using FMG HTTP APIs : FMGSetOIDValue, FMGSetOIDAttrib and FMGSaveConfig. Assuming that a SIP profile is used  in a call more frequently than the addition/deletion of a SIP profile, the overhead of config change will not be needed before each call. Please see the section titled "HTTP Configuration APIs" in FMG-HTTP-API guide for details. SIP-profileID could be uniquely generated while inserting the profile from username, sip-host etc. Please let us know if this scheme works for you.