LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-02-2011, 09:22 AM   #31
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34

I think the 'nc' command you executed was wrong. You have to listen on UDP port 5060.

Quote:
udp 0 0 127.0.0.1:32789 127.0.0.1:5060 ESTABLISHED 11043/nc
Use
Quote:
nc -u -l -p 5060
to listen on UDP port 5060


You are yet to stop the SIP server.
Quote:
udp 0 0 127.0.0.1:5060 0.0.0.0:* 11008/ser
 
1 members found this post helpful.
Old 09-02-2011, 09:22 AM   #32
gbwien
Member
 
Registered: Jul 2008
Posts: 33

Original Poster
Rep: Reputation: 0
service iptables check -> stopped

is this ok
 
Old 09-02-2011, 09:26 AM   #33
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
iptables stop is fine.

But did you take care of 'nc' and 'SIP server' as discussed?
 
1 members found this post helpful.
Old 09-02-2011, 09:27 AM   #34
gbwien
Member
 
Registered: Jul 2008
Posts: 33

Original Poster
Rep: Reputation: 0
ok i got something on console output

REGISTER sippen-ims.test SIP/2.0
Via: SIP/2.0/UDP 192.168.21.129:60584;branch=z9hG4bK9374509;rport
From: <sip:alice@open-ims.test>;tag=9392294
To: <sip:alice@open-ims.test>
Contact: <sip:alice@192.168.21.129:60584;transport=udp>;expires=600000;+g.oma.sip-im;language="en,fr";+g.3gpp.smsip;+g.oma.sip-im.large-message;audio;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-application.ims.iari.gsma-vs";+g.3gpp.cs-voice
Call-ID: 5626b92f-a99a-0980-7b75-d4987b99fdf9
CSeq: 6744 REGISTER
Content-Length: 0
Max-Forwards: 70
Allow: INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER
Privacy: none
P-Access-Network-Info: ADSL;utran-cell-id-3gpp=00000000
User-Agent: IM-client/OMA1.0 Boghe/v1.0.58.550
P-Preferred-Identity: <sip:alice@open-ims.test>
Supported: path
 
Old 09-02-2011, 09:28 AM   #35
gbwien
Member
 
Registered: Jul 2008
Posts: 33

Original Poster
Rep: Reputation: 0
maybe ssh redirect might help ??

maybe I could use ssh to redirect to eth0
 
Old 09-02-2011, 09:29 AM   #36
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
Cool. After you got the some message on 'nc' terminal, type something back on 'nc' terminal.

Can you attach packet capture output for this?
 
1 members found this post helpful.
Old 09-02-2011, 09:37 AM   #37
gbwien
Member
 
Registered: Jul 2008
Posts: 33

Original Poster
Rep: Reputation: 0
output wireshark trace

thanks a million
Attached Files
File Type: txt nc-output-plus-typed-output.txt (36.3 KB, 5 views)
 
Old 09-02-2011, 09:42 AM   #38
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
Quote:
Frame 67 (77 bytes on wire, 77 bytes captured)
Ethernet II, Src: Vmware_64:ba:05 (00:0c:29:64:ba:05), Dst: Vmware_c0:00:01 (00:50:56:c0:00:01)
Internet Protocol, Src: 192.168.21.128 (192.168.21.128), Dst: 192.168.21.129 (192.168.21.129)
User Datagram Protocol, Src Port: 5060 (5060), Dst Port: 51541 (51541)
Data (35 bytes)

0000 68 65 6c 6c 6f 20 77 6f 72 6c 64 20 77 68 79 20 hello world why
0010 69 73 20 69 74 20 6e 6f 74 20 77 6f 72 6b 69 6e is it not workin
0020 67 20 0a
g .
Here you can see the message that you typed... so this reached the SIP client.

This means, if you run the SIP server listening on eth0 interface of the Linux instance, things will be fine.

HTH!
 
1 members found this post helpful.
Old 09-02-2011, 09:46 AM   #39
gbwien
Member
 
Registered: Jul 2008
Posts: 33

Original Poster
Rep: Reputation: 0
THANKS again

thanks
 
Old 09-02-2011, 09:46 AM   #40
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
You are welcome
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Raw UDP Socket and ICMP Destination (Port) Unreachable bobble Programming 5 07-06-2011 05:07 AM
Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 migabriel.84 Linux - Server 1 11-25-2009 04:36 PM
route -n shows unknown network destination gjmwalsh Linux - Networking 2 09-19-2009 10:36 PM
icmpquery: Unknown ICMP message received (type 13) phsythax Linux - Networking 1 11-17-2005 04:39 PM
lpstat: Unknown destination ricky_ds Linux - Networking 1 08-22-2005 05:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:20 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration