[Asterisk-Users] Connecting Asterisks via SIP
Marcin Okraszewszki
okrasz_news at o2.pl
Wed Mar 2 04:59:56 MST 2005
OK, I have installed version from CVS (version:
CVS-HEAD-03/02/05-09:33:13) and it helped. I'm able to make calls from
PBX1 to PBX2 *xor* PBX2 to PBX1, but I'm not albe to join the
configurations (to both PBX1 -> PBX2 and PBX2 -> PBX1). If I add peer
for other side I get fallowing error:
------
*CLI> Mar 2 12:38:16 WARNING[10786]: chan_sip.c:7554 handle_response:
Forbidden - wrong password on authentication for INVITE to '"asterisk"
<sip:asterisk at 10.1.3.207>;tag=as57c8a343'
-- SIP/207-204-1764 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Got SIP response 481 "Call Leg Does Not Exist" back from 10.1.3.204
== Auto fallthrough, channel 'OSS/dsp' status is 'CONGESTION'
--------
and on the other side:
--------
*CLI> Mar 2 12:38:41 NOTICE[21933]: chan_sip.c:8011 handle_request:
Failed to authenticate user "asterisk"
<sip:asterisk at 10.1.3.207>;tag=as57c8a343
--------
Below is the configuraton. The strange thing is that if I remove
[204-207] on PBX2 I'm able to call from PBX2 to PBX1. Alternatively if I
remove [207-204] from PBX1 I'm able to call from PBX2 to PBX1. If all
sections [204-207] and [207-204] are turned on I'm not able to call in
either direction.
Thank you one more time for help!
Marcin Okraszewski
=============== CONFIGURATION =============
PBX1 (10.1.3.207)
==============
sip.conf
----------
[207-204]
type=peer
username=207-204
secret=207-204
host=10.1.3.204
[204-207]
type=user
secret=204-207
extensions.conf
--------------------
exten => 113,1, Dial(SIP/adamo,10,t)
exten => 158,1, Dial(SIP/okrasz,10,t)
exten => _2XX,1, Dial(SIP/207-204/${EXTEN})
PBX2 (10.1.3.204)
==============
sip.conf
----------
[207-204]
type=user
secret=207-204
[204-207]
type=peer
username=204-207
secret=204-207
host=10.1.3.207
extensions.conf
--------------------
exten => 213,1, Dial(SIP/adamo2,10,t)
exten => 258,1, Dial(SIP/okrasz2,10,t)
exten => _1XX,1, Dial(SIP/204-207/${EXTEN})
=============== END CONFIGURATION ============
> Marcin Okraszewszki wrote:
>
>> exten => _1XX,1, Dial(SIP/pbx2:pbx2 at 10.1.3.207/${EXTEN},30,r)
>
>
> This syntax does not work. The extension part was just recently fixed
> in CVS HEAD, but you cannot specify the "secret" in the dial string.
>
> You will need to create a SIP peer for this server that contains the
> IP address and secret, then you can use:
>
> Dial(SIP/pbx2/${EXTEN})
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at 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
>
>
More information about the asterisk-users
mailing list