asterisk error

jonathanmercutio
Joined: Tue 06 of Apr, 2010

Re: asterisk error

Posted:Sat 10 of Apr, 2010 (05:16 UTC)
any help plase?
jonathanmercutio
Joined: Tue 06 of Apr, 2010

Re: asterisk error

Posted:Wed 07 of Apr, 2010 (11:58 UTC)
hello vinodh_css

but in iax.conf the context name is Internal, change this for 3000?

thanks for respond
vinodh_css
Joined: Mon 18 of Jan, 2010

Re: asterisk error

Posted:Wed 07 of Apr, 2010 (07:10 UTC)
In iax.conf change context name jonathan to 3000 (not the username value).

Make sure you reload the asterisk to effect the changes.
jonathanmercutio
Joined: Tue 06 of Apr, 2010

Re: asterisk error

Posted:Tue 06 of Apr, 2010 (15:26 UTC)
In Re: asterisk error (Tue 06 of Apr, 2010 (09:27 UTC))vinodh_csswrote:
In Iax.conf instead of using jonathan try 3000

[Jonathan] change it to [3000]
username=Jonathan 
callerid="Jonathan Herrera" <3000> 
type=friend 
secret=XXXXXXXXX 
host=dynamic 
context=Internal 
allow=all 
requirecalltoken=no 
;autokill=yes 
qualify=no


Reload the asterisk in cli


hi vinodh_css

i change the username for 3000 instead of Jonathan

iax.conf

[Jonathan]
username=3000
callerid="Jonathan Herrera" <3000>
type=friend
secret=XXXXXXXXX
host=dynamic
context=Internal
allow=all
requirecalltoken=no
;autokill=yes
qualify=no


but the asterisk cli show this

intranet*CLI> iax2 show peers
Name/Username    Host                 Mask             Port          Status
Jonathan/3000    186.80.28.75    (D)  255.255.255.255  62935         Unmonitored
German/3001      192.168.1.104   (D)  255.255.255.255  4569          Unmonitored
2 iax2 peers [0 online, 0 offline, 2 unmonitored]

intranet*CLI> iax2 show channels
Channel               Peer             Username    ID (Lo/Rem)  Seq (Tx/Rx)  Lag      Jitter  JitBuf  Format  FirstMsg    LastMsg
0 active IAX channels


when i try to call to a other extension show this

-- Accepting AUTHENTICATED call from 186.80.28.75:
       > requested format = gsm,
       > requested prefs = (),
       > actual format = ulaw,
       > host prefs = (ulaw|gsm),
       > priority = mine
    -- Executing [3001@Internal:1] Dial("IAX2/Jonathan-6907", "IAX2/3001") in new stack
[Apr  6 10:19:07] WARNING[7552]: acl.c:385 ast_get_ip_or_srv: Unable to lookup '3001'
[Apr  6 10:19:07] WARNING[7552]: chan_iax2.c:4352 create_addr: No such host: 3001
[Apr  6 10:19:07] WARNING[7552]: app_dial.c:1745 dial_exec_full: Unable to create channel of type 'IAX2' (cause 20 - Unknown)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [3001@Internal:2] Hangup("IAX2/Jonathan-6907", "") in new stack
  == Spawn extension (Internal, 3001, 2) exited non-zero on 'IAX2/Jonathan-6907'
    -- Hungup 'IAX2/Jonathan-6907'


thanks for your help and respond
vinodh_css
Joined: Mon 18 of Jan, 2010

Re: asterisk error

Posted:Tue 06 of Apr, 2010 (09:27 UTC)
In Iax.conf instead of using jonathan try 3000

[Jonathan] change it to [3000]
username=Jonathan 
callerid="Jonathan Herrera" <3000> 
type=friend 
secret=XXXXXXXXX 
host=dynamic 
context=Internal 
allow=all 
requirecalltoken=no 
;autokill=yes 
qualify=no


Reload the asterisk in cli
jonathanmercutio
Joined: Tue 06 of Apr, 2010

asterisk error

