[Asterisk-bsd] missing destination extension in chan_capi, incoming calls fail

Michael Iedema michael at askozia.com
Thu Mar 27 07:19:24 CDT 2008


On Wed, Mar 26, 2008 at 7:12 PM, Hans Petter Selasky <hselasky at c2i.net> wrote:
> Hi,
>
>  Could you send me your updated "extensions.conf" ?
>
>  Does the following extension exist: 'ISDN Out-incoming' ?
>
>  I think it is something in the dialplan that is wrong.
>
>  --HPS
>

That log was copied from the web interface which replaces the internal
names with the user given names. I've disabled it in future releases.
The context is below:

; incoming provider : ISDN Out
[ISDN-PROVIDER-159382343347c6f0e545af0-incoming]


When there is only one destination for incoming calls from that line,
things work with immediate=yes. That sets an 's' extension and
AskoziaPBX generates an 's' extension to be used. For multiple
destinations, no number is sent and AskoziaPBX does not generate 's'
extensions as the call must be routed.

I will have access next week to a PTP line to do my own testing but
for now here are his extensions.conf and interface status info.

Regards,
-Michael


extensions.conf:
---------------------------
[macro-main];
exten => s,1,Dial(${ARG1},${ARG5},${ARG4})
exten => s,n,NoOp(DIALSTATUS: ${DIALSTATUS})
exten => s,n,Goto(s-${DIALSTATUS},1)

;exten => s-ANSWER
;exten => s-CANCEL
;exten => s-CHANUNAVAIL
;exten => s-CONGESTION
;exten => s-DONTCALL
;exten => s-TORTURE
;exten => s-INVALIDARGS
exten => s-BUSY,1,Goto(busy,1)
exten => s-NOANSWER,1,Goto(noanswer,1)
exten => _s-.,1,Goto(noanswer,1)

; busy
exten => busy,1,GotoIf($["${HASVOICEMAIL}" != ""]?vm-busy,1)
exten => busy,n,Busy(10)
exten => vm-busy,1,Wait(1)
exten => vm-busy,n,Set(MISSEDCAUSE=busy)
exten => vm-busy,n,GosubIf($["${SENDNOTIFICATIONS}" != ""]?mailnotification,1)
exten => vm-busy,n,ExecIf($["${NOVOICEMAILWHENBUSY}" != ""]|Busy|10)
exten => vm-busy,n,VoiceMail(${ARG2},b,${ARG3})
exten => vm-busy,n,Playback(vm-goodbye)
exten => vm-busy,n,GotoIf($["${VMSTATUS}" =
"SUCCESS"]?vm-message-exit,1:vm-nomessage-noexit,1)

; no answer
exten => noanswer,1,GotoIf($["${HASVOICEMAIL}" != ""]?vm-noanswer,1)
exten => noanswer,n,Hangup()
exten => vm-noanswer,1,Wait(1)
exten => vm-noanswer,n,Set(MISSEDCAUSE=no-answer)
exten => vm-noanswer,n,VoiceMail(${ARG2},u,${ARG3})
exten => vm-noanswer,n,Playback(vm-goodbye)
exten => vm-noanswer,n,GotoIf($["${VMSTATUS}" =
"SUCCESS"]?vm-message-exit,1:vm-nomessage-noexit,1)

; voicemail exit
exten => vm-message-exit,1,Set(MISSEDCAUSE=didntmiss)
exten => vm-message-exit,n,Hangup()
exten => vm-nomessage-exit,1,GosubIf($["${SENDNOTIFICATIONS}" !=
""]?mailnotification,1)
exten => vm-nomessage-exit,n,Hangup()

; hangup
exten => h,1,GotoIf($["${HASVOICEMAIL}" != ""]?vm-h,1)
exten => h,n,Hangup()
exten => vm-h,1,ExecIf($["${DIALSTATUS}" = "ANSWER"]|Hangup)
exten => vm-h,n,ExecIf($["${MISSEDCAUSE}" = ""]|Set|MISSEDCAUSE=hungup)
exten => vm-h,n,GosubIf($[("${SENDNOTIFICATIONS}" != "") &
("${MISSEDCAUSE}" != "didntmiss")]?mailnotification,1)
exten => vm-h,n,Hangup()

