[Asterisk-Users] chan_capi-cm 0.6.4 random outgoing MSN problem

Faris Raouf asterisk at raouf.net
Fri Feb 24 08:46:10 MST 2006


Thank you Armin. This is extremely useful.

Faris.


Armin Schindler wrote:
> There are three possibilities to set the CallingPartyNumber (own number for 
> outgoing):
> 
> 1) Set(CALLERID(number)=12345)
>    before Dial()
> 
> 2) Dial(CAPI/contr1/12345:${EXTEN}/....)
> 
> 3) Dial(CAPI/contr1/${EXTEN}/d,...) and 'defaultcid=12345' in capi.conf
>    with this defaultcid you can set a number for each interface in capi.conf
>    and activate that by the /d option. This is useful when you combined more 
>    than one interface into one group, but need to use a correct (and 
>    different) number on dialout with e.g. 'g1', because the dialplan 
>    doesn't know which interface will be used.
> 
> Armin
> 
> On Thu, 23 Feb 2006, Faris Raouf wrote:
>> Thanks for that Peter!
>>
>> I think your message solved my problem: I set the master number to be in group
>> 1 (group=1) in capi.conf and called Dial with CAPI/g1 and it worked perfectly.
>>
>> However, with group=1 in capi.conf for the master number, at the moment no
>> matter what I do I'm getting the master number presented as the CLI. This is
>> fine by me because it is exactly what I want, but it is all very confusing :-)
>>
>> Faris.
>>
>>
>> Peter Braidwood wrote:
>>> I have ISDN2 and 10 MSN numbers and also have just upgraded to 1.2.4 and
>>> chan_capi-cm and have this working completely perfectly
>>>
>>> Capi.conf
>>>
>>> [general]
>>> nationalprefix=0
>>> internationalprefix=00
>>> rxgain=0.8
>>> txgain=0.8
>>> language=en
>>>
>>> [ISDN1]
>>> isdnmode=msn
>>> incomingmsn=*
>>> controller=1
>>> softdtmf=1
>>> accountcode=
>>> context=from-isdn
>>> group=1
>>> devices=2
>>>
>>> bit of extensions.conf, I dial 9 for an outside line
>>>
>>> [pstn]
>>>
>>> exten => _9./321,1,Dial(CAPI/g1/01234567890:${EXTEN:1})
>>> exten => _9./322,1,Dial(CAPI/g1/01234567891:${EXTEN:1})
>>> exten => _9./323,1,Dial(CAPI/g1/01234567892:${EXTEN:1})
>>> exten => _9./324,1,Dial(CAPI/g1/01234567893:${EXTEN:1})
>>> exten => _9./326,1,Dial(CAPI/g1/01234567894:${EXTEN:1})
>>> exten => _9./327,1,Dial(CAPI/g1/01234567895:${EXTEN:1})
>>> exten => _9./328,1,Dial(CAPI/g1/01234567896:${EXTEN:1})
>>> exten => _9./350,1,Dial(CAPI/g1/01234567897:${EXTEN:1})
>>> exten => _9./351,1,Dial(CAPI/g1/01234567898:${EXTEN:1})
>>> exten => _9./352,1,Dial(CAPI/g1/01234567899:${EXTEN:1})
>>>
>>> So when extension 326 dials out the cli that is presented would be
>>> 01234567894
>>>
>>> Contact me off list if you want any further help.
>>>
>>> Peter Braidwood
>>>
>>>
>>> -----Original Message-----
>>> From: asterisk-users-bounces at lists.digium.com
>>> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Faris
>>> Raouf
>>> Sent: 23 February 2006 13:24
>>> To: Asterisk Users Mailing List - Non-Commercial Discussion
>>> Subject: [Asterisk-Users] chan_capi-cm 0.6.4 random outgoing MSN problem
>>>
>>> I've having a big problem after having upgraded to 1.2.4 and chan_capi-cm
>>> 0.6.4
>>>
>>> When making outgoing calls I don't seem to have any control over the CLI
>>>
>>> that is presented to the called party -- it can be any one of the MSNs
>>> allocated to the line, allocated on what seems to be a random basis.
>>>
>>> This is on a BT Business Highway line (which is essentially an ISDN2e
>>> line with two built-in analog ports), configured with 8MSNs alongside the
>>> single the "master" digital telephone number for the line.
>>>
>>> With a much older version of chan_capi-cm (0.5.4 I think) and Asterisk
>>> 1.0.9 it was always the "master" number that was presented, and that is
>>> actually what I want.
>>>
>>> Obviously the format of capi.conf has changed between these two versions
>>>
>>> of chan_capi-cm, so maybe I'm doing something wrong. Any suggestions
>>> would be appreciated.
>>>
>>> Here's my capi.conf (actual numbers changed to protect the innocent!)
>>>
>>> [general]
>>> nationalprefix=0
>>> internationalprefix=00
>>> rxgain=0.8
>>> txgain=0.8
>>> ; ulaw=yes        ;set this, if you live in u-law world instead of
>>> ; a-law
>>>
>>> [123456]
>>> ;  Master number for line - i.e. number for line before MSNs were
>>> allocated
>>> ;  and which still works and still accepts incoming calls.
>>> isdnmode=msn
>>> msn=01234123456
>>> ; incomingmsn=*
>>> incomingmsn=123456
>>> controller=1
>>> softdtmf=1
>>> accountcode=
>>> context=isdn-in
>>> echosquelch=1
>>> echocancel=yes
>>> ; echotail=64
>>> ; callgroup=1
>>> ; deflect=12345678
>>> devices=2
>>>
>>> [123457]
>>> ; first MSN
>>> msn=01234123457
>>> ; incomingmsn=*
>>> incomingmsn=123457
>>> isdnmode=msn
>>> controller=1
>>> softdtmf=1
>>> accountcode=
>>> context=isdn-in
>>> echosquelch=1
>>> echocancel=yes
>>> ; echotail=64
>>> ; callgroup=1
>>> ; deflect=12345678
>>> devices=2
>>>
>>> {repeated for next 7 MSNs}
>>>
>>>
>>> And in extensions.conf I have:
>>>
>>> [globals]
>>> ISDN1=CAPI/123456
>>>
>>>
>>> [mysip]
>>>
>>> ; GET OUTSIDE LINE (ISDN1 - dial 9)
>>> ignorepat => 9
>>> exten => exten => _9.,1,Dial(${ISDN1}/${EXTEN:1}/b)
>>> exten => _9.,2,Playback(busy)
>>> exten => _9.,3,Hangup
>>>
>>> *****
>>>
>>> I've tried using ISDN1=CAPI/contr1 but it makes no difference.
>>> I've tried leaving out the isdnmode=msn but it makes no difference
>>> I've tried entering 01234123456 as the msn= line on all of the msn
>>> entries in capi.conf but it makes no difference either.
>>>
>>> And now I'm out of ideas and any help would be appreciated.
>>>
>>> Thanks,
>>>
>>> Faris.
>>>
>>> p.s. sorry if this message is HTML. I've switched to using Thunderbird
>>> and it is confusing the heck out of me. It claims this is a plain text
>>> message but it doesn't look like plain text to me from this end!
>>>




More information about the asterisk-users mailing list