VICIDIAL ARCHITECTURE without internet

Any and all non-support discussions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

VICIDIAL ARCHITECTURE without internet

Postby disepa » Mon Nov 08, 2021 10:36 pm

Hi everybody,

I 'm a beginner and I try to resolve my issue with my installation.

I configure my vicidial server (192.168.88.YY) first connected to internet and after making packages updating, I change the ip address of my server. Then I connect my vicidial eth port to the ISP provider router which provide SIP trunk (10.51.50.XXX) in peer without internet. To reach my ISP trunk, I added another router and done a static route.
So we can ping internet

My carrier is registred by IP authentification (OK) in vicidial. Got help of A friendly vicidial forum member who told me to put Server IP => 0.0.0.0 (all servers)
in my carrier settings and not the ip address of my vicidial server (192.168.88.YY).

But make calls failed. That I can see the server try to do a name resolution of my carrier?!

ERROR[19627][C-00000017]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo("MTN", "(null)", ...): Temporary failure in name resolution
[Nov 9 03:28:08] WARNING[19627][C-00000017]: chan_sip.c:6356 create_addr: No such host: MTN
[Nov 9 03:28:08] WARNING[19627][C-00000017]: app_dial.c:2589 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
[Nov 9 03:28:08] -- No devices or endpoints to dial (technology/resource)
[Nov 9 03:28:08] -- Executing [914647948770@default:3] Hangup("Local/914647948770@default-00000010;2", "") in new stack
[Nov 9 03:28:08] == Spawn extension (default, 914647948770, 3) exited non-zero on 'Local/914647948770@default-00000010;2'
[Nov 9 03:28:08] WARNING[19627][C-00000017]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel
[Nov 9 03:28:08] -- Executing [h@default:1] AGI("Local/914647948770@default-00000010;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----2


vicibox10*CLI> sip show peers
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
2003/2003 192.168.88.YZ D Yes Yes 59712 OK (102 ms)
gs102/gs102 (Unspecified) D Yes Yes 0 UNKNOWN
mtncarrier 10.50.51.XXX Yes Yes 5060 OK (43 ms)


iS it impossible to run vicidial server (make calls) without routing to internet even if the carrier is registered?

Thanks and Regards
disepa
 
Posts: 20
Joined: Tue Nov 02, 2021 6:01 am

Re: VICIDIAL ARCHITECTURE without internet

Postby striker » Mon Nov 08, 2021 11:06 pm

yes you can dial
but your problem seems to be dialplan not matching the sip trunk name

can you post output of below command from the asterisk cli

dialplan show 914647948770@default

also post your sip settings.
www.striker24x7.com www.youtube.com/c/striker24x7 Telegram/skype id : striker24x7
striker
 
Posts: 962
Joined: Sun Jun 06, 2010 10:25 am

Re: VICIDIAL ARCHITECTURE without internet

Postby disepa » Tue Nov 09, 2021 9:21 am

Hi Stricker,

Thank you for responding.

The result of dialplan show

vicibox10*CLI> dialplan show 914647948770@default
[ Included context 'vicidial-auto-external' created by 'pbx_config' ]
'_9X.' => 1. AGI(agi://127.0.0.1:4577/call_log) [pbx_config]
2. Dial(SIP/${EXTEN:1}@MTN,,tTor) [pbx_config]
3. Hangup() [pbx_config]


The SIP settings :
Carrier ID: MTN
Carrier Name: MTN
Carrier Description:
Admin User Group: ---ALL---
Registration String:
Template ID:
Account Entry :[mtncarrier]
context=default
disallow=all
allow=ulaw
allow=alaw
allow=g729
type=peer
port=5060
host=10.50.51.XXX
dtmfmode=rfc2833
qualify=yes
insecure=port,invite
canreinvite=no
nat=force_rport,comedia
Protocol: SIP
Globals String:
SIP=SIP/MTN
Dialplan Entry: exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9X.,n,Dial(SIP/${EXTEN:1}@MTN,,tTor)
exten => _9X.,3,Hangup


Il will specify that the trunk sip is by IP authentification. And the dialplan must permit to call all destinations in the world.

Thanks and regards
disepa
 
Posts: 20
Joined: Tue Nov 02, 2021 6:01 am

Re: VICIDIAL ARCHITECTURE without internet

Postby carpenox » Tue Nov 09, 2021 9:49 am

change the account entry to [MTN]
Alma Linux 9.3 | Version: 2.14-911a | SVN Version: 3815 | DB Schema Version: 1710 | Asterisk 18.18.1
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WhatsApp: +19549477572 -:- Skype: live:carpenox_3
carpenox
 
Posts: 2230
Joined: Wed Apr 08, 2020 2:02 am
Location: Coral Springs, FL

Re: VICIDIAL ARCHITECTURE without internet

Postby disepa » Tue Nov 09, 2021 11:51 am

I do that but may I do a asterisk or vicidial command line before trying to make a new call?

Because when I try make a new call after change the account entry to [MTN] and click on submit, I have the same issue :

ERROR[10520][C-0000002d]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo("MTN", "(null)", ...): Temporary failure in name resolution
[Nov 9 17:44:08] WARNING[10520][C-0000002d]: chan_sip.c:6356 create_addr: No such host: MTN
[Nov 9 17:44:08] WARNING[10520][C-0000002d]: app_dial.c:2589 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
[Nov 9 17:44:08] -- No devices or endpoints to dial (technology/resource)
[Nov 9 17:44:08] -- Executing [918347948770@default:3] Hangup("Local/918347948770@default-0000001f;2", "") in new stack
[Nov 9 17:44:08] == Spawn extension (default, 918347948770, 3) exited non-zero on 'Local/918347948770@default-0000001f;2'
[Nov 9 17:44:08] WARNING[10520][C-0000002d]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel
[Nov 9 17:44:08] -- Executing [h@default:1] AGI("Local/918347948770@default-0000001f;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL---------------)") in new stack
[Nov 9 17:44:08] -- <Local/918347948770@default-0000001f;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ----------) completed, returning 0
[Nov 9 17:44:09] == Manager 'sendcron' logged off from 127.0.0.1
[Nov 9 17:44:09] == Manager 'sendcron' logged off from 127.0.0.1
disepa
 
Posts: 20
Joined: Tue Nov 02, 2021 6:01 am

Re: VICIDIAL ARCHITECTURE without internet

Postby disepa » Tue Nov 09, 2021 12:15 pm

Ok now I can hear the ringing in the softphone when I make a call. The number I try to call is +2250749286111 but my brother does not receive any call.

This is what asterisk shows :

[Nov 9 18:02:23] -- Called 8600051@default
[Nov 9 18:02:23] -- Executing [8600051@default:1] MeetMe("Local/8600051@default-00000026;2", "8600051,F") in new stack
[Nov 9 18:02:23] -- Local/8600051@default-00000026;1 answered
[Nov 9 18:02:23] -- Executing [92250749286111@default:1] AGI("Local/8600051@default-00000026;1", "agi://127.0.0.1:4577/call_log") in new stack
[Nov 9 18:02:23] -- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=CAMP01))
[Nov 9 18:02:23] -- <Local/8600051@default-00000026;1>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Nov 9 18:02:23] -- Executing [92250749286111@default:2] Dial("Local/8600051@default-00000026;1", "SIP/2250749286111@MTN,,tTor") in new stack
[Nov 9 18:02:23] == Using SIP RTP CoS mark 5
[Nov 9 18:02:23] -- Called SIP/2250749286111@MTN
[Nov 9 18:02:23] == Manager 'sendcron' logged on from 127.0.0.1
[Nov 9 18:02:23] -- Called 58600051@default
[Nov 9 18:02:23] -- Executing [58600051@default:1] MeetMe("Local/58600051@default-00000027;2", "8600051,Fmq") in new stack
[Nov 9 18:02:23] -- Local/58600051@default-00000027;1 answered
[Nov 9 18:02:23] -- Executing [8309@default:1] Answer("Local/58600051@default-00000027;1", "") in new stack
[Nov 9 18:02:23] -- Executing [8309@default:2] Monitor("Local/58600051@default-00000027;1", "wav,20211109-180223_0749286111") in new stack
[Nov 9 18:02:23] -- Executing [8309@default:3] Wait("Local/58600051@default-00000027;1", "3600") in new stack
[Nov 9 18:02:23] > 0x7f91d002d160 -- Strict RTP learning after remote address set to: 10.50.51.112:10072
[Nov 9 18:02:23] -- SIP/MTN-00000008 is making progress passing it to Local/8600051@default-00000026;1
[Nov 9 18:02:24] > 0x7f91d002d160 -- Strict RTP switching to RTP target address 10.50.51.112:10072 as source
[Nov 9 18:02:24] == Manager 'sendcron' logged on from 127.0.0.1
[Nov 9 18:02:24] -- Called 914147948770@default
[Nov 9 18:02:24] -- Executing [914147948770@default:1] AGI("Local/914147948770@default-00000028;2", "agi://127.0.0.1:4577/call_log") in new stack
[Nov 9 18:02:24] -- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=CAMP01))
[Nov 9 18:02:24] -- <Local/914147948770@default-00000028;2>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Nov 9 18:02:24] -- Executing [914147948770@default:2] Dial("Local/914147948770@default-00000028;2", "SIP/14147948770@MTN,,tTor") in new stack
[Nov 9 18:02:24] == Using SIP RTP CoS mark 5
[Nov 9 18:02:24] -- Called SIP/14147948770@MTN
[Nov 9 18:02:24] -- Local/914147948770@default-00000028;1 is ringing
[Nov 9 18:02:24] > 0x7f91e40191d0 -- Strict RTP learning after remote address set to: 10.50.51.112:10074
[Nov 9 18:02:24] -- SIP/MTN-00000009 is making progress passing it to Local/914147948770@default-00000028;2
[Nov 9 18:02:24] > 0x7f91e40191d0 -- Strict RTP switching to RTP target address 10.50.51.112:10074 as source
[Nov 9 18:02:24] == Manager 'sendcron' logged on from 127.0.0.1
[Nov 9 18:02:24] -- Called 913747948770@default
[Nov 9 18:02:24] -- Executing [913747948770@default:1] AGI("Local/913747948770@default-00000029;2", "agi://127.0.0.1:4577/call_log") in new stack
[Nov 9 18:02:24] -- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=CAMP01))
[Nov 9 18:02:24] -- <Local/913747948770@default-00000029;2>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Nov 9 18:02:24] -- Executing [913747948770@default:2] Dial("Local/913747948770@default-00000029;2", "SIP/13747948770@MTN,,tTor") in new stack
[Nov 9 18:02:24] == Using SIP RTP CoS mark 5
[Nov 9 18:02:24] -- Called SIP/13747948770@MTN
[Nov 9 18:02:24] -- Local/913747948770@default-00000029;1 is ringing
[Nov 9 18:02:24] > 0x7f91f801e2c0 -- Strict RTP learning after remote address set to: 10.50.51.112:10076
[Nov 9 18:02:24] -- SIP/MTN-0000000a is making progress passing it to Local/913747948770@default-00000029;2
[Nov 9 18:02:24] > 0x7f91f801e2c0 -- Strict RTP switching to RTP target address 10.50.51.112:10076 as source
[Nov 9 18:02:24] == Manager 'sendcron' logged off from 127.0.0.1
[Nov 9 18:02:24] == Manager 'sendcron' logged off from 127.0.0.1
[Nov 9 18:02:28] > 0x7f91d002d160 -- Strict RTP learning complete - Locking on source address 10.50.51.112:10072
[Nov 9 18:02:29] > 0x7f91e40191d0 -- Strict RTP learning complete - Locking on source address 10.50.51.112:10074
[Nov 9 18:02:29] > 0x7f91f801e2c0 -- Strict RTP learning complete - Locking on source address 10.50.51.112:10076
[Nov 9 18:02:54] == Spawn extension (default, 914147948770, 2) exited non-zero on 'Local/914147948770@default-00000028;2'
[Nov 9 18:02:54] -- Executing [h@default:1] AGI("Local/914147948770@default-00000028;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0-----CANCEL---------------SIP 183 Session Progress)") in new stack
[Nov 9 18:02:54] == Manager 'sendcron' logged off from 127.0.0.1
[Nov 9 18:02:54] -- <Local/914147948770@default-00000028;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... -------SIP 183 Session Progress) completed, returning 0
disepa
 
