Page 1 of 1

Manual dialing via SIP trunk not working?

PostPosted: Tue Aug 30, 2011 3:14 am
by scenarist
I have installed
VERSION: 2.4-309a
BUILD: 110430-1642
Asterisk 1.4.39.1-vici

I registered SIP trunk. This is my Dialplan
Code: Select all
exten => _000387NNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _000387NNXXXXXX,2,Dial(SIP/${EXTEN:1}@sipgate,,tTo)
exten => _000387NNXXXXXX,3,Hangup

I can make outgoing calls via softphone but when I try to make calls via campaign and manual dialing I don't success.
I am using Standard layout. In list under "Phone Code" I put "000387".
This is my CLI when I try to make calls via campaign and manual dialing
Code: Select all
 -- Executing [8600051@default:1] MeetMe("Local/8600051@default-2bf8,2", "8600051|F") in new stack
    > Channel Local/8600051@default-2bf8,1 was answered.
= Starting Local/8600051@default-2bf8,1 at default,90003876273254,1 failed so falling back to exten 's'
= Starting Local/8600051@default-2bf8,1 at default,s,1 still failed so falling back to context 'default'
 -- Sent into invalid extension 's' in context 'default' on Local/8600051@default-2bf8,1
 -- Executing [i@default:1] Playback("Local/8600051@default-2bf8,1", "invalid") in new stack
 -- <Local/8600051@default-2bf8,1> Playing 'invalid' (language 'en')
NING[23876]: file.c:1297 waitstream_core: Unexpected control subclass '-1'
NING[23876]: file.c:1297 waitstream_core: Unexpected control subclass '-1'
= Manager 'sendcron' logged off from 127.0.0.1
= Auto fallthrough, channel 'Local/8600051@default-2bf8,1' status is 'UNKNOWN'
 -- Executing [h@default:1] DeadAGI("Local/8600051@default-2bf8,1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------"

 -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------- completed, returning 0
= Spawn extension (default, 8600051, 1) exited non-zero on 'Local/8600051@default-2bf8,2'
 -- Executing [h@default:1] DeadAGI("Local/8600051@default-2bf8,2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------"

 -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------- completed, returning 0
= Parsing '/etc/asterisk/manager.conf': [Aug 30 09:39:02] Found


I see that asterisk using Local channels and probably is wrong something about my dialplan?
P.S How can I turn off from CLI this
Code: Select all
[Aug 30 10:16:03]   == Parsing '/etc/asterisk/manager.conf': [Aug 30 10:16:03] Found
[Aug 30 10:16:03]   == Manager 'sendcron' logged on from 127.0.0.1
[Aug 30 10:16:03]   == Manager 'sendcron' logged off from 127.0.0.1
[Aug 30 10:16:05]   == Manager 'sendcron' logged off from 127.0.0.1

dialprefix

PostPosted: Tue Aug 30, 2011 3:18 am
by striker
your campaign is using the dialprefix a 9
remove the 9 from the campaign dialprefis and put X or use as per ur dialplan

PostPosted: Tue Aug 30, 2011 3:39 am
by scenarist
Hehe. Problem solved. Very easy than I expected. Thanks again @Striker
I hope that it rule is the same for predictive campaign?

Here is very interesting link with diagram about "Originate using Asterisk Local channels".
http://blogs.reucon.com/asterisk-java/2007/04/18/originate_using_asterisk_local_channels.html

PostPosted: Fri Sep 30, 2011 12:58 am
by jm
hi sir, i have a similar issue with this. i am new to this and we are using VERSION: 2.2.1-237
BUILD: 100510-2015

we can dial using softphone zoiper
however if we use automatic dial from goautodial
it gives us an error call rejected status 19. call rejected congestion
any idea sir?

PostPosted: Fri Sep 30, 2011 6:39 am
by scenarist
Something is wrong with your dial rules. Post it here...
See dial rules in definition of carrier.
also check your format for telephone numbers which you are dialing ..
p.s post here your dial rules