Reposting due to choppiness (this time in plain text):

Hi Guys,
The other thread about peering is confusing and messy so I will post everything 
that I have accomplished so far and hopefully I can get some help:
*******************************Server A Configuration (iax.conf):         
********************************
[general]port=5036bandwidth=low;disallow=allallow=all
jitterbuffer=yestos=lowdelay
register => trunk_demo:[email protected]
[trunk_demo]type=friendhost=dynamictrunk=yesauth=md5,plaintext,rsasecret=trunk_d3m0username=trunk_demoqualify=yescontext=trunk****************************************
*******************************Server B Configuration (iax.conf):         
********************************
[general]port=5036bandwidth=low;disallow=allallow=all
jitterbuffer=yestos=lowdelay
register => trunk_demo:[email protected]
[trunk_demo]type=friendhost=dynamictrunk=yesauth=md5,plaintext,rsasecret=trunk_d3m0username=trunk_demoqualify=yescontext=trunk
------------------------------------------------------------------------------------------------------------------------
This is what I have in extensions.conf for ServerA since ServerA receives calls 
and (PSTN PRI connected) passes it to ServerB:
[inbound]
exten => _7770,1,Set(callerid=${CALLERID(num)})exten => 
_7770,n,Dial,IAX2/trunk_demo:[email protected]/700exten => 
_7770,n,NoOp(Set CallerID and passed on to Server B)exten => _7770,n,Hangup()

Extension 700 is what I want to receive call on ServerB. But this doesn't 
happen despite a successful registration of the trunks. I get Call Rejected. 
Here is what I get from ServerA when a call comes in:

    -- Accepting call from '675847584' to '7770' on channel 0/2, span 1    -- 
Executing [7...@inbound:1] Set("Zap/2-1", "callerid=675847584") in new stack    
-- Executing [7...@inbound:2] Dial("Zap/2-1", 
"IAX2/trunk_demo:[email protected]/7770") in new stack    -- Called 
trunk_demo:[email protected]/7770[May 22 01:08:46] WARNING[2199]: 
chan_iax2.c:7984 socket_process: Call rejected by 122.122.122.122: No such 
context/extension    -- Hungup 'IAX2/trunk_demo-4499'   == Everyone is 
busy/congested at this time (1:0/0/1)    -- Executing [7...@inbound:3] 
NoOp("Zap/2-1", "Set CallerID and Pass on to Server B") in new stack    -- 
Executing [7...@inbound:4] Hangup("Zap/2-1", "") in new stack

Please help me understand what is wrong with this setup?

Thanks,Bruce

> From: [email protected]
> To: [email protected]
> Date: Thu, 21 May 2009 15:47:24 -0400
> Subject: [on-asterisk] IAX2 Peering
> 
> 
> Hi Guys,
> The other thread about peering is confusing and messy so I will post 
> everything that I have accomplished so far and hopefully I can get some help:
> *******************************Server A Configuration (iax.conf):         
> ********************************
> [general]port=5036bandwidth=low;disallow=allallow=all
> jitterbuffer=yestos=lowdelay
> register => trunk_demo:[email protected]
> [trunk_demo]type=friendhost=dynamictrunk=yesauth=md5,plaintext,rsasecret=trunk_d3m0username=trunk_demoqualify=yescontext=trunk****************************************
> *******************************Server B Configuration (iax.conf):         
> ********************************
> [general]port=5036bandwidth=low;disallow=allallow=all
> jitterbuffer=yestos=lowdelay
> register => trunk_demo:[email protected]
> [trunk_demo]type=friendhost=dynamictrunk=yesauth=md5,plaintext,rsasecret=trunk_d3m0username=trunk_demoqualify=yescontext=trunk
> ------------------------------------------------------------------------------------------------------------------------
> This is what I have in extensions.conf for ServerA since ServerA receives 
> calls and (PSTN PRI connected) passes it to ServerB:
> [inbound]
> exten => _7770,1,Set(callerid=${CALLERID(num)})exten => 
> _7770,n,Dial,IAX2/trunk_demo:[email protected]/700exten => 
> _7770,n,NoOp(Set CallerID and passed on to Server B)exten => _7770,n,Hangup()
> 
> Extension 700 is what I want to receive call on ServerB. But this doesn't 
> happen despite a successful registration of the trunks. I get Call Rejected. 
> Here is what I get from ServerA when a call comes in:
> 
>     -- Accepting call from '675847584' to '7770' on channel 0/2, span 1    -- 
> Executing [7...@inbound:1] Set("Zap/2-1", "callerid=675847584") in new stack  
>   -- Executing [7...@inbound:2] Dial("Zap/2-1", 
> "IAX2/trunk_demo:[email protected]/7770") in new stack    -- Called 
> trunk_demo:[email protected]/7770[May 22 01:08:46] WARNING[2199]: 
> chan_iax2.c:7984 socket_process: Call rejected by 122.122.122.122: No such 
> context/extension    -- Hungup 'IAX2/trunk_demo-4499'   == Everyone is 
> busy/congested at this time (1:0/0/1)    -- Executing [7...@inbound:3] 
> NoOp("Zap/2-1", "Set CallerID and Pass on to Server B") in new stack    -- 
> Executing [7...@inbound:4] Hangup("Zap/2-1", "") in new stack
> 
> Please help me understand what is wrong with this setup?
> 
> 
> Thanks,Bruce
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _________________________________________________________________
> Internet explorer 8 lets you browse the web faster.
> http://go.microsoft.com/?linkid=9655582

_________________________________________________________________
Windows Live helps you keep up with all your friends, in one place.
http://go.microsoft.com/?linkid=9660826
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to