[Asterisk-Users] newbie install problem. And I alreadysearchedeverywhere!

Stijn Jonker SJCJonker at SJC.nl
Sun Sep 4 02:10:46 MST 2005


Hello Jeroen,

On 04-Sep-2005 9:22, Jeroen Baten wrote:
> Op zondag 4 september 2005 09:07, schreef Jeroen Baten:
> 
>>Op zondag 4 september 2005 00:21, schreef brett at websmyths.com:
>>
>>>Ok - what the heck is this?--------------------v
>>>Dial("SIP/4001-2fea", "Zap/2/<mycellphonenumber}")
>>>
>>>I've never seen a } used in a dial statement...
>>
>>sorry, one } to many. in extensions it reads:
>>exten => _97.,1,Dial(Zap/2/${EXTEN:2})
>>
>>still no joy though. Even changed the timeout:
>>
>> Executing Dial("SIP/4001-b455", "Zap/2/456343|15") in new stack
>>    -- Called 2/456343
>>    -- Channel 0/2, span 1 got hangup
>>    -- Hungup 'Zap/2-1'
>>  == No one is available to answer at this time

What ISDN card do you have? It sounds like a quadbri, and that your in
the netherlands, so am I. That leaves one question is it directly
connected to a kpn line or via an other pbx/pabx?

If not, you could use this as your /etc/zaptel.conf
[root at hn00pbx01 etc]# cat zaptel.conf | grep -v "^#"
loadzone = nl
defaultzone=nl
span=1,0,3,ccs,ami
span=2,0,3,ccs,ami
span=3,0,3,ccs,ami
span=4,0,3,ccs,ami

bchan=1,2
dchan=3
bchan=4,5
dchan=6
bchan=7,8
dchan=9
bchan=10,11
dchan=12

For zapata.conf:
[root at hn00pbx01 asterisk]# cat zapata.conf | grep -v "^#"
[channels]
switchtype = euroisdn
pridialplan = dynamic
prilocaldialplan = unknown
nationalprefix = 0
internationalprefix = 00
musiconhold=default
echocancel = yes
echocancelwhenbridged = yes
echotraining = 100
signalling = bri_cpe_ptmp
context=pstn-inbound
group = 1
channel => 1-2
signalling = bri_net_ptmp
context=isdn-inbound
group = 2
channel => 4-5
signalling = bri_net_ptmp
context=isdn-inbound
group = 3
channel => 7-8

Where port 1 is the KPN line and port 2 through 4 are internal isdn
lines where the card is acting as the network side.

The dial statements in use here:
[pstn-outbound]
exten => _0.,1,SetCallerID(${EDN_MAIN:1})
exten => _0.,2,Dial(${ZAP_MAIN}${EXTEN:1},120)
exten => _0.,3,Macro(dial-result)

Where the variables are:
[root at hn00pbx01 includes]# grep -e EDN_MAIN -e ZAP_MAIN ../extensions.conf
EDN_MAIN=<MY PRIMARY MSN WITH FIRST ZERO>
ZAP_MAIN=Zap/g1/

This works, at least here, notice the g1 instead of 2 this allows
Asterisk to select on of the 2 channels.

Asterisk output of a successfull dial:
hn00pbx01*CLI>
-- Executing SetCallerID("SIP/SJCC7960-3ed1", "<MY MSN WITHOUT LEADING
0>") in new stack
-- Executing Dial("SIP/SJCC7960-3ed1", "Zap/g1/<MOBILE #>|120") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called g1/<MOBILE #>
-- Zap/1-1 is ringing
-- Zap/1-1 answered SIP/SJCC7960-3ed1
-- Hungup 'Zap/1-1'
== Spawn extension (int-inbound, 00646142645, 2) exited non-zero on
'SIP/SJCC7960-3ed1'

FYI: when starting to mess with outgoing and incoming MSN, in asterisk
you need the full number ie: 0207712345 but for the outgoing channel you
need it without the 0, so 207712345 otherwise KPN won't accept it.

Good luck

-- 
Met Vriendelijke groet/Yours Sincerely
Stijn Jonker <SJCJonker at sjc.nl>



More information about the asterisk-users mailing list