Outbound Dialing Via Another Asterisk Box (Trixbox)

General and Support topics relating to ViciDialNow and GoAutoDial ISO installers

Moderators: enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, s0lid

Outbound Dialing Via Another Asterisk Box (Trixbox)

Postby senate014 » Tue Aug 13, 2013 4:58 pm

Hell again! :D

Ok, calling William, I have another problem i need to fix and you seem to the be only person round here so far with the brains :mrgreen:

I need to get the following outbound dialing working where my Goautodial server puts all outbound calls through my existing Trixbox server which is registered to the SIP provider.

I want this solution so I don't have to buy more SIP channels from our provider when I can use the existing ones the Trixbox server uses.

Let's get down to the configuration

Trixbox Server - 192.168.16.150
Goautodial Server - 192.168.16.151

Both servers reside on the same LAN in the same office.

I've setup extension 5000 on the Trixbox server

I've setup the SIP Trunk on the Goautodial server as the following:

[SIP01]
disallow=all
allow=gsm
allow=ulaw
type=friend
username=5000
secret=5000
dtmfmode=rfc2833
context=trunkinbound
qualify=yes
insecure=very

The dial plan on the Goautodial server is the following:

exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9X.,2,Dial(${SIPtrunk}/${EXTEN:1},,tTor)
exten => _9X.,3,Hangup

The Goautodial server can dial extentions on the Trixbox server by dialing 9302 for example to connect to extention 302 on the Trixbox server.

What do I need to do in the dial plan to get it dialing an outside line on the Trixbox server so I can call, for example, a land line number or mobile number through the SIP trunk on the Trixbox server?

When I try dial out, for example, dialing the following number 901423546678, I get the following call routing issue in my asterisk -r log:

Connected to Asterisk 1.4.22-3 RPM by vc-r currently running on ibtpbx001 (pid = 2510)
pms@voipconsulting.nl
Verbosity is at least 3
-- Executing [01423546678@from-sip-external:1] NoOp("SIP/192.168.16.151-0989f5d0", "Received incoming SIP connection from unknown peer to 01423546678") in new stack
-- Executing [01423546678@from-sip-external:2] Set("SIP/192.168.16.151-0989f5d0", "DID=01423546678") in new stack
-- Executing [01423546678@from-sip-external:3] Goto("SIP/192.168.16.151-0989f5d0", "s|1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing [s@from-sip-external:1] GotoIf("SIP/192.168.16.151-0989f5d0", "1?from-trunk|01423546678|1") in new stack
-- Goto (from-trunk,01423546678,1)
-- Executing [01423546678@from-trunk:1] Set("SIP/192.168.16.151-0989f5d0", "__FROM_DID=01423546678") in new stack
-- Executing [01423546678@from-trunk:2] NoOp("SIP/192.168.16.151-0989f5d0", "Received an unknown call with DID set to 01423546678") in new stack
-- Executing [01423546678@from-trunk:3] Goto("SIP/192.168.16.151-0989f5d0", "s|a2") in new stack
-- Goto (from-trunk,s,2)
-- Executing [s@from-trunk:2] Answer("SIP/192.168.16.151-0989f5d0", "") in new stack
-- Executing [s@from-trunk:3] Wait("SIP/192.168.16.151-0989f5d0", "2") in new stack
-- Executing [s@from-trunk:4] Playback("SIP/192.168.16.151-0989f5d0", "ss-noservice") in new stack
-- <SIP/192.168.16.151-0989f5d0> Playing 'ss-noservice' (language 'en')
-- Executing [s@from-trunk:5] SayAlpha("SIP/192.168.16.151-0989f5d0", "01423546678") in new stack
-- <SIP/192.168.16.151-0989f5d0> Playing 'digits/0' (language 'en')
-- <SIP/192.168.16.151-0989f5d0> Playing 'digits/1' (language 'en')
-- <SIP/192.168.16.151-0989f5d0> Playing 'digits/4' (language 'en')
-- <SIP/192.168.16.151-0989f5d0> Playing 'digits/2' (language 'en')
-- <SIP/192.168.16.151-0989f5d0> Playing 'digits/3' (language 'en')
-- <SIP/192.168.16.151-0989f5d0> Playing 'digits/5' (language 'en')
-- <SIP/192.168.16.151-0989f5d0> Playing 'digits/4' (language 'en')
-- <SIP/192.168.16.151-0989f5d0> Playing 'digits/6' (language 'en')
-- <SIP/192.168.16.151-0989f5d0> Playing 'digits/6' (language 'en')
-- <SIP/192.168.16.151-0989f5d0> Playing 'digits/7' (language 'en')
-- <SIP/192.168.16.151-0989f5d0> Playing 'digits/8' (language 'en')
-- Executing [s@from-trunk:6] Hangup("SIP/192.168.16.151-0989f5d0", "") in new stack
== Spawn extension (from-trunk, s, 6) exited non-zero on 'SIP/192.168.16.151-0989f5d0'
-- Executing [h@from-trunk:1] Hangup("SIP/192.168.16.151-0989f5d0", "") in new stack
== Spawn extension (from-trunk, h, 1) exited non-zero on 'SIP/192.168.16.151-0989f5d0'

Server Hardware

HP DL385 G1
2x Dual Core Opteron
16GB
SAS RAID 6

goautodial-64bit-ce-3.0-RC1b
Asterisk 1.4.22-3
senate014
 
Posts: 16
Joined: Tue Jul 09, 2013 1:55 pm

Re: Outbound Dialing Via Another Asterisk Box (Trixbox)

Postby senate014 » Mon Aug 19, 2013 3:38 pm

Can anyone help?? :(
senate014
 
Posts: 16
Joined: Tue Jul 09, 2013 1:55 pm


Return to ViciDialNow - GoAutoDial

Who is online

Users browsing this forum: No registered users and 114 guests