[Asterisk-Users] capi dial in/out configuration

Ohad.Levy at infineon.com Ohad.Levy at infineon.com
Thu May 26 23:23:22 MST 2005


Hi all,

 

I've recentrly starting to play around with *, when all I wanted is to
configure an fritz ISDN card with A at H.

Currently I'm stuck at the phase of what do I do with capi after
everything is installed.

I'm trying to understand how to setup incoming and outgoing calls at A at H
since I'm getting a bit lost with the default dial plan.

It seems that * answers but disconnect it directly, and I'm unable to
setup outgoing calls.

I know this is a very general question, but if anyone could give me some
pointers about how to setup capi dial plan, and explain some terms like
msn in the capi.conf file.

 

My capi.conf

 

[root at asterisk1 asterisk]# cat capi.conf  |grep -v ';'

[general]

nationalprefix=0

internationalprefix=00

rxgain=0.8

txgain=0.8

 

[interfaces]

 

msn=50

incomingmsn=*

controller=1

softdtmf=1

accountcode=

context=demo

devices=2

 

I've added these two lines the extensions_custom:

 

s,1,Dial,CAPI/@50:b${EXTEN}|30     always early B3

s,1,Dial,CAPI/@50:${EXTEN}|30|r    no early B3, fake ring indication

 

 

when dialing out I get:

 

-- Executing Macro("SIP/200-3b6b", "dialout-trunk|1|999") in new stack

    -- Executing GotoIf("SIP/200-3b6b", "fooOhad?4") in new stack

    -- Executing SetCallerID("SIP/200-3b6b", "Ohad Levy") in new stack

    -- Executing Goto("SIP/200-3b6b", "6") in new stack

    -- Goto (macro-dialout-trunk,s,6)

    -- Executing SetGroup("SIP/200-3b6b", "OUT_1") in new stack

    -- Executing CheckGroup("SIP/200-3b6b", "") in new stack

    -- Executing SetVar("SIP/200-3b6b", "DIAL_NUMBER=999") in new stack

    -- Executing SetVar("SIP/200-3b6b", "DIAL_TRUNK=1") in new stack

    -- Executing AGI("SIP/200-3b6b", "fixlocalprefix") in new stack

    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix

    -- AGI Script fixlocalprefix completed, returning 0

    -- Executing Dial("SIP/200-3b6b", "/999") in new stack

  == Everyone is busy/congested at this time

    -- Executing NoOp("SIP/200-3b6b", "dial failed") in new stack

    -- Executing Macro("SIP/200-3b6b", "outisbusy") in new stack

    -- Executing Playback("SIP/200-3b6b",
"allison7/all-circuits-busy-now") in new stack

    -- Playing 'allison7/all-circuits-busy-now' (language 'en')

  == Spawn extension (macro-outisbusy, s, 1) exited non-zero on
'SIP/200-3b6b' in macro 'outisbusy'

  == Spawn extension (from-internal, 9999, 2) exited non-zero on
'SIP/200-3b6b'

    -- Executing Macro("SIP/200-3b6b", "hangupcall") in new stack

    -- Executing ResetCDR("SIP/200-3b6b", "w") in new stack == Starting
CAPI[contr1/8856224]/0 at demo,8856224,1 failed so falling back to exten
's'

  == Starting CAPI[contr1/8856224]/0 at demo,s,1 still failed so falling
back to context 'default'

    -- Executing Playback("CAPI[contr1/8856224]/0", "vm-goodbye") in new
stack

    -- started pbx on channel (callgroup=0)!

    -- Playing 'vm-goodbye' (language 'en')

    -- Executing Macro("CAPI[contr1/8856224]/0", "hangupcall") in new
stack

    -- Executing ResetCDR("CAPI[contr1/8856224]/0", "w") in new stack

    -- Executing NoCDR("CAPI[contr1/8856224]/0", "") in new stack

    -- Executing Wait("CAPI[contr1/8856224]/0", "5") in new stack

    -- Executing Hangup("CAPI[contr1/8856224]/0", "") in new stack

  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on
'CAPI[contr1/8856224]/0' in macro 'hangupcall'

  == Spawn extension (default, s, 2) exited non-zero on
'CAPI[contr1/8856224]/0'

    -- Executing NoCDR("SIP/200-3b6b", "") in new stack

    -- Executing Wait("SIP/200-3b6b", "5") in new stack

  == Spawn extension (macro-hangupcall, s, 3) exited non-zero on
'SIP/200-3b6b' in macro 'hangupcall'

  == Spawn extension (from-internal, h, 1) exited non-zero on
'SIP/200-3b6b'

 

 

When receiving a call:

== Starting CAPI[contr1/<myisdn#>]/0 at demo, <myisdn#>,1 failed so
falling back to exten 's'

  == Starting CAPI[contr1/<myisdn#>]/0 at demo,s,1 still failed so
falling back to context 'default'

    -- Executing Playback("CAPI[contr1/<myisdn#>]/0", "vm-goodbye") in
new stack

    -- started pbx on channel (callgroup=0)!

    -- Playing 'vm-goodbye' (language 'en')

    -- Executing Macro("CAPI[contr1/<myisdn#>]/0", "hangupcall") in new
stack

    -- Executing ResetCDR("CAPI[contr1/<myisdn#>]/0", "w") in new stack

    -- Executing NoCDR("CAPI[contr1/<myisdn#>]/0", "") in new stack

    -- Executing Wait("CAPI[contr1/<myisdn#>]/0", "5") in new stack

    -- Executing Hangup("CAPI[contr1/<myisdn#>]/0", "") in new stack

  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on
'CAPI[contr1/<myisdn#>]/0' in macro 'hangupcall'

  == Spawn extension (default, s, 2) exited non-zero on
'CAPI[contr1/<myisdn#>]/0'

 

 

Thanks a lot,

Ohad

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050527/d7be26f6/attachment.htm


More information about the asterisk-users mailing list