[asterisk-users] dialplan question

Vardan hvardan71 at gmail.com
Mon May 10 05:46:23 CDT 2010


Hello.
Look, in Your sip.conf
 > [601]
 > deny=0.0.0.0/0.0.0.0  - you deny all, but some lines down you allow 
from all
 > context=office
 > type=friend
 > secret=601
 > qualify=yes
 > ;port=5060
 > permit=0.0.0.0/0.0.0.0
 > nat=no
 > mailbox=601 at device
 > host=dynamic
 > dtmfmode=rfc2833
 > dial=SIP/601
 > canreinvite=no
 > callgroup=1
 > pickupgroup=1
 > callerid=device<601>
 > accountcode= - delete this line
 > call-limit=50


Vasiliy G Tolstov wrote:
> Hello. I'm new with asterisk. Can you help me in this:
> I have cisco sip phone (601) connected to asterisk server, and 1 client
> number (500).
> I want to dial from 601 to 500.
>
> But get error in cli console:
> [Apr 27 15:30:15] NOTICE[9650]: chan_sip.c:20059 handle_request_invite:
> Call from '601' to extension '500' rejected because extension not found.
>
> What's wrong?
>
> extensions.conf:
>
> [office]
> exten =>  601,1,Answer()
> exten =>  601,2,Wait,2
> exten =>  601,3,Dial(SIP/601,20)
> exten =>  601,4,Hangup()
>
> exten =>  500,1,Answer()
> exten =>  500,2,Wait,2
> exten =>  500,3,Dial(SIP/500,20)
> exten =>  500,4,Hangup()
>
> sip.conf:
>
> [601]
> deny=0.0.0.0/0.0.0.0
> context=office
> type=friend
> secret=601
> qualify=yes
> ;port=5060
> permit=0.0.0.0/0.0.0.0
> nat=no
> mailbox=601 at device
> host=dynamic
> dtmfmode=rfc2833
> dial=SIP/601
> canreinvite=no
> callgroup=1
> pickupgroup=1
> callerid=device<601>
> accountcode=
> call-limit=50
>
> [500]
> deny=0.0.0.0/0.0.0.0
> username=500
> context=office
> type=friend
> secret=500
> qualify=yes
> ;port=5060
> permit=0.0.0.0/0.0.0.0
> nat=no
> mailbox=500 at device
> host=dynamic
> dtmfmode=rfc2833
> dial=SIP/500
> canreinvite=no
> callgroup=1
> pickupgroup=1
> callerid=device<500>
> accountcode=
> call-limit=50
>
>
>
>





More information about the asterisk-users mailing list