megahead13
07-04-10, 21:56
Νέος στο χώρο του Asterisk/Elastix, οπότε χρειάζομαι κάποια βοήθεια. Έχω εγκαταστήσει Elastix σε 2 servers για κάποιο πρότζεκτ στο πανεπιστήμιο. Στον έναν από αυτούς έχω φτιάξει κάποια extensions μέσω του web interface προκειμένου να τεστάρω αυτό που θέλω να κάνω στη συνέχεια του πρότζεκτ. Ένα από τα extensions όμως το έφτιαξα χεράτα, δημιουργώντας τα δικά μου conf αρχεία, τα οποία φυσικά έκανα include στα κυρίως extensions.conf και sip.conf. Το πρόβλημα είναι ότι όταν καλώ αυτό το extension η κλήση αποτυγχάνει. Παραθέτω τα conf μου:
extensions_mine.conf
[myincoming]
exten => 1100,1,Answer()
exten => 1100,n,Playback(hello-world)
exten => 1100,n,Hangup()
sip.conf
[general]
allow=all
register => 1100:1100@192.168.1.2/1100
sip_mine.conf
[1100]
type=friend
context=myincoming
username=1100
secret=1100
host=192.168.1.2
Καμιά ιδέα για το τι κάνω λάθος; Ευχαριστώ...
........Auto merged post: megahead13 πρόσθεσε 50 λεπτά και 33 δευτερόλεπτα αργότερα ........
Να και το log όταν προσπαθώ να καλέσω το extension που έφτιαξα χεράτα:
[Apr 7 19:45:49] VERBOSE[2886] chan_sip.c: Reloading SIP
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_general_additional.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_mine.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_general_custom.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_nat.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_registrations_custom.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_registrations.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_custom.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_additional.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_custom_post.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/users.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_notify.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_notify_custom.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_notify_additional.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] chan_sip.c: -- Registered SIP '1100' at 192.168.1.2 port 5060
[Apr 7 19:47:08] VERBOSE[2886] netsock.c: == Using SIP RTP TOS bits 184
[Apr 7 19:47:08] VERBOSE[2886] netsock.c: == Using SIP RTP CoS mark 5
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [1100@from-internal:1] Macro("SIP/2000-0000000b", "user-callerid,SKIPTTL,") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:1] Set("SIP/2000-0000000b", "AMPUSER=2000") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:2] GotoIf("SIP/2000-0000000b", "0?report") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:3] ExecIf("SIP/2000-0000000b", "1?Set(REALCALLERIDNUM=2000)") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:4] Set("SIP/2000-0000000b", "AMPUSER=2000") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:5] Set("SIP/2000-0000000b", "AMPUSERCIDNAME=Test2") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/2000-0000000b", "0?report") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:7] Set("SIP/2000-0000000b", "AMPUSERCID=2000") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:8] Set("SIP/2000-0000000b", "CALLERID(all)="Test2" <2000>") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:9] ExecIf("SIP/2000-0000000b", "0?Set(CHANNEL(language)=)") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:10] GotoIf("SIP/2000-0000000b", "1?continue") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Goto (macro-user-callerid,s,19)
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:19] NoOp("SIP/2000-0000000b", "Using CallerID "Test2" <2000>") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [1100@from-internal:2] NoCDR("SIP/2000-0000000b", "") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [1100@from-internal:3] Wait("SIP/2000-0000000b", "1") in new stack
[Apr 7 19:47:09] VERBOSE[3090] pbx.c: -- Executing [1100@from-internal:4] Playback("SIP/2000-0000000b", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack
[Apr 7 19:47:09] VERBOSE[3090] file.c: -- <SIP/2000-0000000b> Playing 'silence/1.gsm' (language 'en')
[Apr 7 19:47:10] VERBOSE[3090] file.c: -- <SIP/2000-0000000b> Playing 'cannot-complete-as-dialed.gsm' (language 'en')
[Apr 7 19:47:12] VERBOSE[3090] file.c: -- <SIP/2000-0000000b> Playing 'check-number-dial-again.gsm' (language 'en')
[Apr 7 19:47:15] VERBOSE[3090] pbx.c: -- Executing [1100@from-internal:5] Wait("SIP/2000-0000000b", "1") in new stack
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: -- Executing [1100@from-internal:6] Congestion("SIP/2000-0000000b", "20") in new stack
[Apr 7 19:47:16] WARNING[3090] channel.c: Prodding channel 'SIP/2000-0000000b' failed
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: == Spawn extension (from-internal, 1100, 6) exited non-zero on 'SIP/2000-0000000b'
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: -- Executing [h@from-internal:1] Macro("SIP/2000-0000000b", "hangupcall") in new stack
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("SIP/2000-0000000b", "1?skiprg") in new stack
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: -- Goto (macro-hangupcall,s,4)
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: -- Executing [s@macro-hangupcall:4] GotoIf("SIP/2000-0000000b", "1?skipblkvm") in new stack
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: -- Goto (macro-hangupcall,s,7)
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: -- Executing [s@macro-hangupcall:7] GotoIf("SIP/2000-0000000b", "1?theend") in new stack
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: -- Goto (macro-hangupcall,s,9)
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: -- Executing [s@macro-hangupcall:9] Hangup("SIP/2000-0000000b", "") in new stack
[Apr 7 19:47:16] VERBOSE[3090] app_macro.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/2000-0000000b' in macro 'hangupcall'
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/2000-0000000b'
extensions_mine.conf
[myincoming]
exten => 1100,1,Answer()
exten => 1100,n,Playback(hello-world)
exten => 1100,n,Hangup()
sip.conf
[general]
allow=all
register => 1100:1100@192.168.1.2/1100
sip_mine.conf
[1100]
type=friend
context=myincoming
username=1100
secret=1100
host=192.168.1.2
Καμιά ιδέα για το τι κάνω λάθος; Ευχαριστώ...
........Auto merged post: megahead13 πρόσθεσε 50 λεπτά και 33 δευτερόλεπτα αργότερα ........
Να και το log όταν προσπαθώ να καλέσω το extension που έφτιαξα χεράτα:
[Apr 7 19:45:49] VERBOSE[2886] chan_sip.c: Reloading SIP
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_general_additional.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_mine.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_general_custom.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_nat.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_registrations_custom.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_registrations.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_custom.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_additional.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_custom_post.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/users.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_notify.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_notify_custom.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] config.c: == Parsing '/etc/asterisk/sip_notify_additional.conf': [Apr 7 19:45:49] VERBOSE[2886] config.c: == Found
[Apr 7 19:45:49] VERBOSE[2886] chan_sip.c: -- Registered SIP '1100' at 192.168.1.2 port 5060
[Apr 7 19:47:08] VERBOSE[2886] netsock.c: == Using SIP RTP TOS bits 184
[Apr 7 19:47:08] VERBOSE[2886] netsock.c: == Using SIP RTP CoS mark 5
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [1100@from-internal:1] Macro("SIP/2000-0000000b", "user-callerid,SKIPTTL,") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:1] Set("SIP/2000-0000000b", "AMPUSER=2000") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:2] GotoIf("SIP/2000-0000000b", "0?report") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:3] ExecIf("SIP/2000-0000000b", "1?Set(REALCALLERIDNUM=2000)") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:4] Set("SIP/2000-0000000b", "AMPUSER=2000") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:5] Set("SIP/2000-0000000b", "AMPUSERCIDNAME=Test2") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/2000-0000000b", "0?report") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:7] Set("SIP/2000-0000000b", "AMPUSERCID=2000") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:8] Set("SIP/2000-0000000b", "CALLERID(all)="Test2" <2000>") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:9] ExecIf("SIP/2000-0000000b", "0?Set(CHANNEL(language)=)") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:10] GotoIf("SIP/2000-0000000b", "1?continue") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Goto (macro-user-callerid,s,19)
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [s@macro-user-callerid:19] NoOp("SIP/2000-0000000b", "Using CallerID "Test2" <2000>") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [1100@from-internal:2] NoCDR("SIP/2000-0000000b", "") in new stack
[Apr 7 19:47:08] VERBOSE[3090] pbx.c: -- Executing [1100@from-internal:3] Wait("SIP/2000-0000000b", "1") in new stack
[Apr 7 19:47:09] VERBOSE[3090] pbx.c: -- Executing [1100@from-internal:4] Playback("SIP/2000-0000000b", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack
[Apr 7 19:47:09] VERBOSE[3090] file.c: -- <SIP/2000-0000000b> Playing 'silence/1.gsm' (language 'en')
[Apr 7 19:47:10] VERBOSE[3090] file.c: -- <SIP/2000-0000000b> Playing 'cannot-complete-as-dialed.gsm' (language 'en')
[Apr 7 19:47:12] VERBOSE[3090] file.c: -- <SIP/2000-0000000b> Playing 'check-number-dial-again.gsm' (language 'en')
[Apr 7 19:47:15] VERBOSE[3090] pbx.c: -- Executing [1100@from-internal:5] Wait("SIP/2000-0000000b", "1") in new stack
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: -- Executing [1100@from-internal:6] Congestion("SIP/2000-0000000b", "20") in new stack
[Apr 7 19:47:16] WARNING[3090] channel.c: Prodding channel 'SIP/2000-0000000b' failed
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: == Spawn extension (from-internal, 1100, 6) exited non-zero on 'SIP/2000-0000000b'
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: -- Executing [h@from-internal:1] Macro("SIP/2000-0000000b", "hangupcall") in new stack
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("SIP/2000-0000000b", "1?skiprg") in new stack
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: -- Goto (macro-hangupcall,s,4)
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: -- Executing [s@macro-hangupcall:4] GotoIf("SIP/2000-0000000b", "1?skipblkvm") in new stack
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: -- Goto (macro-hangupcall,s,7)
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: -- Executing [s@macro-hangupcall:7] GotoIf("SIP/2000-0000000b", "1?theend") in new stack
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: -- Goto (macro-hangupcall,s,9)
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: -- Executing [s@macro-hangupcall:9] Hangup("SIP/2000-0000000b", "") in new stack
[Apr 7 19:47:16] VERBOSE[3090] app_macro.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/2000-0000000b' in macro 'hangupcall'
[Apr 7 19:47:16] VERBOSE[3090] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/2000-0000000b'