After configuring mISDN with the B400P card if I configure FreePbx (Asterisk@Home) with a Any DID/Any CID everithing works.
But I can't configure a DID.
I configured an EXT-DID:
[ext-did]
exten => s,1,WaitForDigits(6000,2,true,15)
exten => s,1,Set(__FROM_DID=${EXTEN})
exten => s,n,Gosub(app-blacklist-check,s,1)
exten => s,n,GotoIf($[ "${CALLERID(name)}" != "" ] ?cidok)
exten => s,n,Set(CALLERID(name)=${CALLERID(num)})
exten => s,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => s,n,Goto(from-did-direct,452,1)
But something is wrong, because the asterisk give me a no-service message.
I think the problem can be that the card doesn't receive the last two numbers of the called number, but only the radix 011197111.
How can I configure it to get all the digits?
This is a part of log:
P[ 1] I SEND:SETUP_ACKNOWLEDGE oad:0******** dad:011197111 pid:9
P[ 1] --> bc_state:BCHAN_ACTIVATED
P[ 1] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1] --> info_dad: onumplan:2 dnumplan:2 rnumplan: cpnnumplan:0
P[ 1] --> caps:Speech pi:3 keypad: sending_complete:1
P[ 1] --> screen:0 --> pres:0
P[ 1] --> addr:50010102 l3id:20020 b_stid:10010100 layer_id:50010180
P[ 1] --> facility:Fac_None out_facility:Fac_None
P[ 1] --> urate:0 rate:16 mode:0 user1:0
P[ 1] --> bc:8c675a4 h:0 sh:0
P[ 1] * Starting Ast ctx:from-pstn dad:011197111 oad:0******** with 's' extension
P[ 1] GOT SETUP OK
P[ 1] Freeing Msg on prim:30582
P[ 1] Sending msg, prim:30d80 addr:41000104 dinfo:20020
== Starting mISDN/3-u67 at from-pstn,011197111,1 failed so falling back to exten 's'
== Spawn extension (from-pstn, s, 1) exited non-zero on 'mISDN/3-u67'
P[ 1] * IND : HANGUP pid:9 ctx:from-pstn dad:s oad:0******** StateIALING
But I can't configure a DID.
I configured an EXT-DID:
[ext-did]
exten => s,1,WaitForDigits(6000,2,true,15)
exten => s,1,Set(__FROM_DID=${EXTEN})
exten => s,n,Gosub(app-blacklist-check,s,1)
exten => s,n,GotoIf($[ "${CALLERID(name)}" != "" ] ?cidok)
exten => s,n,Set(CALLERID(name)=${CALLERID(num)})
exten => s,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => s,n,Goto(from-did-direct,452,1)
But something is wrong, because the asterisk give me a no-service message.
I think the problem can be that the card doesn't receive the last two numbers of the called number, but only the radix 011197111.
How can I configure it to get all the digits?
This is a part of log:
P[ 1] I SEND:SETUP_ACKNOWLEDGE oad:0******** dad:011197111 pid:9
P[ 1] --> bc_state:BCHAN_ACTIVATED
P[ 1] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1] --> info_dad: onumplan:2 dnumplan:2 rnumplan: cpnnumplan:0
P[ 1] --> caps:Speech pi:3 keypad: sending_complete:1
P[ 1] --> screen:0 --> pres:0
P[ 1] --> addr:50010102 l3id:20020 b_stid:10010100 layer_id:50010180
P[ 1] --> facility:Fac_None out_facility:Fac_None
P[ 1] --> urate:0 rate:16 mode:0 user1:0
P[ 1] --> bc:8c675a4 h:0 sh:0
P[ 1] * Starting Ast ctx:from-pstn dad:011197111 oad:0******** with 's' extension
P[ 1] GOT SETUP OK
P[ 1] Freeing Msg on prim:30582
P[ 1] Sending msg, prim:30d80 addr:41000104 dinfo:20020
== Starting mISDN/3-u67 at from-pstn,011197111,1 failed so falling back to exten 's'
== Spawn extension (from-pstn, s, 1) exited non-zero on 'mISDN/3-u67'
P[ 1] * IND : HANGUP pid:9 ctx:from-pstn dad:s oad:0******** StateIALING