Re: [Asterisk-Users] Asterisk as Gateway

2005-07-11 Thread Armin Schindler
On Mon, 11 Jul 2005, Joao Pereira wrote:
> Hello to all
> I succefully installed Asterisk and an Eicon Diva Server 4 BRI (with CAPI) to
> connect to a Siemens PBX, but I still cant forward calls to the Siemens PBX
> (neither receive them from the PBX).
> Here s the result in the asterisk console when I try to dial the 116 PBX
> phone:
> 
> 
>-- Executing Dial("SIP/193.136.2.205:5060-fd1f", "CAPI/12345678:b116|90")
> in new stack
> -- data = 12345678:b116
> -- capi request omsn = 12345678
> == found capi with omsn = 12345678
> == CAPI Call CAPI[contr1/12345678]/11 with B3-- Called 12345678:b116
>  -- CONNECT_CONF ID=001 #0x0012 LEN=0014
> Controller/PLCI/NCCI= 0x301
> Info= 0x0
> 
>  -- CONNECT_CONF ID=001 #0x0012 LEN=0014
> Controller/PLCI/NCCI= 0x301
> Info= 0x0
> 
> == received CONNECT_CONF PLCI = 0x301 INFO = 0
>  -- DISCONNECT_IND ID=001 #0x001b LEN=0014
> Controller/PLCI/NCCI= 0x301
> Reason  = 0x3302
> 
> == DISCONNECT_IND PLCI=0x301 REASON=0x3302
>  -- CAPI Hangingup
> == No one is available to answer at this time
> 
> Does someone have an ideia of what is missing?
> The Siemens PBX should forward the call to its 116 extension... but there's no
> way I can debug it...

I assume you use chan_capi-0.3.5 !? 

Some messages are missing in the debug, please try chan_capi-0.5.3 from 
sourceforge. (But note, the capi.conf and dial syntax has changed in that 
version).

Armin

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Asterisk as gateway

2018-03-27 Thread Atux Atux
This is a setup of Asterisk as extension to an existing Asterisk PBX. It
has to be that way and not IAX. Simply we need to an extension number with
DIDs to an external PBX which is a helper to our office. This has to be
done for the second PBX as well.


On Thu, Mar 22, 2018 at 2:18 PM, Atux Atux  wrote:

> i would like to ask how to connect 2 systems. I would like to have an
> asterisk where it will have all the connections to the outside world (sip
> trunks) and it will called the gateway. This asterisk will have extension
> numbers of 3XX.
> In the LAN there will be 2 other asterisk boxes (A & B) where A will have
> the extension numbers 4XX and B the 5XX.
> -gateway 3XX has all sip trunks to the outside world
> -A 4XX.
> -B 5XX
>
> I would like to have A to connect to the gateway as extension 308 and
> route all calls incoming/outgoing through the gateway. the same applies to
> B as extension 309.
> i am kinda lost with config and the dialplan. In the gateway i have in the
> sip.conf 2extensions 308 &309. in the gateway's extension.conf i have 5
> DIDs for 308 and another 5 for 309 as follows:
>
> 308's first DID up to 123456784
> exten => 123456780,1,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})
> exten => 123456780,n,Answer()
> exten => 123456780,n,Wait(1)
> exten => 123456780,n,Dial(SIP/308,20)
> exten => 123456780,n,VoiceMail(308@home,u)
> exten => 123456780,n,Busy(3)
>
>
>
>
>
> 309's first DID up to 123456789
> exten => 123456785,1,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})
> exten => 123456785,n,Answer()
> exten => 123456785,n,Wait(1)
> exten => 123456785,n,Dial(SIP/309,20)
> exten => 123456785,n,VoiceMail(309@home,u)
> exten => 123456785,n,Busy(3)
>
>
>
> Some help please?
> John
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users