[asterisk-users] SIP not answering on one trunk.

Ron Wheeler rwheeler at artifact-software.com
Tue Nov 27 14:01:05 CST 2012


I have 2 analog trunks.

They answer the incoming call, do the welcome message, ask for the 
extension, when a valid extension is entered it rings the right SIP 
phone BUT
when the SIP phone is answered, the SIP phone keeps ringing and the call 
is not connected.
If the phone is not answered it goes to voicemail correctly.


[DID_866nnnnnnn]                  IAX that works
include = DID_866nnnnnnn_default
[DID_866nnnnnnn_default]
exten => 866nnnnn,1,Goto(voicemenu-artifact-en,s,1)

[DID_trunk_1]
include = DID_trunk_1_default
[DID_trunk_1_default]
exten => s,1,Goto(voicemenu-artifact-fr,s,1)

[DID_trunk_2]
include = DID_trunk_2_default
[DID_trunk_2_default]
exten => s,1,Goto(voicemenu-home,s,1)

[voicemenu-artifact-en]
;ArtifactEnglishFirst
include = default
include = conferences
exten = s,1,Answer
exten = s,n,Set(CALLERID(name)=Art-${CALLERID(name)})
exten = s,n,Wait(0.5)
exten = s,n,Background(record/HelloArtifactEnglish)
exten = s,n(menu),Background(record/DialExtensionEnglish)
exten = s,n,WaitExten(3)
exten = 0,1,Goto(inbound-reception,s,1)
exten = 9,1,Goto(changeLanguageFrArtifact,s,1)
exten = #,1,Directory(default,default,f)
exten = t,1,Goto(inbound-reception,s,1)
exten = i,1,Goto(voicemenu-artifact-en,s,menu)

My IAX trunks work.

Log of dialing in on Trunk2 - answering SIP 102 and waiting while it 
continued to ring.

[2012-11-27 14:43:52] VERBOSE[3589] sig_analog.c:     -- Starting simple 
switch on 'DAHDI/2-1'
[2012-11-27 14:43:53] VERBOSE[3589] pbx.c:     -- Executing 
[s at DID_trunk_2:1] Goto("DAHDI/2-1", "voicemenu-home,s,1") in new stack
[2012-11-27 14:43:53] VERBOSE[3589] pbx.c:     -- Goto (voicemenu-home,s,1)
[2012-11-27 14:43:53] VERBOSE[3589] pbx.c:     -- Executing 
[s at voicemenu-home:1] Answer("DAHDI/2-1", "") in new stack
[2012-11-27 14:43:53] VERBOSE[3589] pbx.c:     -- Executing 
[s at voicemenu-home:2] Set("DAHDI/2-1", "CALLERID(name)=Home-ARTIFACT 
LOGICI") in new stack
[2012-11-27 14:43:53] VERBOSE[3589] pbx.c:     -- Executing 
[s at voicemenu-home:3] Wait("DAHDI/2-1", "0.5") in new stack
[2012-11-27 14:43:53] VERBOSE[3589] pbx.c:     -- Executing 
[s at voicemenu-home:4] BackGround("DAHDI/2-1", 
"record/HelloAnnetteAndRon") in new stack
[2012-11-27 14:43:53] VERBOSE[3589] file.c:     -- <DAHDI/2-1> Playing 
'record/HelloAnnetteAndRon.ulaw' (language 'en')
[2012-11-27 14:43:56] VERBOSE[3589] pbx.c:   == CDR updated on DAHDI/2-1
[2012-11-27 14:43:56] VERBOSE[3589] pbx.c:     -- Executing 
[102 at voicemenu-home:1] Macro("DAHDI/2-1", "stdexten,102,SIP/102") in new 
stack
[2012-11-27 14:43:56] VERBOSE[3589] pbx.c:     -- Executing 
[s at macro-stdexten:1] Set("DAHDI/2-1", "__DYNAMIC_FEATURES=") in new stack
[2012-11-27 14:43:56] VERBOSE[3589] pbx.c:     -- Executing 
[s at macro-stdexten:2] Set("DAHDI/2-1", "ORIG_ARG1=102") in new stack
[2012-11-27 14:43:56] VERBOSE[3589] pbx.c:     -- Executing 
[s at macro-stdexten:3] GotoIf("DAHDI/2-1", "0?6:4") in new stack
[2012-11-27 14:43:56] VERBOSE[3589] pbx.c:     -- Goto (macro-stdexten,s,4)
[2012-11-27 14:43:56] VERBOSE[3589] pbx.c:     -- Executing 
[s at macro-stdexten:4] Dial("DAHDI/2-1", "SIP/102,20,") in new stack
[2012-11-27 14:43:56] VERBOSE[3589] netsock2.c:   == Using SIP RTP CoS 
mark 5
[2012-11-27 14:43:56] VERBOSE[3589] app_dial.c:     -- Called SIP/102
[2012-11-27 14:43:56] VERBOSE[3589] app_dial.c:     -- SIP/102-00000002 
is ringing
[2012-11-27 14:44:01] VERBOSE[3589] app_dial.c:     -- SIP/102-00000002 
answered DAHDI/2-1
Rang for a whole minute and a half  until I hung up the DAHDI/2-1
[2012-11-27 14:45:42] VERBOSE[3589] pbx.c:     -- Executing 
[h at voicemenu-home:1] Hangup("DAHDI/2-1", "") in new stack
[2012-11-27 14:45:42] VERBOSE[3589] features.c:   == Spawn extension 
(voicemenu-home, h, 1) exited non-zero on 'DAHDI/2-1'
[2012-11-27 14:45:42] VERBOSE[3589] app_macro.c:   == Spawn extension 
(macro-stdexten, s, 4) exited non-zero on 'DAHDI/2-1' in macro 'stdexten'
[2012-11-27 14:45:42] VERBOSE[3589] pbx.c:   == Spawn extension 
(voicemenu-home, 102, 1) exited non-zero on 'DAHDI/2-1'
[2012-11-27 14:45:42] VERBOSE[3589] sig_analog.c:     -- Hanging up on 
'DAHDI/2-1'
[2012-11-27 14:45:42] VERBOSE[3589] chan_dahdi.c:     -- Hungup 'DAHDI/2-1'
(END)

-- 
Ron Wheeler
President
Artifact Software Inc
email: rwheeler at artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102




More information about the asterisk-users mailing list