I have setup ASTCC as:

trunk:
====
NuFone   IAX2   NuFone

routes:
====
^1415.*   California   NuFone   0   0   200

iax.conf
=====
register => User:[EMAIL PROTECTED]

[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/[EMAIL PROTECTED]/${EXTEN:${TRUNKMSD}} exten => _9011N.,1,Dial,IAX2/[EMAIL PROTECTED]/${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/[EMAIL PROTECTED]/14159625000") in new stack
-- Called [EMAIL PROTECTED]/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/[EMAIL PROTECTED]/${EXTEN:${TRUNKMSD}}
;exten => _9011N.,1,Dial,IAX2/[EMAIL PROTECTED]/${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 [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to