zaptel.conf -------------- # hfc-s pci a span definition # most of the values should be bogus because we are not really zaptel loadzone=nl defaultzone=nl span=1,1,3,ccs,ami bchan=1-2 dchan=3 --------------------------- zapata.conf ----------- [channels] language=>hu switchtype=>euroisdn signalling=>bri_cpe pridialplan=>national prilocaldialplan=>national ;nationalprefix=>0 ;internationalprefix=>00 echocancel=>yes echotraining=>100 echocancelwhenbridged=>yes immediate=>yes group=>1 context=>mainmenu channel=>1-2 ---------------------------- asterisk console message when I call in (it's absolutely perfect): ---------------------------------------- debian*CLI> -- Going to extension s|1 because of immediate=yes -- Accepting voice call from '9992086' to 's' on channel 0/1, span 1 -- Executing Dial("Zap/1-1", "SIP/5002") in new stack -- Called 5002 -- SIP/5002-b51e is ringing -- SIP/5002-b51e answered Zap/1-1 -- Channel 0/1, span 1 got hangup == Spawn extension (mainmenu, s, 1) exited non-zero on 'Zap/1-1' -- Hungup 'Zap/1-1' debian*CLI> ------------------------------------- asterisk console message, when I try to call in: ------------------------------------------------- debian*CLI> -- Executing Dial("SIP/5002-5f1d", "Zap/g1/0619992086") in new stack -- Requested transfer capability: 0x00 - SPEECH -- Called g1/0619992086 -- Channel 0/1, span 1 got hangup Jul 4 10:08:52 WARNING[6970]: app_dial.c:426 wait_for_answer: Unable to forward voice -- Hungup 'Zap/1-1' == No one is available to answer at this time debian*CLI> ------------------------------------------------- extensions.conf: -------------------------------------------------- [general] static=yes writeprotect=no ;-------------------------------------------------------------------------------------------------------------------------------- [globals] TRUNK = Zap/g1 TRUNKMSDN = 1 ;-------------------------------------------------------------------------------------------------------------------------------- [mainmenu] include => belfoldi_kimeno_hivas exten => s,1,Dial(SIP/5002) ;-------------------------------------------------------------------------------------------------------------------------------- [macro-belso_mellekek] exten => s,1,Dial(${ARG1},10) ;-------------------------------------------------------------------------------------------------------------------------------- [belso_mellekek] include => belfoldi_kimeno_hivas exten => 310,1,Macro(belso_mellekek,SIP/310) exten => 5000,1,Macro(belso_mellekek,SIP/5000) exten => 5001,1,Macro(belso_mellekek,SIP/5001) exten => 5002,1,Macro(belso_mellekek,SIP/5002) exten => 5003,1,Macro(belso_mellekek,SIP/5003) exten => 5004,1,Macro(belso_mellekek,SIP/5004) exten => 5005,1,Macro(belso_mellekek,SIP/5005) exten => 5006,1,Macro(belso_mellekek,SIP/5006) exten => 5007,1,Macro(belso_mellekek,SIP/5007) exten => 5008,1,Macro(belso_mellekek,SIP/5008) exten => 5009,1,Macro(belso_mellekek,SIP/5009) exten => 5010,1,Macro(belso_mellekek,SIP/5010) ;-------------------------------------------------------------------------------------------------------------------------------- [belfoldi_kimeno_hivas] exten => _061xxxxxxx,1,Dial(${TRUNK}/${EXTEN}) exten => _xxxxxxx,1,Dial(${TRUNK}/${EXTEN}) exten => _06xxxxxxxx,1,Dial(${TRUNK}/${EXTEN}) exten => _06[237]0xxxxxxx,1,Dial(${TRUNK}/${EXTEN})