Re: Asterisk conf for Sipgate.co.uk
In article <f2d804$m3m$1$8300dec7@news.demon.co.uk>,
Steve <user@mail.com> wrote:[color=blue]
>Hi,
>
>I tryed to receive phone calls from Sipgate.co.uk
>
>I am currently connected to Sipgate.co.uk
>Now, into my [incoming] calls
>None of the Sipgate phone received seemed to match this !! :-(
>
>--------------------
>[globals]
>
>INCOMING=1009326 ; with phone number : +44 1234 1009326
>
>[incoming]
>Exten => ${INCOMING1},1,answer()
>Exten => ${INCOMING1},2,Set(TRIES=0)
>Exten => ${INCOMING1},3,ringing(3)
>...........
>...........
>
>--------------
>
>Now, I found on their website :
> Asterisk PBX
> IP: sip:sipgate-uk@<My-IP_Address>:5060
>
>- Any ideas what's wrong ?
>
>I am not sure to understand how to integrate this ?!?[/color]
There is a page on their site which has details, however, try this:
In sip.conf:
; SIP Trunk to sipgate [sipgate.co.uk]
register => 1009326:xxxxxxx@sipgate.co.uk/1009326
; SIP Trunk to sipgate [sipgate.co.uk]
[sipgate-out]
context=from-sipgate
type=friend
nat=no
host=sipgate.co.uk
insecure=port,invite
username=1009326
fromuser=1009326
secret=xxxx
fromdomain=sipgate.co.uk
qualify=yes
disallow=all
allow=alaw
allow=g726
allow=gsm
in extensions.conf:
; Trunk from sipgate [sipgate.co.uk]
[from-sipgate]
exten => 1009326,1,Noop(Incoming SIP call from ${CALLERID(all)} @ sipgate calling ${EXTEN})
exten => 1009326,n,SetCallerID(Via SipGate <${CALLERID(num)}>)
exten => 1009326,n,Dial(SIP/101)
that last dial line will need to be change to whatever you're using to ring your phone
And somewhere else in extensions.conf, in a contect you can dial-out on:
exten => _70.,1,Noop(Making SIP Call to ${EXTEN:2}@sipgate)
exten => _70.,n,SetCallerID(1009326)
exten => _70.,n,Dial(SIP/sipgate-out/${EXTEN:2})
exten => _70.,n,Hangup()
That's a prefix of 70, then a number. Change it to suit.
Gordon
|