[Asterisk-Users] ASTCC questions
Karl H. Putz
kputz at columbus.rr.com
Thu Mar 3 06:46:03 MST 2005
>-----Original Message-----
>From: asterisk-users-bounces at lists.digium.com
>[mailto:asterisk-users-bounces at lists.digium.com]On Behalf Of Ronald
>Wiplinger
>Sent: Thursday, March 03, 2005 2:47 AM
>To: Asterisk Users Mailing List - Non-Commercial Discussion
>Subject: Re: [Asterisk-Users] ASTCC questions
>
>
>Ronald Wiplinger wrote:
>
>(Correcting my own message)
>
>> I have setup ASTCC as:
>>
>> trunk:
>> ====
>> NuFone IAX2 NuFone
>
>should be:
> NuFone IAX2 User at switch-1.nufone.net !!!
>
>
>1. So far I can call out, but I cannot call in. - Any hints?
>2. ASTCC shows me for my test calls only:
>In Cards that I used from 10000 60 pennies
>If I try to get detail info from the card, than I get:
>
>/Card /*886228803959 */ has used /*60* of *100000* units
>
>Caller*ID Called Number Trunk Disposition Billable Seconds
>Billed Cost
>
>
>but no detail data!!! Any hints???
Ronald,
The CVS ASTCC has an error in the database table structure for the call
records.
See http://bugs.digium.com/bug_view_page.php?bug_id=0002796
for a patch to the cgi scripts that create the table. Basically, the
"callstart" field is missing in the
CREATE table cdrs statement.
The above link also has a few additions to ASTCC that may be interesting to
you. Specifically,
there is an extension that allows you to use the caller id as the account
number but also require a
PIN to complete the call.
Karl Putz
>
>
>
>bye
>
>Ronald
>
>>
>> routes:
>> ====
>> ^1415.* California NuFone 0 0 200
>>
>> iax.conf
>> =====
>> register => User:password at switch-2.nufone.net
>>
>> [NuFone]
>> type=peer
>> host=switch-1.nufone.net
>> secret=my_secret
>>
>> [NuFone]
>> type=user
>> secret=my_secret
>> context=fromNuFone
>>
>>
>> extensions.conf
>> ==========
>> [NuFone]
>> exten =>
>> _91NXXNXXXXXX,1,Dial,IAX2/${NUFONEUSER}@NuFone/${EXTEN:${TRUNKMSD}}
>> exten => _9011N.,1,Dial,IAX2/${NUFONEUSER}@NuFone/${EXTEN:${TRUNKMSD}}
>>
>>
>>
>>
>> With above settings I see in CLI> when I am dialing:
>> -- Executing NoOp("SIP/886228803959-1e6d", "SetCallerID()") in new
>> stack
>> -- Executing Dial("SIP/886228803959-1e6d",
>> "IAX2/User at NuFone/14159625000") in new stack
>> -- Called User at NuFone/14159625000
>> -- Call accepted by 66.225.202.72 (format ulaw)
>> -- Format for call is ulaw
>> -- IAX2/NuFone-11 answered SIP/886228803959-1e6d
>> -- Hungup 'IAX2/NuFone-11'
>> == Spawn extension (VoIP_customer_Phone, 914159625000, 2) exited
>> non-zero on 'SIP/886228803959-1e6d'
>>
>> It works !!!
>>
>>
>> Changing the settings in extensions.conf to:
>>
>> [NuFone]
>> ;exten =>
>> _91NXXNXXXXXX,1,Dial,IAX2/${NUFONEUSER}@NuFone/${EXTEN:${TRUNKMSD}}
>> ;exten => _9011N.,1,Dial,IAX2/${NUFONEUSER}@NuFone/${EXTEN:${TRUNKMSD}}
>> ;
>> exten => _91NXXNXXXXXX,1,NoOp(SetCallerID(${username}))
>> exten =>
>> _91NXXNXXXXXX,2,DeadAGI(astcc.agi,${CALLERIDNUM},${EXTEN:${TRUNKMSD}})
>> exten => _91NXXNXXXXXX,3,hangup
>> ;
>> exten => _9011N.,1,NoOp(SetCallerID(${username}))
>> exten => _9011N.,2,DeadAGI(astcc.agi,${CALLERIDNUM},${EXTEN:${TRUNKMSD}})
>> exten => _9011N.,3,hangup
>>
>>
>>
>>
>> gives me in CLI> by redialing the same number:
>>
>>
>>
>> -- Executing NoOp("SIP/886228803959-e043", "SetCallerID()") in new
>> stack
>> -- Executing DeadAGI("SIP/886228803959-e043",
>> "astcc.agi|886228803959|14159625000") in new stack
>> -- Launched AGI Script /var/lib/asterisk/agi-bin/astcc.agi
>> -- Playing 'digits/10' (language 'en')
>> -- Registered IAX2 to '69.73.19.178', who sees us as
>> 61.220.121.20:4569
>> -- Playing 'digits/2' (language 'en')
>> -- AGI Script Executing Application: (DIAL) Options:
>> (IAX2/NuFone/14159625000|30|HL(19980000:60000:30000))
>> -- Limit Data:
>> -- timelimit=19980000
>> -- play_warning=60000
>> -- play_to_caller=yes
>> -- play_to_callee=no
>> -- warning_freq=30000
>> -- start_sound=UNDEF
>> -- warning_sound=timeleft
>> -- end_sound=UNDEF
>> -- Called NuFone/14159625000
>> Mar 3 14:00:31 WARNING[8102]: chan_iax2.c:6280 socket_read: Call
>> rejected by 66.225.202.72: No such context/extension
>> -- Hungup 'IAX2/NuFone-3'
>> == No one is available to answer at this time (1:0/0/0)
>> -- AGI Script astcc.agi completed, returning 0
>> -- Executing Hangup("SIP/886228803959-e043", "") in new stack
>> == Spawn extension (VoIP_customer_Phone, 914159625000, 3) exited
>> non-zero on 'SIP/886228803959-e043'
>>
>>
>>
>> Why it tells me: No such context/extension ???
>>
>> What do I need to change?
>>
>> Thanks for your help in advance!
>>
>>
>> bye
>>
>> Ronald
>>
>>
>> _______________________________________________
>> Asterisk-Users mailing list
>> Asterisk-Users at lists.digium.com
>> http://lists.digium.com/mailman/listinfo/asterisk-users
>> To UNSUBSCRIBE or update options visit:
>> http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>>
>>
>
>
>--
>Ronald Wiplinger (CEO of ELMIT)
>http://www.elmit.com +886 (0) 939--77-55-16 or FWD 511208
>- I'm a SpamCon Foundation Member, #694, Verify it at
>http://www.spamcon.org
>
>PS: Spam prevention!
>Our system is
>protected with a spam prevention program.
>If you send us an e-mail, our system will send you a confirmation
>message back. Just reply to this confirmation message please.
>After receiving this confirmation message, our system will send
>the hold message (one) and all future messages (after the received
>confirmation message) to me without asking you again.
>
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list