Use Another Asterisk Server for Outbound Calling

Hello Experts,

I am new to Vicidial and I seek your advise. Here is my Setup

Agents -------- GO AutoDial (2.1) -------- Asterisk Server 2 -------- SIP Provider

I want to enable agents to be able to use Asterisk Server 2 for outbound calls.

This is what I have done so far.

  1. Created an extension 5000 on Asterisk Server 2 just like other SIP extensions.
  2. Configured following settings on GO Autodial Carrier

register => 5000:MyPassword@X.X.X.X:5060/5000

where X.X.X.X is my public IP of remote server

[Server 2]
disallow=all
allow=ulaw
host=X.X.X.X
type=peer
context=from-internal
secret=MyPassword
insecure=port,invite

exten => _1XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _1XXXXXXXXXX,2,Dial(SIP/${EXTEN}@Server 2,tTo)
exten => _1XXXXXXXXXX,3,Hangup

My sip show registry show Go Autodial has my trunk successfully registered.
My sip show peers at Server 2 show my Go Auto Dial as successfully registered peer.

But When I dial out I get this error

[Dec 24 23:16:29] – Executing [13164619284@default:1] AGI(“SIP/8001-0000001a”, “agi://127.0.0.1:4577/call_log”) in new stack
[Dec 24 23:16:29] – AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Dec 24 23:16:29] – Executing [13164619284@default:2] Dial(“SIP/8001-0000001a”, “SIP/13164619284@Server 2||tTo”) in new stack
[Dec 24 23:16:29] NOTICE[2507]: chan_sip.c:13470 handle_response_invite: Failed to authenticate on INVITE to ‘“8001” <sip:8001@MY PUBLIC IP>;tag=as6afd10b3’
[Dec 24 23:16:29] – Called 13164619284@Server 2
[Dec 24 23:16:29] – SIP/Server 2-0000001b is circuit-busy
[Dec 24 23:16:29] == Everyone is busy/congested at this time (1:0/1/0)
[Dec 24 23:16:29] – Executing [13164619284@default:3] Hangup(“SIP/8001-0000001a”, “”) in new stack
[Dec 24 23:16:29] == Spawn extension (default, 13164619284, 3) exited non-zero on ‘SIP/8001-0000001a’
[Dec 24 23:16:29] – Executing [h@default:1] DeadAGI(“SIP/8001-0000001a”, “agi://127.0.0.1:4577/call_log–HVcauses–PRI-----NODEBUG-----21-----CONGESTION----------”) in new stack
[Dec 24 23:16:29] – AGI Script agi://127.0.0.1:4577/call_log–HVcauses … ---------- completed, returning 0

All I want is to use my Asterisk Server 2 for outgoing calls for Agents connected with GO Autodial , no incoming or no internal dialing.

Please Advise.
asmith

Posts: 2
Joined: Tue Dec 25, 2012 1:09 am
Top

Sip trunking between the 2 asterisk Boxes Authentication error.

Do i Necessarily need to setup trunk between two Servers ? I just need to use other server for outbound calling no incoming or anything.