-
[Résolu]spa112
bonjour,
j'ai un spa112 et j'arrive pas à le faire communiquer avec asterisk. Voici la trace d'un appels :
Code:
-- Accepting AUTHENTICATED call from 41.225.110.165:
> requested format = ulaw,
> requested prefs = (),
> actual format = ulaw,
> host prefs = (ulaw|alaw|gsm),
> priority = mine
-- Executing [103@direction:1] Ringing("IAX2/sabi-14981", "") in new stack
-- Executing [103@direction:2] Dial("IAX2/sabi-14981", "SIP/sabi") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/sabi
-- Got SIP response 503 "Service Unavailable" back from 41.225.110.165:5061
-- SIP/sabi-000000b1 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Auto fallthrough, channel 'IAX2/sabi-14981' status is 'CONGESTION'
And the user:
le compte sip :
Code:
[sabi]
username=sabi
secret=passwd
type=friend
host=dynamic
mailbox=sabi.nounette@rsa.com
context=direction
callerid=103
insecure=invite,port
dtmfmode=rfc2833
nat=yes
disallow=all
allow=g729
allow=ulaw
allow=alaw
create a new version of this paste
en détail :
Code:
sip show peer sabi
* Name : sabi
Secret : <Set>
MD5Secret : <Not set>
Remote Secret: <Not set>
Context : manager
Subscr.Cont. : <Not set>
Language : fr
AMA flags : Unknown
Transfer mode: open
CallingPres : Presentation Allowed, Not Screened
Callgroup :
Pickupgroup :
MOH Suggest :
Mailbox : sabi.nounette@rsa.com
VM Extension : asterisk
LastMsgsSent : 32767/65535
Call limit : 0
Max forwards : 0
Dynamic : Yes
Callerid : <33484251592>
MaxCallBR : 384 kbps
Expire : 30
Insecure : port,invite
Force rport : Yes
ACL : No
DirectMedACL : No
T.38 support : No
T.38 EC mode : Unknown
T.38 MaxDtgrm: -1
DirectMedia : Yes
PromiscRedir : No
User=Phone : No
Video Support: No
Text Support : No
Ign SDP ver : No
Trust RPID : No
Send RPID : No
Subscriptions: Yes
Overlap dial : No
DTMFmode : rfc2833
Timer T1 : 500
Timer B : 32000
ToHost :
Addr->IP : 41.225.110.165:5061
Defaddr->IP : (null)
Prim.Transp. : UDP
Allowed.Trsp : UDP
Def. Username: sabi
SIP Options : (none)
Codecs : 0x10c (ulaw|alaw|g729)
Codec Order : (g729:20,ulaw:20,alaw:20)
Auto-Framing : No
100 on REG : No
Status : Unmonitored
Useragent : Cisco/SPA112-1.3.1(003)
Reg. Contact : sip:sabi@192.168.0.155:5061
Qualify Freq : 60000 ms
Sess-Timers : Accept
Sess-Refresh : uas
Sess-Expires : 1800 secs
Min-Sess : 90 secs
RTP Engine : asterisk
Parkinglot :
Use Reason : No
Encryption : No
Il ne sonne et les appels ne passe pas! Quand l'appel, asterisk ne réagit pas du tout.
-
juste en passant, tu nous montres un compte sip, mais l'appel est en IAX....
(IAX2/sabi....) -
soit il y a un loupé quelque part, soit peux tu expliquer un peu plus ta conf et ce que tu veux faire ?
-
L'émmetteur est un compte iax, mais c'est la récéption de l'appels qui est en sip. C'est ce compte qui ne répond pas.
-
peux tu préciser quel compte appelle, quel compte est appelé ?
parce que j'y perds mon latin:
Code:
-- Executing [103@direction:1] Ringing("IAX2/sabi-14981", "") in new stack
-- Executing [103@direction:2] Dial("IAX2/sabi-14981", "SIP/sabi") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/sabi
-- Got SIP response 503 "Service Unavailable" back from 41.225.110.165:5061
-- SIP/sabi-000000b1 is circuit-busy
Je vois Dial IAX2/sabi
donc sabi est sip ou sabi est iax ? appelant ou appelé ? peux tu montrer le contexte direction extension 103 ?
-
je peux comprendre qu'utilise des noms similaires pour des protocoles différents peut être pertubant. Mais je crée souvent les comptes en paralélles pour un même utlisateurs.
Code:
exten => 103,1,Ringing()
exten => 103,n,Dial(SIP/sabi)
;exten => 103,n,hangup()
voici le même appels avec un autre compte :
Code:
-- Accepting AUTHENTICATED call from 197.15.217.90:
> requested format = gsm,
> requested prefs = (),
> actual format = gsm,
> host prefs = (ulaw|alaw|gsm),
> priority = mine
-- Executing [103@direction:1] Ringing("IAX2/david-2918", "") in new stack
-- Executing [103@direction:2] Dial("IAX2/david-2918", "SIP/sabi") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/sabi
-- Got SIP response 503 "Service Unavailable" back from 41.225.81.8:5061 <--- l'adresse et le port correspond bien au spa 112.
-- SIP/sabi-000000dc is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Auto fallthrough, channel 'IAX2/david-2918' status is 'CONGESTION'
-
ok.. au temps pour moi !
dans ce cas là, je ferais un ngrep sur le port 5060 et voir en détail ce qui se passe. ca sent qd meme le SPA qui refuse l'appel - je maitrise pas cet ata, mais sur ceux que j'utilise, je peux activer les syslog vers un serveur et voir ce qui se passe en détail
-
J'ai vu passer la concept de syslog, je ne l'ai jamais fait, c'est mon premier ata.
Auriez vous un tutoriel à me conseiller?
-
Le compte SIP est bien indiqué Register sur le SPA112 bien entendu ?
-
voici un résume des informations:
Code:
Hook State: On Registration State: Registered
Last Registration At: 9/6/2013 20:02:33 Next Registration In: 53 s
Message Waiting: No Mapped SIP Port:
Il est aussi enregistré sur asterisk.
-
Bon, je bloc que le fichier de configuration de syslog, etc/default/syslog-ng.