Posts: 20
Joined: Tue Nov 02, 2021 6:01 am

Re: VICIDIAL ARCHITECTURE without internet

Postby disepa » Wed Nov 10, 2021 9:08 am

Hello,

Please I beg.
Can someone help me?

Thanks
disepa
 
Posts: 20
Joined: Tue Nov 02, 2021 6:01 am

Re: VICIDIAL ARCHITECTURE without internet

Postby striker » Thu Nov 11, 2021 11:23 am

seems the number you dialled is wrong. or itneed country code .

as you can seee number dialed with 1 shows rining signal

Called SIP/13747948770@MTN
[Nov 9 18:02:24] -- Local/913747948770@default-00000029;1 is ringing

[Nov 9 18:02:24] -- Called SIP/14147948770@MTN
[Nov 9 18:02:24] -- Local/914147948770@default-00000028;1 is ringing

but for 2250749286111 no ring
[Nov 9 18:02:23] -- Called SIP/2250749286111@MTN
www.striker24x7.com www.youtube.com/c/striker24x7 Telegram/skype id : striker24x7
striker
 
Posts: 962
Joined: Sun Jun 06, 2010 10:25 am

Re: VICIDIAL ARCHITECTURE without internet

Postby disepa » Wed Nov 24, 2021 5:47 pm

Solved.

Thank you
disepa
 
Posts: 20
Joined: Tue Nov 02, 2021 6:01 am


Return to General Discussion

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 61 guests

cron