; mail missed call notification
exten =>
mailnotification,1,Set(TMPMAILFILE=/var/spool/asterisk/tmp/email-${MD5(${UNIQUEID})})
exten => mailnotification,n,System(touch ${TMPMAILFILE})
exten => mailnotification,n,System(echo "date: `date`" > ${TMPMAILFILE})
exten => mailnotification,n,System(echo "to: ${SENDNOTIFICATIONS}" >>
${TMPMAILFILE})
exten => mailnotification,n,System(echo "subject: Missed Call
(${MISSEDCAUSE})" >> ${TMPMAILFILE})
exten => mailnotification,n,System(echo "from: AskoziaPBX
Notifications <mkeuter at web.de>" >> ${TMPMAILFILE})
exten => mailnotification,n,System(echo >> ${TMPMAILFILE})
exten => mailnotification,n,System(echo
"${STRFTIME(${EPOCH},,%Y-%m-%d - %H:%M)} from ${CALLERID(all)}" >>
${TMPMAILFILE})
exten => mailnotification,n,System(/usr/local/bin/msmtp -C
/etc/msmtp.conf -t < ${TMPMAILFILE})
exten => mailnotification,n,System(rm ${TMPMAILFILE})
exten => mailnotification,n,Return()

;i - Invalid
;s - Start
;h - Hangup
;t - Timeout
;T - AbsoluteTimeout
;a - Asterisk extension
;o - Operator
; Echo
[APPLICATION-MAPPING-83606076846f835d8828a4]
exten => _[*#0-9]!,1,Answer()
exten => _[*#0-9]!,2,Echo()
exten => _[*#0-9]!,3,Hangup()

; Voicemail Main
[APPLICATION-MAPPING-202623056347c6fc9bd8a97]
exten => _[*#0-9]!,1,Answer()
exten => _[*#0-9]!,2,Wait(1)
exten => _[*#0-9]!,3,VoiceMailMain()

; WakeMe
[APPLICATION-MAPPING-202074715246f8385a7a820]
exten => _[*#0-9]!,1,Answer()
exten => _[*#0-9]!,2,Set(CHANNEL(language)=en)
exten => _[*#0-9]!,3,WakeMe()
exten => _[*#0-9]!,4,Hangup()

; Milliwatt
[APPLICATION-MAPPING-48856682646f8381701993]
exten => _[*#0-9]!,1,Answer()
exten => _[*#0-9]!,2,Milliwatt()
exten => _[*#0-9]!,3,Hangup()


[public-direct-dial]

[internal]
; internal phone : AEG Tosca Fritzbox - <26>
exten => 26,1,NoOp(internal calling internal phone: AEG Tosca Fritzbox - <26>)
exten => 26,n,Macro(main|SIP/26|26|26|tTo|20)
; internal phone : Euracom P4 - <25>
exten => 25,1,NoOp(internal calling internal phone: Euracom P4 - <25>)
exten => 25,n,Macro(main|SIP/25|25|25|tTo|20)
; internal phone : Snom 360 - <22>
exten => 22,1,NoOp(internal calling internal phone: Snom 360 - <22>)
exten => 22,n,Macro(main|SIP/22|22|22|tTo|)
; application : Echo
exten => 00003246,1,NoOp(internal calling application: Echo)
exten =>
00003246,n,Dial(Local/${EXTEN}@APPLICATION-MAPPING-83606076846f835d8828a4/n)
; application : Voicemail Main
exten => 7000,1,NoOp(internal calling application: Voicemail Main)
exten =>
7000,n,Dial(Local/${EXTEN}@APPLICATION-MAPPING-202623056347c6fc9bd8a97/n)
; application : WakeMe
exten => 00009253,1,NoOp(internal calling application: WakeMe)
exten =>
00009253,n,Dial(Local/${EXTEN}@APPLICATION-MAPPING-202074715246f8385a7a820/n)
; application : Milliwatt
exten => 000064554,1,NoOp(internal calling application: Milliwatt)
exten =>
000064554,n,Dial(Local/${EXTEN}@APPLICATION-MAPPING-48856682646f8381701993/n)
; conference room : Default Conference - <2663>
exten => 2663,1,NoOp(internal calling conference: Default Conference - <2663>)
exten => 2663,n,Answer()
exten => 2663,n,MeetMe(2663,M)
exten => 2663,n,Hangup()
; parking lot
include => parkedcalls
exten => 701,1,ParkedCall(701)
exten => 701,hint,park:701 at parkedcalls
exten => 702,1,ParkedCall(702)
exten => 702,hint,park:702 at parkedcalls
exten => 703,1,ParkedCall(703)
exten => 703,hint,park:703 at parkedcalls
exten => 704,1,ParkedCall(704)
exten => 704,hint,park:704 at parkedcalls
exten => 705,1,ParkedCall(705)
exten => 705,hint,park:705 at parkedcalls
exten => 706,1,ParkedCall(706)
exten => 706,hint,park:706 at parkedcalls
exten => 707,1,ParkedCall(707)
exten => 707,hint,park:707 at parkedcalls
exten => 708,1,ParkedCall(708)
exten => 708,hint,park:708 at parkedcalls
exten => 709,1,ParkedCall(709)
exten => 709,hint,park:709 at parkedcalls
exten => 710,1,ParkedCall(710)
exten => 710,hint,park:710 at parkedcalls
exten => 711,1,ParkedCall(711)
exten => 711,hint,park:711 at parkedcalls
exten => 712,1,ParkedCall(712)
exten => 712,hint,park:712 at parkedcalls
exten => 713,1,ParkedCall(713)
exten => 713,hint,park:713 at parkedcalls
exten => 714,1,ParkedCall(714)
exten => 714,hint,park:714 at parkedcalls
exten => 715,1,ParkedCall(715)
exten => 715,hint,park:715 at parkedcalls
exten => 716,1,ParkedCall(716)
exten => 716,hint,park:716 at parkedcalls
exten => 717,1,ParkedCall(717)
exten => 717,hint,park:717 at parkedcalls
exten => 718,1,ParkedCall(718)
exten => 718,hint,park:718 at parkedcalls
exten => 719,1,ParkedCall(719)
exten => 719,hint,park:719 at parkedcalls
exten => 720,1,ParkedCall(720)
exten => 720,hint,park:720 at parkedcalls
; sip device hints
exten => 22,hint,SIP/22
exten => 25,hint,SIP/25
exten => 26,hint,SIP/26

; incoming provider : ISDN Out
[ISDN-PROVIDER-159382343347c6f0e545af0-incoming]
include => public-direct-dial
exten => 22,1,NoOp(incoming call from provider: ISDN Out to ${EXTEN})
exten => 22,n,Ringing()
exten => 22,n,Wait(1)
exten => 22,n,Macro(main|SIP/22|22|22|to|)

exten => 7000,1,NoOp(incoming call from provider: ISDN Out to ${EXTEN})
exten => 7000,n,Ringing()
exten => 7000,n,Wait(1)
exten =>
7000,n,Dial(Local/${EXTEN}@APPLICATION-MAPPING-202623056347c6fc9bd8a97/n)

; outgoing provider : ISDN Out
[ISDN-PROVIDER-159382343347c6f0e545af0]
exten => _9.,1,NoOp(outgoing call to provider: ISDN Out)
exten => _9.,n,Dial(CAPI/0/${EXTEN:1}/bl,,To)
exten => _9.,n,Hangup()


; AEG Tosca Fritzbox - <26>
[SIP-PHONE-125793563347e7fe6d229b2]
include => internal
include => ISDN-PROVIDER-159382343347c6f0e545af0

; Euracom P4 - <25>
[SIP-PHONE-11808374047e7f46f6d80d]
include => internal
include => ISDN-PROVIDER-159382343347c6f0e545af0

; Snom 360 - <22>
[SIP-PHONE-191033468047c6f09a41bbc]
include => internal
include => ISDN-PROVIDER-159382343347c6f0e545af0

; isdn te interface "HFC PCI Card" incoming
[isdn-unit-0-incoming]
exten => _[0-9a-zA-Z*#]!,1,Set(CHANNEL(language)=de)
exten =>
_[0-9a-zA-Z*#]!,n,Goto(ISDN-PROVIDER-159382343347c6f0e545af0-incoming,${EXTEN},1)
exten => s,1,Set(CHANNEL(language)=de)
exten => s,n,Goto(ISDN-PROVIDER-159382343347c6f0e545af0-incoming,${EXTEN},1)

[outgoing-uri]
exten => _[0-9a-zA-Z*#]!,1,NoOp(Direct dialing via SIP uri :
${EXTEN}@${SIPDOMAIN})
exten => _[0-9a-zA-Z*#]!,n,Dial(SIP/${EXTEN}@${SIPDOMAIN},,To)




-----------------------------------------------------------
Status: Interfaces

ISDN Unit 0 (HFC PCI Card)
Attached	yes
PH State	F3: Deactivated
Dialtone	enabled
Description	HFC-2BDS0 128K PCI ISDN adapter
Type	passive ISDN (Basic Rate, 2xB)
Driver Type	DRVR_DSS1_P2P_TE (point-to-point, terminal equipment)
Channels	0x3
Serial	0xabcd
Power Save	off



More information about the Asterisk-BSD mailing list