Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba
rsaaris wrote:I had the same situation where registration string (username/password) was not used. So don't put anything there because it can mess things up when connecting to the provider. That happened in my case.
If sip show peers in asterisk console shows that the sip connection to your provider is "Ok", then it should work.
And when I am calling out my dialplan is like
exten => _yourcallpattern.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _yourcallpattern.,n,Dial(SIP/${EXTEN}@hostip:5060)
exten => _yourcallpattern.,n,Hangup
Hope this helps.
dinhthuc wrote:
Thank for help
means that I don't need to setting: Registration String, Globals String, Account Entry ?
I only fill out dialplan the same above ?
I try to type sip show peers but I don't see the Sip connection that I regerdit on Vicidial
IP: 217.75.206.97
SUB: 255.255.255.192
G: 217.75.206.65
logosoft
[logosoft]
disallow=all
allow=gsm
allow=ulaw
allow=alaw
allow=g729
type=peer
host=217.75.205.49
dtmfmode=rfc2833
qualify=yes
insecure=very
canreinvite=no
SIPlogosoft = SIP/logosoft
exten => _9062723254,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9062723254,2,Dial(SIP/${EXTEN:1}@logosoft,,tTo)
exten => _9062723254,3,Hangup
go*CLI> sip show peers
Name/username Host Dyn Nat ACL Port Status
8002/8002 192.168.1.6 D N 19243 OK (110 ms)
8001/8001 192.168.1.7 D N 13266 OK (104 ms)
logosoft 217.75.205.49 N 5060 UNREACHABLE
21 sip peers [Monitored: 2 online, 19 offline Unmonitored: 0 online, 0 offline]
[Feb 15 16:54:14] WARNING[4697]: chan_sip.c:1894 __sip_xmit: sip_xmit of 0x844ce54 (len 498) to 217.75.205.49:5060 returned -2: Network is unreachable
[Feb 15 16:54:18] Really destroying SIP dialog '4067fd5168c653d7120c84dc7356f14a@127.0.0.1' Method: OPTIONS
[Feb 15 16:54:28] WARNING[4697]: acl.c:541 ast_ouraddrfor: Cannot connect
[Feb 15 16:54:28] Reliably Transmitting (NAT) to 217.75.205.49:5060:
OPTIONS sip:217.75.205.49;cpd=on SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK3ba094c0;rport
From: "asterisk" <sip:asterisk@127.0.0.1>;tag=as660bb335
To: <sip:217.75.205.49;cpd=on>
Contact: <sip:asterisk@127.0.0.1>
Call-ID: 21df3e4e5a359b72289fd2c7230f5dde@127.0.0.1
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Fri, 15 Feb 2013 21:54:28 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
Content-Length: 0
---
[Feb 15 16:54:28] WARNING[4697]: chan_sip.c:1894 __sip_xmit: sip_xmit of 0x844ce54 (len 498) to 217.75.205.49:5060 returned -2: Network is unreachable
[Feb 15 16:54:32] Really destroying SIP dialog '21df3e4e5a359b72289fd2c7230f5dde@127.0.0.1' Method: OPTIONS
go*CLI>
Return to ViciBox Server Install and Demo
Users browsing this forum: No registered users and 71 guests