Posted:Tue 06 of Apr, 2010 (01:32 UTC)
hello, i installed asterisk in centos 5.3 server, i install a TDM400 card, this work fine, i create two IAX2 extensions, but this dont work fine, when i can try to call to a IAX extension asterisk show this:

-- Accepting AUTHENTICATED call from 192.168.1.102:
       > requested format = gsm,
       > requested prefs = (),
       > actual format = ulaw,
       > host prefs = (ulaw|gsm),
       > priority = mine
    -- Executing [3001@Internal:1] Dial("IAX2/Jonathan-1865", "IAX2/3001") in new stack
[Apr  5 20:20:57] WARNING[3977]: acl.c:385 ast_get_ip_or_srv: Unable to lookup '3001'
[Apr  5 20:20:57] WARNING[3977]: chan_iax2.c:4352 create_addr: No such host: 3001
[Apr  5 20:20:57] WARNING[3977]: app_dial.c:1745 dial_exec_full: Unable to create channel of type 'IAX2' (cause 20 - Unknown)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [3001@Internal:2] Hangup("IAX2/Jonathan-1865", "") in new stack
  == Spawn extension (Internal, 3001, 2) exited non-zero on 'IAX2/Jonathan-1865'
    -- Hungup 'IAX2/Jonathan-1865'

the extensions.conf

[general]
static=yes
writeprotect=no
autofallthrough=yes
extenpatternmatchnew=no
clearglobalvars=yes
priorityjumping=no
userscontext=default

[globals]

[default]

[general]
context=intern
allowguest=yes
match_auth_username=yes
allowoverlap=no
allowtransfer=no
udpbindaddr=0.0.0.0
tcpenable=no
tlsenable=no
srvlookup=no
pedantic=no
tos_sip=cs3
tos_audio=ef
tos_video=af41
tos_text=af41
cos_sip=3
cos_audio=5
cos_video=4
cos_text=3
maxexpiry=3600
minexpiry=60
defaultexpiry=120
mwiexpiry=3600
qualifyfreq=60
qualifygap=100
qualifypeers=1
vmexten=voicemail
disallow=all
allow=alaw
mohinterpret=default
mohsuggest=default
language=en
relaxdtmf=yes
promiscredir=no
dtmfmode=rfc2833
videosupport=no
callevents=no
alwaysauthreject=yes
shrinkcallerid=no
allowsubscribe=yes
subscribecontext=default
notifyringing=yes
notifyhold=yes
notifycid=yes
callcounter=yes
t38pt_udptl=yes,fec,maxdatagram=400
faxdetect=no
nat=yes
directmedia=no
directrtpsetup=no

[Internal]
exten => 1000,1,Dial(DAHDI/1,20,rt)
exten => 1000,2,Voicemail(1000,u)
exten => 1000,102,Voicemail(1000,b)
exten => 9,1,Dial(DAHDI/2,20,rt)
exten => 9,2,Voicemail(2000,u)
exten => 9,102,Voicemail(2000,b)
exten => 8500,1,VoiceMailMain
exten => 8501,1,MusicOnHold

exten => 3000,1,Dial(IAX2/3000)
exten => 3000,2,Hangup()

exten => 3001,1,Dial(IAX2/3001)
exten => 3001,2,Hangup()

[Incoming]
exten => s,1,Answer
exten => s,2,Dial(DAHDI/g1,20,rt)
exten => s,3,Voicemail(1000,u)
exten => s,103,Voicemail(1000,b)

the iax.conf

[general]
bandwidth=high
disallow=all
allow=ulaw
maxcallnumbers=16382
calltokenoptional = 190.147.92.86/255.255.255.0
bindport=4569
bindaddr=0.0.0.0      

[Jonathan]
username=Jonathan
callerid="Jonathan Herrera" <3000>
type=friend
secret=XXXXXXXXX
host=dynamic
context=Internal
allow=all
requirecalltoken=no
;autokill=yes
qualify=no

[German]
username=German
callerid="German Meneses" <3001>
type=friend
secret=XXXXXXXX
host=dynamic
context=Internal
allow=all
requirecalltoken=no
;autokill=yes
qualify=no


i need solve this error but i search en google but dont find a solutions, thanks for help

bye