Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] call rejected because extension not found in context 'internal


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
raghavgoud.g at gmail.com
Guest





PostPosted: Mon Feb 03, 2014 6:43 am    Post subject: [asterisk-users] call rejected because extension not found i Reply with quote

Hi all,

   I want to two sip clients connect through Asterisk in local network for testing. My sip.conf file looks like this 


 [general]
context=internal
allowguest=no
allowoverlap=no
bindport=5060
bindaddr=0.0.0.0
srvlookup=no
disallow=all
allow=ulaw
alwaysauthreject=yes
canreinvite=no
nat=yes
session-timers=refuse
localnet=192.168.1.0/255.255.255.0


[7001]
type=friend
host=dynamic
secret=123abcd
context=internal


[7002]
type=friend
host=dynamic
secret=456abcd
context=internal




Am using linphone as sip client and create account on linphone with user name 7001 and 7002 
7001 is running on 192.168.2.15:5060
7002 is running on 192.168.2.45:5060 


when i try to call from 7002 to 7001 i specified sip:7001@192.168.2.15 ([email]sip%3A7001@192.168.2.15[/email]) it working fine as i know ip adress i specified it as url. if i dnt know the ipadress how can i call to 7001? i try to call sip:7001@192.168.2.20 ([email]sip%3A7001@192.168.2.20[/email]) it through call rejected because extension not found in context 'internal, error.
   
  How can call to sip id with out knowning ipadress where it is runnning? Any modification required for sip.conf file?


Thanks,
Raghav
  


 
Back to top
jhester at digium.com
Guest





PostPosted: Mon Feb 03, 2014 8:58 am    Post subject: [asterisk-users] call rejected because extension not found i Reply with quote

Howdy,

Your sip.conf file looks fine for some testing, though I would recommend _not_ using an extension number to name a sip endpoint. Instead, name the sip endpoint something more descriptive of the device. [Linphone-01] [Linphone-02] for example. Then you'll want to configure extensions.conf to Dial() the sip endpoint whenever the extension is dialed.




Justin Hester
Digium, Inc. · Technical Trainer
445 Jan Davis Drive NW · Huntsville, AL 35806 · USA
ph: +1 256 428 6238
Check us out at: http://digium.com · http://asterisk.org




On Mon, Feb 3, 2014 at 5:45 AM, Raghav Goud <raghavgoud.g@gmail.com (raghavgoud.g@gmail.com)> wrote:
Quote:
Hi all,

   I want to two sip clients connect through Asterisk in local network for testing. My sip.conf file looks like this 


 [general]
context=internal
allowguest=no
allowoverlap=no
bindport=5060
bindaddr=0.0.0.0
srvlookup=no
disallow=all
allow=ulaw
alwaysauthreject=yes
canreinvite=no
nat=yes
session-timers=refuse
localnet=192.168.1.0/255.255.255.0


[7001]
type=friend
host=dynamic
secret=123abcd
context=internal


[7002]
type=friend
host=dynamic
secret=456abcd
context=internal




Am using linphone as sip client and create account on linphone with user name 7001 and 7002 
7001 is running on 192.168.2.15:5060
7002 is running on 192.168.2.45:5060 


when i try to call from 7002 to 7001 i specified sip:7001@192.168.2.15 ([email]sip%3A7001@192.168.2.15[/email]) it working fine as i know ip adress i specified it as url. if i dnt know the ipadress how can i call to 7001? i try to call sip:7001@192.168.2.20 ([email]sip%3A7001@192.168.2.20[/email]) it through call rejected because extension not found in context 'internal, error.
   
  How can call to sip id with out knowning ipadress where it is runnning? Any modification required for sip.conf file?


Thanks,
Raghav
  


 


--
_____________________________________________________________________
-- 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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services