Hi Charles,
as the ngrep shows, the request is sent to the address where the
asterisk should be present - if the asterisk is really listening on the
correct IP and port, try to use ngrep also on the target machine to see
if the msg arrives. also check for ip rules / firewalls. Use netstat to
se if asterisk is really listening on the port you expect.
regards,
bogdan
Charles Wang wrote:
Hi all,
I try to make a call from my Openser 1.2.0 (SIP Proxy) to the asterisk
in different machine.
I use my asterisk as a trunking gateway.
I can make a call from my openser to some trunking gateway such as my
cisco 5300 or welltech 5250.
In the same method, I try to make a call to asterisk ( sip listen on
udp 5060 )
I use ngrep on my asterisk machine and list as below.
But I can't find any sip debug in my asterisk CLI.
In the message on my openser, I can see as below:
openser[16801]: route[11] Base Outbound - M=INVITE
RURI=sip:02123456789@asterisk.ip.addr:5060;transport=udp
F=sip:101@openser.domain.name <mailto:sip:101@openser.domain.name> T=
sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> IP=61.217.xxx.xxx
ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816(a)192.168.11.9
<mailto:ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816@192.168.11.9>
But the To URI is still 00862123456789(a)openser.domain.name
<mailto:00862123456789@openser.domain.name> not
02123456789(a)asterisk.ip.addr <mailto:02123456789@asterisk.ip.addr>.
Is it correct?
Does anybody kind to help me to solve it or give me some tips please?
Best regards,
Charles
##################### message on my Openser
#################################
openser[16802]: New request - M=INVITE
RURI=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name>
F=sip:101@openser.domain.name <mailto:sip:101@openser.domain.name>
T=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> IP=61.217.xxx.xxx
ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816(a)192.168.11.9
<mailto:ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816@192.168.11.9>
openser[16802]: route[12] Base Route Invite - M=INVITE
RURI=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name>
F=sip:101@openser.domain.name <mailto:sip:101@openser.domain.name>
T=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> IP=61.217.xxx.xxx
ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816(a)192.168.11.9
<mailto:ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816@192.168.11.9>
openser[16802]: Proxy authentication failed - M=INVITE
RURI=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name>
F=sip:101@openser.domain.name <mailto:sip:101@openser.domain.name>
T=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> IP=61.217.xxx.xxx
ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816(a)192.168.11.9
<mailto:ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816@192.168.11.9>
openser[16801]: New request - M=INVITE
RURI=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name>
F=sip:101@openser.domain.name <mailto:sip:101@openser.domain.name>
T=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> IP=61.217.xxx.xxx
ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816(a)192.168.11.9
<mailto:ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816@192.168.11.9>
openser[16801]: route[12] Base Route Invite - M=INVITE
RURI=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name>
F=sip:101@openser.domain.name <mailto:sip:101@openser.domain.name>
T=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> IP=61.217.xxx.xxx
ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816(a)192.168.11.9
<mailto:ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816@192.168.11.9>
openser[16801]: route[3] Usr Preferences Caller - M=INVITE
RURI=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name>
F=sip:101@openser.domain.name <mailto:sip:101@openser.domain.name>
T=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> IP=61.217.xxx.xxx
ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816(a)192.168.11.9
<mailto:ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816@192.168.11.9>
openser[16801]: route[1] Clear Usr Preferences Caller - M=INVITE
RURI=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> F=
sip:101@openser.domain.name <mailto:sip:101@openser.domain.name>
T=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> IP=61.217.xxx.xxx
ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816(a)192.168.11.9
<mailto:ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816@192.168.11.9>
openser[16801]: Clear caller preferences - M=INVITE
RURI=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> F=
sip:101@openser.domain.name <mailto:sip:101@openser.domain.name>
T=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> IP=61.217.xxx.xxx
ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816(a)192.168.11.9
<mailto:ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816@192.168.11.9>
openser[16801]: Load caller preferences for uuid '1' - M=INVITE
RURI=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name>
F=sip:101@openser.domain.name <mailto:sip:101@openser.domain.name>
T=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> IP=61.217.xxx.xxx
ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816(a)192.168.11.9
<mailto:ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816@192.168.11.9>
openser[16801]: route[13] Invite Find Callee - M=INVITE
RURI=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> F=
sip:101@openser.domain.name <mailto:sip:101@openser.domain.name>
T=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> IP=61.217.xxx.xxx
ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816(a)192.168.11.9
<mailto:ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816@192.168.11.9>
openser[16801]: route[2] Clear Usr Preferences Callee - M=INVITE
RURI=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name>
F=sip:101@openser.domain.name <mailto:sip:101@openser.domain.name>
T=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> IP=61.217.xxx.xxx
ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816(a)192.168.11.9
<mailto:ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816@192.168.11.9>
openser[16801]: Clear callee preferences - M=INVITE
RURI=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> F=
sip:101@openser.domain.name <mailto:sip:101@openser.domain.name>
T=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> IP=61.217.xxx.xxx
ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816(a)192.168.11.9
<mailto:ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816@192.168.11.9>
openser[16801]: Callee is not local - M=INVITE
RURI=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> F=
sip:101@openser.domain.name <mailto:sip:101@openser.domain.name>
T=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> IP=61.217.xxx.xxx
ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816(a)192.168.11.9
<mailto:ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816@192.168.11.9>
openser[16801]: route[15] Invite To External - M=INVITE
RURI=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> F=
sip:101@openser.domain.name <mailto:sip:101@openser.domain.name>
T=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> IP=61.217.xxx.xxx
ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816(a)192.168.11.9
<mailto:ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816@192.168.11.9>
openser[16801]: Loading PSTN gateways - M=INVITE
RURI=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> F=
sip:101@openser.domain.name <mailto:sip:101@openser.domain.name>
T=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> IP=61.217.xxx.xxx
ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816(a)192.168.11.9
<mailto:ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816@192.168.11.9>
openser[16801]: route[11] Base Outbound - M=INVITE
RURI=sip:02123456789@asterisk.ip.addr:5060;transport=udp
F=sip:101@openser.domain.name <mailto:sip:101@openser.domain.name>
T=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> IP=61.217.xxx.xxx
ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816(a)192.168.11.9
<mailto:ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816@192.168.11.9>
openser[16801]: route[8] Clir - M=INVITE
RURI=sip:02123456789@asterisk.ip.addr:5060;transport=udp
F=sip:101@openser.domain.name <mailto:sip:101@openser.domain.name> T=
sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> IP=61.217.xxx.xxx
ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816(a)192.168.11.9
<mailto:ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816@192.168.11.9>
localhost mediaproxy[1905]: command request
25C0CC42-016D-4FEC-9B60-A0D1076A8816(a)192.168.11.9
<mailto:25C0CC42-016D-4FEC-9B60-A0D1076A8816@192.168.11.9>
192.168.11.9:57538 <http://192.168.11.9:57538>:audio 61.217.xxx.xxx
openser.domain.name <http://openser.domain.name> local
asterisk.ip.addr remote X-PRO=20build=201082
info=from:101@openser.domain.name
<mailto:from:101@openser.domain.name>,to:00862123456789@openser.domain.name
<mailto:to:00862123456789@openser.domain.name>,fromtag:1111281943,totag:
localhost mediaproxy[1905]: session
25C0CC42-016D-4FEC-9B60-A0D1076A8816(a)192.168.11.9
<mailto:25C0CC42-016D-4FEC-9B60-A0D1076A8816@192.168.11.9>: started.
listening on 60.250.132.204:35076 <http://60.250.132.204:35076>
localhost mediaproxy[1905]: command execution time: 3.04 ms
openser[16801]: Request leaving server - M=INVITE
RURI=sip:02123456789@asterisk.ip.addr:5060;transport=udp F=
sip:101@openser.domain.name <mailto:sip:101@openser.domain.name>
T=sip:00862123456789@openser.domain.name
<mailto:sip:00862123456789@openser.domain.name> IP=61.217.xxx.xxx
ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816(a)192.168.11.9
<mailto:ID=25C0CC42-016D-4FEC-9B60-A0D1076A8816@192.168.11.9>
################# my asterisk CLI ########################
[root@asterisk ~]# asterisk -rvvvvvvvvvvvvvv
== Parsing '/etc/asterisk/asterisk.conf': Found
== Parsing '/etc/asterisk/extconfig.conf': Found
== Binding iaxusers to mysql/asterisk/iaxfriends
== Binding iaxpeers to mysql/asterisk/iaxfriends
== Binding queues to mysql/asterisk/queue_table
== Binding queue_members to mysql/asterisk/queue_member_table
Asterisk 1.2.16, Copyright (C) 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer <markster(a)digium.com <mailto:markster@digium.com>>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for
details.
This is free software, with components licensed under the GNU General
Public
License version 2 and other licenses; you are welcome to redistribute
it under
certain conditions. Type 'show license' for details.
=========================================================================
Connected to Asterisk 1.2.16 currently running on asterisk (pid = 26311)
Verbosity is at least 14
-- Remote UNIX connection
asterisk*CLI> sip debug
SIP Debugging re-enabled
asterisk*CLI>
######### my command running on asterisk machine: "ngrep -t -W byline
-d any port 5060" ####################
interface: any
filter: (ip) and ( port 5060 )
#
U 2007/05/17 13:31:35.908163 my.openser.ip.addr:5060 ->
my.asterisk.ip.addr:5060
INVITE sip:03939749001@my.asterisk.ip.addr:5060;transport=udp SIP/2.0.
Record-Route: <sip:my.openser.ip.addr;lr;ftag=3840196923;nat=yes>.
Via: SIP/2.0/UDP my.openser.ip.addr;branch=z9hG4bKab01.ae06a6e5.0.
Via: SIP/2.0/UDP 192.168.11.9:57536 <http://192.168.11.9:57536/>
;received=61.217.xxx.xxx;rport=57536;branch=z9hG4bK834BA777F3C7439EBBC7C4DAECC52FD4.
From: 101 < sip:101@my.openser.domain.name
<mailto:sip:101@my.openser.domain.name>>;tag=3840196923.
To: < sip:0028863939749001@my.openser.domain.name
<mailto:sip:0028863939749001@my.openser.domain.name>>.
Contact: <sip:101@61.217.xxx.xxx:57536>.
Call-ID: 18875244-8D15-416B-92B7-DD24DA4630E2(a)192.168.11.9
<mailto:18875244-8D15-416B-92B7-DD24DA4630E2@192.168.11.9>.
CSeq: 4807 INVITE.
Max-Forwards: 69.
Content-Type: application/sdp.
User-Agent: X-LITE build 1082.
Content-Length: 321.
.
v=0.
o=101 45727796 45727796 IN IP4 192.168.11.9 <http://192.168.11.9/>.
s=X-LITE.
c=IN IP4 my.openser.ip.addr.
t=0 0.
m=audio 35066 RTP/AVP 0 8 3 18 98 97 101.
a=rtpmap:0 pcmu/8000.
a=rtpmap:8 pcma/8000.
a=rtpmap:3 gsm/8000.
a=rtpmap:18 G729/8000.
a=rtpmap:98 iLBC/8000.
a=rtpmap:97 speex/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
#
U 2007/05/17 13:31:36.325713 my.openser.ip.addr:5060 ->
my.asterisk.ip.addr:5060
INVITE sip:03939749001@my.asterisk.ip.addr:5060;transport=udp SIP/2.0.
Record-Route: <sip:my.openser.ip.addr;lr;ftag=3840196923;nat=yes>.
Via: SIP/2.0/UDP my.openser.ip.addr;branch=z9hG4bKab01.ae06a6e5.0.
Via: SIP/2.0/UDP 192.168.11.9:57536 <http://192.168.11.9:57536/>
;received=61.217.xxx.xxx;rport=57536;branch=z9hG4bK834BA777F3C7439EBBC7C4DAECC52FD4.
From: 101 < sip:101@my.openser.domain.name
<mailto:sip:101@my.openser.domain.name>>;tag=3840196923.
To: <sip:0028863939749001@my.openser.domain.name
<mailto:sip:0028863939749001@my.openser.domain.name>>.
Contact: <sip:101@61.217.xxx.xxx:57536>.
Call-ID: 18875244-8D15-416B-92B7-DD24DA4630E2(a)192.168.11.9
<mailto:18875244-8D15-416B-92B7-DD24DA4630E2@192.168.11.9>.
CSeq: 4807 INVITE.
Max-Forwards: 69.
Content-Type: application/sdp.
User-Agent: X-LITE build 1082.
Content-Length: 321.
.
v=0.
o=101 45727796 45727796 IN IP4 192.168.11.9 <http://192.168.11.9/>.
s=X-LITE.
c=IN IP4 my.openser.ip.addr .
t=0 0.
m=audio 35066 RTP/AVP 0 8 3 18 98 97 101.
a=rtpmap:0 pcmu/8000.
a=rtpmap:8 pcma/8000.
a=rtpmap:3 gsm/8000.
a=rtpmap:18 G729/8000.
a=rtpmap:98 iLBC/8000.
a=rtpmap:97 speex/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
#
U 2007/05/17 13:31:37.325722 my.openser.ip.addr:5060 ->
my.asterisk.ip.addr:5060
INVITE sip:03939749001@my.asterisk.ip.addr:5060;transport=udp SIP/2.0.
Record-Route: <sip:my.openser.ip.addr;lr;ftag=3840196923;nat=yes>.
Via: SIP/2.0/UDP my.openser.ip.addr;branch=z9hG4bKab01.ae06a6e5.0.
Via: SIP/2.0/UDP 192.168.11.9:57536 <http://192.168.11.9:57536/>
;received=61.217.xxx.xxx;rport=57536;branch=z9hG4bK834BA777F3C7439EBBC7C4DAECC52FD4.
From: 101 < sip:101@my.openser.domain.name
<mailto:sip:101@my.openser.domain.name>>;tag=3840196923.
To: <sip:0028863939749001@my.openser.domain.name
<mailto:sip:0028863939749001@my.openser.domain.name>>.
Contact: <sip:101@61.217.xxx.xxx:57536>.
Call-ID: 18875244-8D15-416B-92B7-DD24DA4630E2(a)192.168.11.9
<mailto:18875244-8D15-416B-92B7-DD24DA4630E2@192.168.11.9>.
CSeq: 4807 INVITE.
Max-Forwards: 69.
Content-Type: application/sdp.
User-Agent: X-LITE build 1082.
Content-Length: 321.
.
v=0.
o=101 45727796 45727796 IN IP4 192.168.11.9 <http://192.168.11.9/>.
s=X-LITE.
c=IN IP4 my.openser.ip.addr .
t=0 0.
m=audio 35066 RTP/AVP 0 8 3 18 98 97 101.
a=rtpmap:0 pcmu/8000.
a=rtpmap:8 pcma/8000.
a=rtpmap:3 gsm/8000.
a=rtpmap:18 G729/8000.
a=rtpmap:98 iLBC/8000.
a=rtpmap:97 speex/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
#
U 2007/05/17 13:31:39.325425 my.openser.ip.addr:5060 ->
my.asterisk.ip.addr:5060
INVITE sip:03939749001@my.asterisk.ip.addr:5060;transport=udp SIP/2.0.
Record-Route: <sip:my.openser.ip.addr;lr;ftag=3840196923;nat=yes>.
Via: SIP/2.0/UDP my.openser.ip.addr;branch=z9hG4bKab01.ae06a6e5.0.
Via: SIP/2.0/UDP 192.168.11.9:57536 <http://192.168.11.9:57536/>
;received=61.217.xxx.xxx;rport=57536;branch=z9hG4bK834BA777F3C7439EBBC7C4DAECC52FD4.
From: 101 < sip:101@my.openser.domain.name
<mailto:sip:101@my.openser.domain.name>>;tag=3840196923.
To: <sip:0028863939749001@my.openser.domain.name
<mailto:sip:0028863939749001@my.openser.domain.name>>.
Contact: <sip:101@61.217.xxx.xxx:57536>.
Call-ID: 18875244-8D15-416B-92B7-DD24DA4630E2(a)192.168.11.9
<mailto:18875244-8D15-416B-92B7-DD24DA4630E2@192.168.11.9>.
CSeq: 4807 INVITE.
Max-Forwards: 69.
Content-Type: application/sdp.
User-Agent: X-LITE build 1082.
Content-Length: 321.
.
v=0.
o=101 45727796 45727796 IN IP4 192.168.11.9 <http://192.168.11.9/>.
s=X-LITE.
c=IN IP4 my.openser.ip.addr .
t=0 0.
m=audio 35066 RTP/AVP 0 8 3 18 98 97 101.
a=rtpmap:0 pcmu/8000.
a=rtpmap:8 pcma/8000.
a=rtpmap:3 gsm/8000.
a=rtpmap:18 G729/8000.
a=rtpmap:98 iLBC/8000.
a=rtpmap:97 speex/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-15.
--
Best Regards
Charles
--
Best Regards
Charles
------------------------------------------------------------------------
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users