LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-14-2015, 10:20 AM   #61
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641

Re #60.

I guess you will have to read post #53 :

"....... SIP is one of the most complicated ns2 protocol that exists.
Therefore no SIP for any new version of ns2.
And no SIP for ns3 :
The ns3 development team estimates a year to write code for a new SIP."


So far there is one option only :
An old computer with Slackware 9. ( Or old Redhat 9.0 ? )


-

Last edited by knudfl; 11-14-2015 at 10:25 AM.
 
Old 11-20-2015, 02:17 PM   #62
amelroua
Member
 
Registered: Oct 2015
Posts: 42

Original Poster
Rep: Reputation: Disabled
-[/QUOTE]

Hi sir,
-I'm trying to write a script where i have to attach a sip proxy to many user agent and many sessions when i execute the script i had this problem:

can't read "n(2)": no such variable
while executing
"$ns attach-agent $n($i) $sipU($i)"
("for" body line 3)
invoked from within
"for {set i 2} {$i < 100} {incr i} {
set sipU($i) [new Agent/SIPUA U($i) proxy.atlanta.com]
$ns attach-agent $n($i) $sipU($i)
$..."
(file "essai.tcl" line 93)
THIS IS THE PART of the script:

for {set i 2} {$i < 1000} {incr i} {
set sipU($i) [new Agent/SIPUA U($i) proxy.atlanta.com]
$ns attach-agent $n($i) $sipU($i)
$sipU($i) set-proxy $serveraddrPR(0)
}

Last edited by amelroua; 11-20-2015 at 02:37 PM.
 
Old 11-20-2015, 02:51 PM   #63
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #62.

`essai.tcl' :
Unknown file : Please attach as essai.tcl.txt, or upload the file to Google Docs.


can't read "n(2)" : ? Undefined node ?
 
Old 11-20-2015, 03:25 PM   #64
amelroua
Member
 
Registered: Oct 2015
Posts: 42

Original Poster
Rep: Reputation: Disabled
Post

`essai.tcl' :
Unknown file
[QUOTE]
sorry sir my script isn't completed i resolved the first problem but i had this:
greencloud@greencloud:~/projet$ ns essai.tcl
Error!!
str2addr:Address 1735549299 outside range of address field length 2048
Attached Files
File Type: txt essai.tcl.txt (2.9 KB, 18 views)
 
Old 11-20-2015, 04:13 PM   #65
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #64 : $ ns229-sip-r104 essai.tcl
Quote:
str2addr:Address 1735549299 outside range of address field length 2048
Google https://www.google.com/webhp?hl=all&...ld+length+2048

Example http://www.linuxquestions.org/questi...-1-a-880264/#2
>>> post #2



-

Last edited by knudfl; 11-20-2015 at 04:15 PM.
 
Old 11-22-2015, 02:22 PM   #66
amelroua
Member
 
Registered: Oct 2015
Posts: 42

Original Poster
Rep: Reputation: Disabled
-[/QUOTE]

Hi sir i don't understand what' s meaning this error:
-- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o90: no target for slot 2
_o90 type: Classifier/Addr
content dump:
classifier _o90
0 offset
22 shift
1023 mask
1 slots
slot 0: _o91 (Classifier/Addr)
---------- Finished standard no-slot{} default handler
Attached Files
File Type: txt essai.tcl.txt (3.4 KB, 17 views)
 
Old 11-22-2015, 03:55 PM   #67
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #66 : Please do not use the same name for two different files.

Post #64 : essai.tcl.txt , 2.9 kB.
And #66 : essai#66.tcl.txt , 3.4 kB.


My test : $ ns229-sip-r104 essai#66.tcl : Same errors.
The error can be caused by (several) different issues.
Please use Google : Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl)

We have an example of a solution : `antnet.tcl' with the same error.
And a solution with Pradeepkumar-antnet.tcl .
See all_tcl-examples-2.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

-
 
  


Reply

Tags
ns2, sip-ns2, voip-ns2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] installation SIP protocol in NS2 godfather9112 Linux - Kernel 15 02-20-2015 09:57 AM
how to open port for IP Phone using SIP protocol with IPTable on RadHat youphak Linux - Networking 1 05-18-2011 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration