Project

General

Profile

Inbound and outbound calls without a campaign

Added by Kelli Mac over 9 years ago

I managed a phone system using a different asterisk based system for quite a while (name rhymes with fleapbx). The other system was mainly just used to route inbound and outbound calls to and from sip trunks and phones. We used an external dialer and database for dialer campaigns and debtor information (it was a group of collection agencies). Setting up

I am trying to create a system that will allow both manual inbound and outbound calls as well as dialer campaigns as we want to utilize them. This is the second system of this type I have tried to set up and I am lost. Maybe it's the terminology? I want to be able to accomplish the following, and I am simplifying it greatly because I am really frustrated with this whole thing:

1. Agent at phone extension manually dials some US phone number using phone keypad [phone -> US phone number]

2. Someone with a phone somewhere in the US calls a certain DID and this DID is routed directly to a phone [US caller -> phone in call center]

Of course, I will also later set up IVR's and dialer campaigns. For now, I just want to accomplish what should be this really simple task of routing outbound calls to my sip provider and route inbound calls to certain DID's to a phone in my system. This was really easy to do in the system I mentioned earlier. It seems to be impossibly difficult and very poorly documented in goautodial and another similar system I tried this past week. I have no clue what I am doing wrong, but I am beginning to believe that a "campaign" needs to be set up just to do simple inbound and outbound manual calls from a phone. Am I correct on this?

With the other system I tried this week, I was able to get outbound calls to work no problem. Pick up a phone, dial a number and out it went, complete with two-way audio. Inbound calls resulted in the same tragic error I am getting with goautodial now:


[Aug 29 15:17:25] NOTICE7405 chan_sip.c: Call from 'VoIPInnovIN1' (64.136.174.30:5060) to extension '+[DIDMASKED]' rejected because extension not found in context 'trunkinbound'.

Outbound calls give me this error:

[Aug 29 14:57:33] VERBOSE18961 pbx.c: [Aug 29 14:57:33] -- Executing [xxxxxxxxxxx@default:1] AGI in new stack
[Aug 29 14:57:33] VERBOSE18961 res_agi.c: [Aug 29 14:57:33] -- <SIP/8001-0000000f>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Aug 29 14:57:33] VERBOSE18961 pbx.c: [Aug 29 14:57:33] -- Executing [xxxxxxxxxxx@default:2] Dial("SIP/8001-0000000f", "SIP/7@VoIPInnovIN1,,tTo") in new stack
[Aug 29 14:57:33] VERBOSE18961 netsock2.c: [Aug 29 14:57:33] Using SIP RTP CoS mark 5
[Aug 29 14:57:33] VERBOSE[18961] app_dial.c: [Aug 29 14:57:33] -- Called SIP/7@VoIPInnovIN1
[Aug 29 14:57:33] VERBOSE[18961] app_dial.c: [Aug 29 14:57:33] Everyone is busy/congested at this time (1:0/0/1)
[Aug 29 14:57:33] VERBOSE18961 pbx.c: [Aug 29 14:57:33] -- Executing [xxxxxxxxxxx@default:3] Hangup("SIP/8001-0000000f", "") in new stack
[Aug 29 14:57:33] VERBOSE18961 pbx.c: [Aug 29 14:57:33] == Spawn extension (default, xxxxxxxxxxx, 3) exited non-zero on 'SIP/8001-0000000f'
[Aug 29 14:57:33] VERBOSE18961 pbx.c: [Aug 29 14:57:33] -- Executing [h@default:1] AGI in new stack
[Aug 29 14:57:33] VERBOSE18961 res_agi.c: [Aug 29 14:57:33] -- <SIP/8001-0000000f>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----1-----CHANUNAVAIL---------- completed, returning 0

Now, before you ask... Yes, for inbound I have a DID set up in INBOUND / Phone numbers (DID'sFTN's) that routes directly to a Polycom phone that is properly registered on the system. When I call that DID, I get a fast busy signal and the error I mentioned above.

For outbound calls... on the carrier setup I have this dial plan:

exten => _1XXXXXXXXXX,1,AGI
exten => _1XXXXXXXXXX,2,Dial(SIP/${EXTEN:10}@VoIPInnovIN1,,tTo)
exten => _1XXXXXXXXXX,3,Hangup

and the account entry is:

[VoIPInnovIN1]
disallow=all
allow=gsm
allow=ulaw
type=friend
dtmfmode=rfc2833
context=trunkinbound
qualify=yes
insecure=very
nat=yes
host=my sip provider's ip address

So... What the heck am I doing wrong?


Replies (1)

RE: Inbound and outbound calls without a campaign - Added by striker 247 over 9 years ago

hi

Inbound

seems you care getting the inbound DID with plus sign(+)

the trunkinbound context have dial pattern as _X., so + is not allowed.

either fix the + from provider side or write a custom dialplan to discard the +

outbound
remove :10 from ${EXTEN:10} (Second line)

br
striker
www.striker24x7.blogspot.com

    (1-1/1)
    Go to top