[Asterisk-Users] SIP and ISDN

philip.lee at bt.com philip.lee at bt.com
Mon Mar 7 08:53:23 MST 2005


Here are some config files:

sip.conf

[general]
register => 222:mysecret at xx.xx.xx.xx:5060/222
register => 111:mysecret at xx.xx.xx.xx:5060/111
port = 5060
tos=lowdelay
jitterbuffer=yes
maxjitterbuffer=yes
maxjitterbuffer=500
maxexcessbuffer=100
bindaddr = 0.0.0.0
allow=all
;allow=ilbc
;allow=alaw
context = fullaccess

[111]
type=friend
;host=xx.xx.xx.xx
host=dynamic
username=111
secret=mysecret
context=sip-access1
callerid="Philip 2" <111>
;reinvite=no
;caninvite=no
;qualify=500
nat=yes
allow=all
;allow=gsm
;dtmfmode=rfc2833

[222]
type=friend
;host=xx.xx.xx.xx
host=dynamic
username=222
secret=mysecret
context=sip-access2
callerid="Philip Lee" <222>
;reinvite=no
;caninvite=no
;qualify=500
nat=yes
allow=all
;allow=gsm
;dtmfmode=rfc2833


capi.conf

[general]
;mode=immediate
;isdnmode=multipoint
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8

[interfaces]
msn=0
incomingmsn=0
;overlapdial=yes
;outgoingmsn=01912500900
controller=1
;softdtmf=1
;accountcode=
context=capi-access1
mode=immediate
isdnmode=ptp
devices=2
;echosquelch=1
;echocancel=yes
;echotail=64
;callgroup=1
;deflect=

msn=9
incomingmsn=*
controller=1
context=capi-access2
mode=immediate
isdnmode=ptp
devices=2

msn=0
incomingmsn=0
controller=1
context=capi-access1
mode=immediate
isdnmode=ptp
devices=2

msn=9
incomingmsn=9
controller=1
context=capi-access2
mode=immediate
isdnmode=ptp
devices=2

msn=0
incomingmsn=*
controller=1
context=capi-access1
mode=immediate
isdnmode=ptp
devices=2


extensions.conf

[general]
static=yes
writeprotect=yes

[noaccess]
exten => _.,1,Congestion

[sip-access1]
exten => 222,1,Dial(SIP/222,20,tr)
exten => 11111,1,Dial(IAX2/user1,20,tr)
exten => 22222,1,Dial(IAX2/user2,20,tr)
exten => 333,1,Dial(CAPI/01912500900,30)
exten => 444,1,Dial(CAPI/01912500909,30)

[sip-access2]
exten => 111,1,Dial(SIP/111,20,tr)
exten => 22222,1,Dial(IAX2/user2,20,tr)
exten => 11111,1,Dial(IAX2/user1,20,tr)
exten => 333,1,Dial(CAPI/@01912500900,30)
exten => 444,1,Dial(CAPI/@01912500909,30)

[iax-access1]
exten => 111,1,Dial(SIP/111,20,tr)
exten => 222,1,Dial(SIP/222,20,tr)
exten => 22222,1,Dial(IAX2/user2,20,tr)
;exten => 11111,3,Voicemail(u11111)
exten => 333,1,Dial(CAPI/01912500900,30)
exten => 444,1,Dial(CAPI/01912500909,30)

[iax-access2]
exten => 11111,1,Dial(IAX2/user1,20,tr)
exten => 111,1,Dial(SIP/111,20,tr)
exten => 222,1,Dial(SIP/222,20,tr)
exten => 333,1,Dial(CAPI/@01912500900,30)
exten => 444,1,Dial(CAPI/@01912500909,30)

[capi-access1]
exten => 11111,1,Dial(IAX2/user1,20,tr)
exten => 111,1,Dial(SIP/111,20,tr)
exten => 22222,1,Dial(IAX2/user2,20,tr)
exten => 222,1,Dial(SIP/222,20,tr)
exten => 444,1,Dial(CAPI/01912500909,30) 

