[asterisk-users] Asending or Round robin with trunks sip

Rob Hillis rob at hillis.dyndns.org
Fri May 2 22:47:25 CDT 2008


SIP channels can't be grouped.  What you need when you're dialling is 
the following if you want to use all three SIP channels:-

Dial(SIP/troncal-1/${number})
Dial(SIP/troncal-2/${number})
Dial(SIP/troncal-3/${number})

That way if the first Dial fails, it will try the second one and so on.

Walter Willis wrote:
> i am conecting to the provider voip with 50 logings and can not use 
> trunk the configuring sip.conf with
> ...
> register => 10001:abc at xxx.xxx.xxx.xxx
> register => 10002:abc at xxx.xxx.xxx.xxx
> register => 10003:abc at xxx.xxx.xxx.xxx
>
> ....
>
> [troncal-1]
>  type=peer
>  secret=abc
>  username=10001
>  host=xxx.xxx.xxx.xxx
>  fromuser=10001
>  fromdomain=xxx.xxx.xxx.xxx
>  nat=no
>  context=troncal-sip
> qualify=yes
> disallow=all
> allow=g729
> callgroup=1
>
> [troncal-2]
>  type=peer
>  secret=abc
>  username=10002
>  host=xxx.xxx.xxx.xxx
>  fromuser=10002
>  fromdomain=xxx.xxx.xxx.xxx
>  nat=no
>  context=troncal-sip
> qualify=yes
> disallow=all
> allow=g729
> callgroup=1
>
> [troncal-3]
>  type=peer
>  secret=abc
>  username=10003
>  host=xxx.xxx.xxx.xxx
>  fromuser=10003
>  fromdomain=xxx.xxx.xxx.xxx
>  nat=no
>  context=troncal-sip
> qualify=yes
> disallow=all
> allow=g729
> callgroup=1
>
>
> and extension.conf :
> [troncal-sip] it is configuration work
> exten => _X.,1,Answer
> exten => _X.,2,Dial(SIP/${EXTEN}@troncal-1,,r)
> exten => _X.,3,Dial(SIP/${EXTEN}@troncal-2,,r)
> exten => _X.,4,Dial(SIP/${EXTEN}@troncal-3,,r)
> exten => _X.,5,Hangup
>
>
> i am ascending with 3 lines
> [troncal-sip] it is configuration no work
> exten => _X.,1,Answer
> exten => _X.,2,Dial(SIP/g1/${EXTEN})
> exten => _X.,3,Hangup
>
>
> the error is
> *CLI>
>     -- Executing [5174204843 at troncal-sip:1] 
> Answer("SIP/327289521558-b6d30d68", "") in new stack
>     -- Executing [5174204843 at troncal-sip:2] 
> Dial("SIP/327289521558-b6d30d68", "SIP/g1/74555555") in new stack
> [May  2 20:00:09] WARNING[19588]: chan_sip.c:2867 create_addr: No such 
> host: g1
> [May  2 20:00:09] WARNING[19588]: app_dial.c:1111 dial_exec_full: 
> Unable to create channel of type 'SIP' (cause 3 - No route to destination)
>   == Everyone is busy/congested at this time (1:0/0/1)
>     -- Executing [5174204843 at troncal-sip:3] 
> Hangup("SIP/327289521558-b6d30d68", "") in new stack
>   == Spawn extension (troncal-sip, 74555555, 3) exited non-zero on 
> 'SIP/327289521558-b6d30d68'
>
>
> how to group work fine ???
> !DSPAM:481bc0cd112602481815506!
> ------------------------------------------------------------------------
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
> !DSPAM:481bc0cd112602481815506!
>   



More information about the asterisk-users mailing list