lucabert at lucabert.de Guest
|
Posted: Fri May 29, 2015 12:52 pm Post subject: [asterisk-users] Calling from "extern" |
|
|
Hi list!
Finally I got my wife's phone working in my Asterisk.
Unfortunately I have some problems, too...
Current situation:
- AsteriskNOW with 4 Accounts (00493511111111, 00493512222222,
00493513333333, 5678). This is "for test" and it will be replaced by "the
real world", when I got my Asterisk to work...
- A second Asterisk (Ubuntu-PBX) on another VM, logging in AsterikNOW **AND** Messagenet
- 2 VoIP phones, logged into Ubuntu-PBX (my phone, my wife's phone)
- A Twinkle instance on my PC, logged into AsteriskNOW
On AsteriskNOW:
localhost*CLI> sip show peers
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
00493513333333/0049351333 172.16.34.133 D Yes Yes A 5060 OK (2 ms)
00493511111111/0049351111 172.16.34.133 D Yes Yes A 5060 OK (1 ms)
00493512222222/0049351222 172.16.34.133 D Yes Yes A 5060 OK (1 ms)
1111 (Unspecified) D Yes Yes A 0 UNKNOWN
1112 (Unspecified) D Yes Yes A 0 UNKNOWN
1234/1234 (Unspecified) D Yes Yes A 0 UNKNOWN
5678/5678 172.16.34.1 D Yes Yes A 5060 OK (1 ms)
7 sip peers [Monitored: 4 online, 3 offline Unmonitored: 0 online, 0 offline]
On Ubuntu-PBX:
ubuntu*CLI> sip show peers
Name/username Host Dyn Nat ACL Port Status
00493513333333/0049351333 172.16.34.1 D 1067 OK (71 ms)
00493511111111/0049351111 192.168.200.10 D 5060 OK (17 ms)
00493512222222 (Unspecified) D 5060 UNKNOWN
1234 (Unspecified) D 5060 UNKNOWN
messagenet/4444444444 212.97.59.76 5061 Unmonitored
pbxanika/00493513333333 172.16.34.132 5060 Unmonitored
pbxfax/00493512222222 172.16.34.132 5060 Unmonitored
pbxluca/00493511111111 172.16.34.132 5060 Unmonitored
8 sip peers [Monitored: 2 online, 2 offline Unmonitored: 4 online, 0 offline]
If I call from my phone (00493511111111) my wife's phone (00493513333333), it works.
If I call from my wife's phone (00493513333333) my phone (00493511111111), it works.
If I call from the real world (really real!) my phone on Messagenet (4444444444), it works.
If I call from Twinkle (5678 on AsteriskNOW) my phone (00493511111111), it works.
If I call from Twinkle (5678 on AsteriskNOW) my wife's phone (00493513333333), it does NOT work
and I see this error on AsteriskCLI:
== Using SIP RTP CoS mark 5
[May 29 19:42:13] NOTICE[2526]: chan_sip.c:20163 handle_request_invite: Call from '00493511111111' to extension '00493513333333' rejected because extension not found.
users.conf on Ubuntu-PBX:
[00493511111111]
fullname = 00493511111111
secret = MYSECRET
dahdichan = 1
hassip = yes
hasiax = no
hash323 = no
hasmanager = no
callwaiting = no
context = default
host = dynamic
dtmfmode=rfc2833
canreinvite=no
sendrpid=pai
type=friend
nat=force_rport,comedia
qualify=yes
qualifyfreq=60
transport=Auto
avpf=no
force_avp=no
icesupport=no
encryption=no
callgroup=
pickupgroup=
dial=SIP/00493511111111
[00493512222222]
fullname = 00493512222222
secret = MYSECRET
dahdichan = 1
hassip = yes
hasiax = no
hash323 = no
hasmanager = no
callwaiting = no
context = default
host = dynamic
dtmfmode=rfc2833
canreinvite=no
sendrpid=pai
type=friend
nat=force_rport,comedia
qualify=yes
qualifyfreq=60
transport=Auto
avpf=no
force_avp=no
icesupport=no
encryption=no
callgroup=
pickupgroup=
dial=SIP/00493512222222
[00493513333333]
fullname = 00493513333333
secret = MYSECRET
dahdichan = 1
hassip = yes
hasiax = no
hash323 = no
hasmanager = no
callwaiting = no
context = default
host = dynamic
dtmfmode=rfc2833
canreinvite=no
sendrpid=pai
type=friend
nat=force_rport,comedia
qualify=yes
qualifyfreq=60
transport=Auto
avpf=no
force_avp=no
icesupport=no
encryption=no
callgroup=
pickupgroup=
dial=SIP/00493513333333
=====================================
sip.conf on Ubuntu-PBX:
[general]
context=default
allowoverlap=no
udpbindaddr=0.0.0.0
tcpenable=yes
tcpbindaddr=0.0.0.0
srvlookup=yes
language=de
register => 00493511111111:MYSECRET@pbxluca/00493511111111
register => 00493512222222:MYSECRET@pbxfax/00493512222222
register => 00493513333333:MYSECRET@pbxanika/00493513333333
register => 4444444444:MYVERYSECRET@messagenet/4444444444
[pbxluca]
type=peer
defaultuser=00493511111111
secret= MYSECRET
dtmfmode=rfc2833
host=172.16.34.132
context=luca_incoming
outboundproxy=172.16.34.132
port=5060
fromuser=00493511111111
fromdomain=172.16.34.132
usereqphone=yes
canreinvite=no
insecure=invite
[pbxfax]
type=peer
defaultuser=00493512222222
secret= MYSECRET
dtmfmode=rfc2833
host=172.16.34.132
context=fax_incoming
outboundproxy=172.16.34.132
port=5060
fromuser=00493512222222
fromdomain=172.16.34.132
usereqphone=yes
canreinvite=no
insecure=invite
[pbxanika]
type=peer
defaultuser=00493513333333
secret= MYSECRET
dtmfmode=rfc2833
host=172.16.34.132
context=anika_incoming
outboundproxy=172.16.34.132
port=5060
fromuser=00493513333333
fromdomain=172.16.34.132
usereqphone=yes
canreinvite=no
insecure=invite
[messagenet]
type=peer
defaultuser=4444444444
secret=MYVERYSECRET
dtmfmode=rfc2833
host=sip.messagenet.it
context=messagenet_incoming
outboundproxy=sip.messagenet.it
port=5061
fromuser=4444444444
fromdomain=sip.messagenet.it
usereqphone=yes
canreinvite=no
insecure=invite
=====================================
extensions.conf on Ubuntu-PBX:
[default]
exten => s,1,Verbose(2,DEFAULT)
include => luca_incoming
include => fax_incoming
include => anika_incoming
include => messagenet_incoming
include => myproxy
[luca_incoming]
exten => _00493511111111,1,Verbose(2,Call for Luca)
exten => _00493511111111,n,Dial(SIP/00493511111111,10)
exten => _00493511111111,n,Hangup
[fax_incoming]
exten => _00493512222222,1,Verbose(2,Call for FAX)
exten => _00493512222222,n,Dial(SIP/00493512222222,10)
exten => _00493512222222,n,Hangup
[anika_incoming]
exten => _00493513333333,1,Verbose(2,Call for Anika)
exten => _00493513333333,n,Dial(SIP/00493513333333,10)
exten => _00493513333333,n,Hangup
[messagenet_incoming]
exten => _4444444444,1,Verbose(2,Call from Messagenet)
exten => _4444444444,n,Dial(SIP/00493511111111,10)
exten => _4444444444,n,Hangup
[myproxy]
exten => _X.,1,Verbose(2,Call from ${CALLERID(num)} to ${EXTEN})
exten => _X.,n,GotoIf($["${CALLERID(num)}" = "00493511111111"]?dialluca)
exten => _X.,n,GotoIf($["${CALLERID(num)}" = "00493512222222"]?dialfax)
exten => _X.,n,GotoIf($["${CALLERID(num)}" = "00493513333333"]?dialanika)
exten => _X.,n,Dial(SIP/pbxluca/${EXTEN},30,r)
exten => _X.,n,Hangup
exten => _X.,n(dialluca),Verbose(2,Outgoing using pbxluca)
exten => _X.,n(dialluca),Dial(SIP/pbxluca/${EXTEN},30,r)
exten => _X.,n,Hangup
exten => _X.,n(dialfax),Verbose(2,Outgoing using pbxfax)
exten => _X.,n(dialfax),Dial(SIP/pbxfax/${EXTEN},30,r)
exten => _X.,n,Hangup
exten => _X.,n(dialanika),Verbose(2,Outgoing using pbxanika)
exten => _X.,n(dialanika),Dial(SIP/pbxanika/${EXTEN},30,r)
exten => _X.,n,Hangup
I really hope, someone can help me...
Thanks
Luca Bertoncello
(lucabert@lucabert.de)
--
_____________________________________________________________________
-- 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 |
|