[capi-access2]
exten => 11111,1,Dial(IAX2/user1,20,tr)
exten => 111,1,Dial(SIP/111,20,tr)
exten => 22222,1,Dial(IAX2/user2,20,tr)
exten => 222,1,Dial(SIP/222,20,tr)
exten => 333,1,Dial(CAPI/01912500900,30)

Also here is some debug info. This is from when I make a call to one of the msn numbers from an ISDN phone. The ISDN phone rings but the other endpoint (softphone) does not ring and no connection is established.
 *CLI> capi debug
CAPI Debugging Enabled
*CLI>     -- CONNECT_IND ID=001 #0x0004 LEN=0028
  Controller/PLCI/NCCI            = 0x101
  CIPValue                        = 0x1
  CalledPartyNumber               = <81>0
  CallingPartyNumber              = default
  CalledPartySubaddress           = default
  CallingPartySubaddress          = default
  BC                              = <80 90 a3>
  LLC                             = default
  HLC                             = default
  AdditionalInfo                  = default

Mar  7 15:43:29 NOTICE[10058]: chan_capi.c:1931 capi_handle_msg: CONNECT_IND ID=001 #0x0004 LEN=0028
  Controller/PLCI/NCCI            = 0x101
  CIPValue                        = 0x1
  CalledPartyNumber               = <81>0
  CallingPartyNumber              = default
  CalledPartySubaddress           = default
  CallingPartySubaddress          = default
  BC                              = <80 90 a3>
  LLC                             = default
  HLC                             = default
  AdditionalInfo                  = default

  == CONNECT_IND (PLCI=0x101,DID=0,CID=(null),CIP=0x1,CONTROLLER=0x1)
    -- INFO_IND ID=001 #0x0005 LEN=0017
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x70
  InfoElement                     = <81>0

    -- INFO_IND ID=001 #0x0006 LEN=0016
  Controller/PLCI/NCCI            = 0x101
  InfoNumber                      = 0x18
  InfoElement                     = <8a>

    -- DISCONNECT_IND ID=001 #0x0007 LEN=0014
  Controller/PLCI/NCCI            = 0x101
  Reason                          = 0x0

  == DISCONNECT_IND PLCI=0x101 REASON=0
Mar  7 15:43:39 WARNING[10058]: chan_capi.c:1380 pipe_msg: unable to hangup channel on DID. Channel is NULL.





-----Original Message-----
From:	asterisk-users-bounces at lists.digium.com on behalf of tim panton
Sent:	Mon 3/7/2005 3:28 PM
To:	Asterisk Users Mailing List - Non-Commercial Discussion
Cc:	
Subject:	Re: [Asterisk-Users] SIP and ISDN

On 7 Mar 2005, at 14:27, <philip.lee at bt.com> wrote:

> I have set up an Asterisk PBX server and can make calls between 
> endpoints using both the SIP and IAX protocols. Iam using X-Lite 
> softphone to make SIP calls and DIAX softphone to make IAX calls. The 
> next step is to get an ISDN line connected and ISDN phone able to make 
> calls to either a SIP or IAX softphone.
>
> So far I have managed to install an AVM Fritz card along with the 
> drivers and CAPI. I can attempt to make a call to a softphone but the 
> call cannot be connected. The Asterisk PBX does process the call and 
> displays the msn that the ISDN phone is tring to call but the 
> softphone does not ring and no call is established.
>
> Any configuration ideas on how I can get this to work? Is there 
> anything I have missed?
>
> Here is a diagrammatical explanation:
>  PC - Softphone
>          | Ethernet Line
>  Asterisk PBX
>          | ISDN line
>
> ISDN phone     
>
>  Any suggestions will be a great help.
>

You'll need to send us some debug logs and snippets of config files for 
us to
help you with this problem.

At a pure guess I'd say you need to add some lines to extensions.conf
we will know more if you send more info.

Tim.

http://www.westhawk.co.uk/



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 5114 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050307/70408214/attachment.bin


More information about the asterisk-users mailing list