keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about B100/200/400/800 ISDN BRI Cards

DID Problem - Solved

15 years 10 months ago #1106 by andreafi
After configuring mISDN with the B400P card if I configure FreePbx (Asterisk@Home) with a Any DID/Any CID everithing works.

Bu I can't configure a DID.

I configured a DID for the number 01119711152 to the extension 452:

exten => _01119711152 ,1,Set(__FROM_DID=${EXTEN})
exten => _01119711152 ,n,Gosub(app-blacklist-check,s,1)
exten => _01119711152 ,n,GotoIf($[ "${CALLERID(name)}" != "" ] ?cidok)
exten => _01119711152 ,n,Set(CALLERID(name)=${CALLERID(num)})
exten => _01119711152 ,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => _01119711152 ,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 the log:

== Starting mISDN/1-u2 at from-pstn,011197111,1 failed so falling back to exten 's'
-- Executing [s@from-pstn] NoOp("mISDN/1-u2", "No DID or CID Match") in new stack
-- Executing [s@from-pstn] GotoIf("mISDN/1-u2", "0?ext-did|ZapN|1") in new stack
-- Executing [s@from-pstn] Wait("mISDN/1-u2", "2") in new stack
-- Executing [s@from-pstn] Playback("mISDN/1-u2", "ss-noservice") in new stack
-- Playing 'ss-noservice' (language 'it')
== Spawn extension (from-pstn, s, 4) exited non-zero on 'mISDN/1-u2'

Thanks for your help.

Andrew
15 years 10 months ago #1107 by miaolin
Could you print the DID out? may be asterisk get a little different DID message?
15 years 10 months ago #1108 by andreafi
Sorry, what is the DID out?
15 years 10 months ago #1109 by james.zhu
hello,
please post your misdn.conf and extensions.conf, it cuts some digits, please check it:
Starting mISDN/1-u2 at from-pstn,011197111,1 failed so falling back to exten 's'
make sure the logic is correct to route to right extensions or
add this command into your extensions:
exten => _011197111 .,1,WaitForDigits(6000,2,true,15)

regards!
James.zhu

15 years 10 months ago #1110 by andreafi
These are the configuration files.

Is it possible that I have to change the context of the isdn trunk?

Andrea
Attachments:
15 years 10 months ago #1113 by james.zhu
hi,
please try it in this way:
[ext-did]
include => ext-did-custom
exten => fax,1,Goto(ext-fax,in_fax,1)
exten => _011197111 .,1,WaitForDigits(6000,2,true,15) // add this line for more digits
exten => _011197111XX,1,Set(__FROM_DID=${EXTEN})
exten => _011197111XX,n,Gosub(app-blacklist-check,s,1)
exten => _011197111XX,n,GotoIf($[ "${CALLERID(name)}" != "" ] ?cidok)
exten => _011197111XX,n,Set(CALLERID(name)=${CALLERID(num)})
exten => _011197111XX,n(cidok),Noop(CallerID is ${CALLERID(all)})
exten => _011197111XX,n,Goto(from-did-direct,452,1)
is '011197833' your fax number? maybe it go to there because of no exact match.
Regards!
James.zhu

Time to create page: 0.042 seconds
Powered by Kunena Forum