[asterisk-users] Ringing for incoming call

Bob Smither Smither at C-C-I.com
Sat Dec 19 08:02:36 CST 2009


On Fri, 2009-12-18 at 23:56 -0600, Steve Johnson wrote:
> If you try just this, what does the caller hear? It should be ringing
> for the first 20 sec, and then maybe the congestion tone afterwards.
> exten => s,1,Wait(20)
> exten => s,n,Hangup

Dialplan:

[cci]
exten => s,1,Wait(10)
exten => s,n,Hangup()

When the number is dialed, here is the CLI output:

Connected to Asterisk 1.4.21.1 currently running on k6-2 (pid = 6283)
Verbosity was 0 and is now 3
    -- Executing [8772709688 at inbound:1] Goto("SIP/smither-03390860",
"cci|s|1") in new stack
    -- Goto (cci,s,1)
    -- Executing [s at cci:1] Wait("SIP/smither-03390860", "10") in new
stack
    -- Executing [s at cci:2] Hangup("SIP/smither-03390860", "") in new
stack
  == Spawn extension (cci, s, 2) exited non-zero on
'SIP/smither-03390860'

The caller hears silence for 10 seconds.  When the Hangup is executed,
as reported on the CLI, the caller _then_ hears ringing (!?) which
continues until the caller hangs up.

Here is the entry in sip.conf (Asterisk registers with the provider):

[vitel-inbound-cci]
type=friend  
dtmfmode=auto
host=<provider host>
context=inbound 
username=<user name>
secret=<my secret>
allow=all
insecure=very
nat=yes

Context in extensions.conf:

[inbound]
exten => 8772709688,1,Goto(cci,s,1)

The context [cci] is shown above.

I appreciate the help, as I am confused!

-- 
Bob Smither, PhD                                   Circuit Concepts, Inc.
=========================================================================

            There are only 10 kinds of people in the world
            --Those who understand binary, and those who don't...

=========================================================================
Smither at C-C-I.Com  http://www.C-C-I.Com  281-331-2744(office)  -4616(fax)




More information about the asterisk-users mailing list