[Asterisk-Users] Re: [OT] Sipura-3000 - Immediate hangup on inbound PSTN calls

Randy Bush randy at psg.com
Sun Oct 3 14:47:36 MST 2004


> Can you post spa 3000 config for inbound fxo to asterisk?

<http://rip.psg.com/~randy/spa3k.html>

and the sip.conf snippet

    [biwa-pstn-in]
    type=peer
    auth=md5
    secret=haha
    username=asterisk
    fromuser=asterisk
    host=spa3k.foo.edu
    port=5061
    dtmfmode=rfc2833
    nat=no
    canreinvite=yes
    context=spa3k-pstn-in

and the extensions.conf snippet

    [spa3k-pstn-in]
    exten => _X.,1,SetVar(areacode=666)
    exten => _X.,2,SetVar(mailbox=42)
    exten => _X.,3,GoTo(ext-common,s,1)

    [ext-common]
    exten => s,1,Background(zz-in-who-do-you-want)
    exten => i,1,Hangup()
    exten => t,1,GoTo(ext-common,s,1)
    include => speeddials
    include => extensions
    include => conferences
    include => applications

you might ask why the two contexts with goto.  the answer is
that without that it did not work because the first had to
consume the spa3k's extension from the sip connection.

hope this helps someone.  i tried to get the anonymization
correct so it would not make it hard to understand.

randy




More information about the asterisk-users mailing list