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> accountcodecall-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> accountcodecall-limit=50 -- Vasiliy G Tolstov <v.tolstov at selfip.ru> Selfip.Ru
In your sip.conf your permit line does not have an ip address to allow the register from so the call is coming in as a guest and that is likely using context default. Set the permit line to either the ip address of the phone or the network the phone is on. permit=192.168.1.0/255.255.255.0 with allow from any 192.168.1.x address as an example. -- Jim Dickenson mailto:dickenson at cfmc.com CfMC http://www.cfmc.com/ On Apr 27, 2010, at 4:31 AM, 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 > > > > > -- > Vasiliy G Tolstov <v.tolstov at selfip.ru> > Selfip.Ru > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
? ???, 27/04/2010 ? 06:11 -0700, Jim Dickenson ?????:> In your sip.conf your permit line does not have an ip address to allow the register from so the call is coming in as a guest and that is likely using context default. > > Set the permit line to either the ip address of the phone or the network the phone is on. > > permit=192.168.1.0/255.255.255.0 with allow from any 192.168.1.x address as an example.Thank You. But a get work with this lines: exten => 102,1,Answer() exten => 102,2,Dial(SIP/102,20) exten => 102,3,Hangup() exten => 500,1,Answer() exten => 500,2,Dial(SIP/500,20) exten => 500,3,Hangup() exten => 601,1,Answer() exten => 601,2,Dial(SIP/601,20) exten => 601,3,Hangup() -- Vasiliy G Tolstov <v.tolstov at selfip.ru> Selfip.Ru
I am not sure what you are asking here. -- Jim Dickenson mailto:dickenson at cfmc.com CfMC http://www.cfmc.com/ On Apr 27, 2010, at 6:16 AM, Vasiliy G Tolstov wrote:> ? ???, 27/04/2010 ? 06:11 -0700, Jim Dickenson ?????: >> In your sip.conf your permit line does not have an ip address to allow the register from so the call is coming in as a guest and that is likely using context default. >> >> Set the permit line to either the ip address of the phone or the network the phone is on. >> >> permit=192.168.1.0/255.255.255.0 with allow from any 192.168.1.x address as an example. > > Thank You. But a get work with this lines: > > exten => 102,1,Answer() > exten => 102,2,Dial(SIP/102,20) > exten => 102,3,Hangup() > > > exten => 500,1,Answer() > exten => 500,2,Dial(SIP/500,20) > exten => 500,3,Hangup() > > > exten => 601,1,Answer() > exten => 601,2,Dial(SIP/601,20) > exten => 601,3,Hangup() > > > > > -- > Vasiliy G Tolstov <v.tolstov at selfip.ru> > Selfip.Ru >
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 > > > >