J'ai créé 2 utilisateurs dans sip_additional.config. qui est comme:Connexion SIP entrante reçue d'un homologue inconnu
[james]
secret=12345
context=tenancy1
host=dynamic
type=friend
allow=ulaw,alaw
[caleb]
secret=12345
context=tenancy1
host=dynamic
type=friend
allow=ulaw,alaw
Et créé dialplan pour le contexte ci-dessus. Ici, j'assigne des extensions en double, mais avec un contexte différent à savoir. 2222,2225 est déjà attribué à un autre utilisateur mais avec un contexte différent (de-interne).
[tenancy1]
exten => 2222,1,NoOp(james calling)
same => n,Dial(SIP/james)
same => n,Hangup
exten => 2225,1,NoOp(caleb calling)
same => n,Dial(SIP/caleb)
same => n,Hangup
La question est ici, quand je fais appel 2222-2225 puis 2224 sonne à mais 2225 ne parvient pas à faire un appel. J'ai tracé de CLI, il est dit
-- Executing [[email protected]:1] NoOp("SIP/caleb-00000004", "Received incoming SIP connection from unknown peer to 2222") in new stack
-- Executing [[email protected]:2] Set("SIP/caleb-00000004", "DID=2222") in new stack
-- Executing [[email protected]:3] Goto("SIP/caleb-00000004", "s,1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing [[email protected]:1] GotoIf("SIP/caleb-00000004", "0?checklang:noanonymous") in new stack
-- Goto (from-sip-external,s,5)
-- Executing [[email protected]:5] Set("SIP/caleb-00000004", "TIMEOUT(absolute)=15") in new stack
-- Channel will hangup at 2017-07-07 07:59:00.448 EDT.
-- Executing [[email protected]:6] Log("SIP/caleb-00000004", "WARNING,"Rejecting unknown SIP connection from 172.16.9.112"") in new stack
[2017-07-07 07:58:45] WARNING[5606][C-00000003]: Ext. s:6 @ from-sip-external: "Rejecting unknown SIP connection from 172.16.9.112"
-- Executing [[email protected]:7] Answer("SIP/caleb-00000004", "") in new stack
[2017-07-07 07:58:45] NOTICE[5606][C-00000003]: res_rtp_asterisk.c:4365 ast_rtp_read: Unknown RTP codec 95 received from '172.16.9.112:8000'
-- Executing [[email protected]:8] Wait("SIP/caleb-00000004", "2") in new stack
-- Executing [[email protected]:9] Playback("SIP/caleb-00000004", "ss-noservice") in new stack
-- <SIP/caleb-00000004> Playing 'ss-noservice.ulaw' (language 'en')
-- Executing [[email protected]:10] PlayTones("SIP/caleb-00000004", "congestion") in new stack
-- Executing [[email protected]:11] Congestion("SIP/caleb-00000004", "5") in new stack
Quelqu'un at-il une idée de ce problème.