[clue-tech] Asterisk

Mike Staver staver at fimble.com
Wed Feb 22 16:41:23 MST 2006


[root at asterisk1 asterisk]# asterisk -rx "sip show peers" | grep 3033960044
Binary file (standard input) matches
[root at asterisk1 asterisk]# asterisk -rx "sip show peers"
Name/username              Host            Dyn Nat ACL Port     Status
LiveWire44/3033960044      66.185.96.28                5060     Unmonitored
548/548                    (Unspecified)    D          0        Unmonitored
547/547                    (Unspecified)    D          0        Unmonitored
546/546                    10.0.0.125       D          5060     Unmonitored
544/544                    10.0.0.128       D          5060     Unmonitored
518/518                    10.0.0.119       D          5060     Unmonitored
3033960044                 66.185.96.28             A  5060     OK (114 ms)
7 sip peers [7 online , 0 offline]

The problem is, my VoIP provider uses Asterisk to forward these calls to 
me, and they say I need to set up a different trunk to them for each 
DID.  So, I have 7 DID's at the moment, and I only set up one trunk, the 
one for 3033960044.  Yet, it always rings into the Income Calls section, 
so basically goes right to the receptionist, blowing by my incoming 
routes section, which looks like:

[from-trunk]
include => from-pstn

[from-pstn]
include => from-pstn-custom
include => ext-did
include => from-pstn-timecheck
exten => fax,1,Goto(ext-fax,in_fax,1)

[from-sip-external]
include => ext-did
include => from-pstn
include => from-pstn-timecheck

[ext-did]
include => ext-did-custom
exten => 3033960044,1,SetVar(FROM_DID=3033960044)
exten => 3033960044,2,Goto(ext-local,544,1)
exten => 3033960046,1,SetVar(FROM_DID=3033960046)
exten => 3033960046,2,Goto(ext-local,546,1)
exten => 3033960047,1,SetVar(FROM_DID=3033960047)
exten => 3033960047,2,Goto(ext-local,547,1)

[ext-local]
include => ext-local-custom
exten => 518,1,Macro(exten-vm,518,518)
exten => ${VM_PREFIX}518,1,Macro(vm,518)
exten => 518,hint,SIP/518
exten => 544,1,Macro(exten-vm,544,544)
exten => ${VM_PREFIX}544,1,Macro(vm,544)
exten => 544,hint,SIP/544
exten => 546,1,Macro(exten-vm,546,546)
exten => ${VM_PREFIX}546,1,Macro(vm,546)
exten => 546,hint,SIP/546
exten => 547,1,Macro(exten-vm,547,547)
exten => ${VM_PREFIX}547,1,Macro(vm,547)
exten => 547,hint,SIP/547
exten => 548,1,Macro(exten-vm,548,548)
exten => ${VM_PREFIX}548,1,Macro(vm,548)
exten => 548,hint,SIP/548

Dave Price wrote:
> Is there really a sip device registered at as 3033960044?
> 
> If you type:  asterisk -rx "sip show peers" | grep 3033960044
> 
> What do you see?
> 
> aloha,
> dave
> 
> On 2/22/06, Nate Duehr <nate at natetech.com> wrote:
>> Mike Staver wrote:
>>> I have Asterisk at Home up and running sort-of successfully.  I can get
>>> outbound calls to work great, that's not a problem at all.  The inbound
>>> calls are a problem however.  My setup is going to include around 30
>>> different DID's each being routed to a separate extension.  For a simple
>>> test, I have one trunk setup and I have one incoming route defined.  I
>>> want the number 3033960044 to go to a specific extension.  It sounds
>>> simple, for some reason I'm getting this error message each time:
> _______________________________________________
> CLUE-tech mailing list
> CLUE-tech at cluedenver.org
> http://cluedenver.org/mailman/listinfo/clue-tech
_______________________________________________
CLUE-tech mailing list
CLUE-tech at cluedenver.org
http://cluedenver.org/mailman/listinfo/clue-tech



More information about the clue-tech mailing list