I’m trying to configure Asterisk as a B2BUA. I’ve configured a SIP Proxy (Openser) to forward calls to asterisk and asterisk should forward those calls to a third party sip proxy server. The third party server allows me to make PSTN calls.
So far I’ve tried to configured Asterisk to do this with no luck. I always get a 404 Not found error from asterisk, so it seems asterisk is not pushing the invites to the provider.
Here is my sip.conf
[general]
bindaddr=0.0.0.0
bindport=6050
srvlookup=yes
useragent=sipuseragent
register => USERNAME:PASSWORD@sipproxyaddress
[provider]
type=peer
dtmfmode=rfc2833
insecure=invite,port
qualify=yes
secret=PASSWORD
fromdomain=sipproxyaddress
authuser=USERNAME
fromuser=USERNAME
username=USERNAME
And here is my extensions.conf
[general]
static=yes
writeprotected=no
[outgoing-sip]
exten => _X.,1,Dial(SIP/${EXTEN}@provider)
Any help will be highly appreciated.