Exemplo n.º 1
0
    def get_sofia_url(self):
        """
        get the dialable url for this extension, eg,
        sofia/mydomain.com/600@ip:port
        """

        single_expansion = self.get_single_expansion()
        if not single_expansion:
            raise Exception("There is no single expansion for this "
                            "extension: %s" % str(self))
        return sofiautil.extension_url(single_expansion, self.account)
Exemplo n.º 2
0
 def get_sofia_url(self, modifiers=None):
     """
     Get the dialable url for this extension, eg,
     sofia/mydomain.com/600@ip:port
     """
     single_expansion = self.get_single_expansion()
     if not single_expansion:
         raise Exception(
             _(u"There is no single expansion for this extension: %s") %
             unicode(self))
     return sofiautil.extension_url(single_expansion, self.account,
                                    modifiers)
Exemplo n.º 3
0
    def get_sofia_url(self):
        """
        get the dialable url for this extension, eg,
        sofia/mydomain.com/600@ip:port
        """

        single_expansion = self.get_single_expansion()
        if not single_expansion:
            raise Exception("There is no single expansion for this "
                            "extension: %s" % str(self))
        return sofiautil.extension_url(single_expansion,
                                       self.account)
Exemplo n.º 4
0
 def get_sofia_url(self, modifiers=None):
     """
     Get the dialable url for this extension, eg,
     sofia/mydomain.com/600@ip:port
     """
     single_expansion = self.get_single_expansion()
     if not single_expansion:
         raise Exception(
             _(u"There is no single expansion for this extension: %s") %
             unicode(self))
     return sofiautil.extension_url(
         single_expansion, self.account, modifiers)