19 thoughts on “Asterisk 11 + Google Voice: Multiple Lines

  1. thcii

    great article! for some reason, all outbound calls seem to originate from the same number and not the originating google account. can you help?

    Reply
    1. dantheman2865 Post author

      Thanks! Will you post (maybe use pastebin.com) or email your extensions.conf with some more details? How many Google Voice lines are you using in this case?

      Reply
      1. thcii

        i have two google voice accounts with a third on the way. all outbound calls seem to route through the home context using the google account listed there. pastebin -> trabbits (this number is handy to identify where you are calling from 18004444444.)

        Reply
          1. thcii

            problem solved! when i added the additional GV accounts, i failed to update/add the new context names in sip.conf. btw, i will be testing this with a raspberrypi and i will let you know how it goes. thanks again. thcii

          2. dantheman2865 Post author

            That’s what I suspected, congrats! I would love to hear how the Raspberry Pi handles the load. It should be fine, but it would be cool to make 2 or 3 phone calls outgoing and see the processor load (and note the audio quality).

  2. pschakravarthi

    Getting following error when trying to do outbound call using google

    Unable to add Google ICE candidates as ICE support not available or no candidates available

    Getting following error when incoming call from google

    Received Google transport information on session ‘SIP1300447863@10.236.195.103’ but ICE support not available

    OS : CentOS 64Bit
    Asterisk Version : 11.7.0

    No nat.. direct public IP assigned to Asterisk VM

    Reply
    1. dantheman2865 Post author

      Did you follow the original post? If so, can you post your configuration files, say to pastebin?

      Reply
      1. pschakravarth

        Yes.. I followed original post. Here Is my config details

        sip.conf
        ===========================

        [general]
        context=default
        allowoverlap=no
        bindport=5060
        bindaddr=0.0.0.0
        tcpenable=yes
        tcpbindaddr=0.0.0.0
        srvlookup=yes
        t38pt_udptl=yes
        promiscredir=yes

        [6821]
        type=friend
        nat=yes
        secret=yP239vvs#
        context=users
        qualify=yes
        host=dynamic
        ;transport=tcp
        mailbox=6821@default
        callerid=”MyHome”
        canreinvite = no

        motif.conf
        ========================
        [default](!)
        disallow=all
        allow=ulaw
        allow=h264
        ;context=google-in ; Default context that incoming sessions will land in

        [mygthome](default)
        transport=ice-udp
        connection=mygthome
        context=mygthome-in

        xmpp.conf
        =======================

        [mygthome]
        type=client
        serverhost=talk.google.com
        username=mygthome@gmail.com/Talk
        secret=mypassword
        port=5222
        usetls=yes
        priority=10
        usesasl=yes
        statusmessage=”onAsterisk**”
        timeout=100

        rtp.conf
        =======================
        [general]
        icesupport=yes
        rtpstart=10000
        rtpend=12000

        extentions.conf
        =======================
        [mygthome-in]
        exten => s,1,NoOp()
        exten => mygthome@gmail.com,n,Dial(SIP/6821,180,D(:1))
        exten => mygthome@gmail.com,n,Hangup()

        [trunk]
        exten => _92XXXXXXXXXX,1,Dial(Motif/mygthome/${EXTEN:-10}@voice.google.com)
        exten => _92XXXXXXXXXX,n,Hangup()

        Reply
          1. dantheman2865 Post author

            Unfortunately, I cannot see anything wrong with this configuration. Doubly unfortunately, Google is ending support for XMPP in Google Voice this coming May. So sorry!

  3. twinclouds

    Hi,
    I tried the .conf files and they work pretty well. The only question is how the asterisk known the incoming call is from one GV account or the other? I understand outgoing calls nut not sure about the incoming call. Hope you can explain. Thanks.

    Reply
    1. dantheman2865 Post author

      Hi twinclouds, Incoming GV calls are handled in res_xmpp.conf, which gets passed into motif.conf. In this file, you can set the context that those incoming calls dump into using the “context=” line. Glad this is working for you!

      Reply
      1. twinclouds

        Thanks. That makes sense.
        Actually, I used your approach on my Oauth2.0 enabled asterisk. Everything works fine. However, there’s no res_xmpp.conf but only xmpp.conf I don’t know if it is due to Oauth2.0.
        Thanks again for your service to the community. I always use the instructions of your first post when I set up my Asterisk11 with GV.

        Reply
        1. dantheman2865 Post author

          Thanks! I wrote these guides because I couldn’t find anything written in plain English when I was first figuring all of this out. Google ended official support for XMPP in Google Voice, but I guess they still haven’t closed the service, right?

          Reply
          1. twinclouds

            Yes. It is still alive and well. I don’t know if Google will shut it down at all. At least there haven’t been any indications or rumors lately.

Leave a Reply