Reseau asterisk->lan/wan -> firewalls

Questions générales sur la technologie de Voix sur IP.

Modérateur: Barbapapa

Reseau asterisk->lan/wan -> firewalls

Message par item » 17 Oct 2019 22:43

Bonjour,
topopologie :
- (1) router Proximus pro (192.168.1.0) => tout les ports sont rediriges vers le routeur draytek (2)
- (2) routeur ipbx draytek dual wan, lan subnet 10.0.0.0
- (3) pbx asterisk : lan subnet 10.0.0.0 et wan subnet 192.168.1.x. (je ne sais pas les avoir sur le meme range)
- les tel sont sur le lan (2)

je branche le lan du (3) sur un lan du (2), le wan du (3) sur un lan du (1) (??)
resultat : le trunk du (3) register, appel sortant OK, appel entrant -> busy...sip alg du (2) ou bien config du (1) qui forward tout sur (2) ?
probleme 1: le trunk du (3) ne register que via son wan, via le lan du (3) .. le trunk est "rejected".
probleme 2 : le lan et wan du (3) ne peuvent pas être sur le meme subnet ! (impossible de sauvegarder le meme subnet)
probleme 3 : si je branche le wan du (3) au lan du (2).. mes telephones sont en 10.0.0.0 ... et le lan du (3) ne peut pas être en 10.0.0.0 car son wan est en 10.0.0.0

solution 1 : je suppose que si je remplace le (2) par le (3), mon soucis est réglé !? mais je ne peux pas le remplacer.
solution 2 : help me :)
solution 3 : ?

requirement 1 : faire fonctionne le (3) derriere le (2) !
requirement 2 : appel entrant non busy
requirement 3 : le pbx intégré au (2) en backup ?

je suis perdu :)

Thanks in advance.
en grêve avec les autres
item
Acharné
Acharné
 
Message(s) : 1531
Inscription : 23 Mars 2005 15:31

Re: Reseau asterisk->lan/wan -> firewalls

Message par mackguil » 18 Oct 2019 17:58

Des ports rtp sont il configurés ?
Avatar de l’utilisateur
mackguil
Vingt mille
Vingt mille
 
Message(s) : 21326
Inscription : 14 Mai 2005 10:22
Localisation : Luik Belgium

Re: Reseau asterisk->lan/wan -> firewalls

Message par item » 20 Oct 2019 16:37

Salut mackguil,
resolu :)
resume : le lan est prévu pour certain provider.. donc je n'ai branche que le wan du pbx sur le lan du routeur
comme le routeur est un ipbx a la fois, bah le port sip (5060) fesait office de "barrage". quand j ai change le port sip de l'astérisk en 5061.. bingo.

Now, j ai mes inbound route (direct routing) suivant DID qui foire.
exemple : 322xxxxx71 => Extension => 71[71]. bah il va au 70 (DID du trunk)
et mes outbound CID pas très juste. Je pense que l'ensemble de ces 2 problèmes vient de mes configs du trunk.
y a trop de paramètres :
page Basic :
server address
userName
authUser
password
contact
identify by
et dans advanced :
client uri :
server uri :
aor contact :
from user :
from domain :
send PAI ou send RPID
preferred Outbound CID
Outbound CID


et j ai la possibilite de choisir TCP/UDP/TLS ... que me conseille tu ? entres pbx et phone et entre pbx et provider ?
Voila ..

;)
en grêve avec les autres
item
Acharné
Acharné
 
Message(s) : 1531
Inscription : 23 Mars 2005 15:31

Re: Reseau asterisk->lan/wan -> firewalls

Message par citro » 20 Oct 2019 23:08

Ce n'est pas la bonne rubrique.
Ce serait mieux dans viewforum.php?f=2
citro
Acharné
Acharné
 
Message(s) : 1932
Inscription : 12 Mai 2007 18:12

Re: Reseau asterisk->lan/wan -> firewalls

Message par mackguil » 21 Oct 2019 07:01

item a écrit :Salut mackguil,
resolu :)
resume : le lan est prévu pour certain provider.. donc je n'ai branche que le wan du pbx sur le lan du routeur
comme le routeur est un ipbx a la fois, bah le port sip (5060) fesait office de "barrage". quand j ai change le port sip de l'astérisk en 5061.. bingo.

Now, j ai mes inbound route (direct routing) suivant DID qui foire.
exemple : 322xxxxx71 => Extension => 71[71]. bah il va au 70 (DID du trunk)
et mes outbound CID pas très juste. Je pense que l'ensemble de ces 2 problèmes vient de mes configs du trunk.
y a trop de paramètres :
page Basic :
server address
userName
authUser
password
contact
identify by
et dans advanced :
client uri :
server uri :
aor contact :
from user :
from domain :
send PAI ou send RPID
preferred Outbound CID
Outbound CID


et j ai la possibilite de choisir TCP/UDP/TLS ... que me conseille tu ? entres pbx et phone et entre pbx et provider ?
Voila ..

;)


Un fichier de config ou un logs ?
Avatar de l’utilisateur
mackguil
Vingt mille
Vingt mille
 
Message(s) : 21326
Inscription : 14 Mai 2005 10:22
Localisation : Luik Belgium

Re: Reseau asterisk->lan/wan -> firewalls

Message par item » 21 Oct 2019 22:15

Voila,
en fait j'ai compose le 322XXXXX76 ... donc je devrais atteindre le 376... mais j atteind le 370 :s
a mon avis, c'est la config du trunk avec from ..contact ... domain .. je vais essayer de le trouver dans l'asterisk ;)

Code : Tout sélectionner
[2019-10-21 23:09:06] VERBOSE[20298] netsock2.c: Using SIP RTP Audio TOS bits 184
[2019-10-21 23:09:06] VERBOSE[20298] netsock2.c: Using SIP RTP Audio CoS mark 5
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip:1] MSet("PJSIP/ipRiv-00000326", "FROMTYPE=voip,CDR(call_type)=incoming,TIMEOUT(digit)=3") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] func_timeout.c: Digit timeout set to 3.000
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip:2] Goto("PJSIP/ipRiv-00000326", "from-voip-custom,322XXXXXXX70,1") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx_builtins.c: Goto (from-voip-custom,322XXXXXXX70,1)
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:1] MSet("PJSIP/ipRiv-00000326", "CHAN=ipRiv,RB=") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:2] ExecIf("PJSIP/ipRiv-00000326", "0?Set(JITTERBUFFER(adaptive)=200,,60)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:3] AGI("PJSIP/ipRiv-00000326", "set_trunk_cdr.php,from-voip,ipRiv,324XXXXXX79") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/set_trunk_cdr.php
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: AGI Script Executing Application: (set) Options: (CDR(trunk)=ipRiv)
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: <PJSIP/ipRiv-00000326>AGI Script set_trunk_cdr.php completed, returning 0
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:4] Gosub("PJSIP/ipRiv-00000326", "set-trunk-group,s,1") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@set-trunk-group:1] NoOp("PJSIP/ipRiv-00000326", "PJSIP_CHANNUM_CHECK") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@set-trunk-group:2] MSet("PJSIP/ipRiv-00000326", "CHAN=ipRiv,CHANTYPE=PJSIP") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@set-trunk-group:3] GotoIf("PJSIP/ipRiv-00000326", "0?end") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@set-trunk-group:4] ExecIf("PJSIP/ipRiv-00000326", "0?Hangup") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@set-trunk-group:5] ExecIf("PJSIP/ipRiv-00000326", "1?MSet(CDR(trunk)=ipRiv,GROUP()=ipRiv)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@set-trunk-group:6] Return("PJSIP/ipRiv-00000326", "") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:5] GotoIf("PJSIP/ipRiv-00000326", "0?answer:notanswer") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx_builtins.c: Goto (from-voip-custom,322XXXXXXX70,8)
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:8] Set("PJSIP/ipRiv-00000326", "PAID=") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:9] ExecIf("PJSIP/ipRiv-00000326", "0?Set(CALLERID(all)= <>)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:10] ExecIf("PJSIP/ipRiv-00000326", "0?Hangup()") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:11] ExecIf("PJSIP/ipRiv-00000326", "0?Set(CALLERID(all)=Unknow <Unknow>)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:12] Macro("PJSIP/ipRiv-00000326", "stdexten-record,324XXXXXX79,ipRiv,trunk_in") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:1] GotoIf("PJSIP/ipRiv-00000326", "0?end") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:2] GotoIf("PJSIP/ipRiv-00000326", "0?end") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:3] GotoIf("PJSIP/ipRiv-00000326", "0?end") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:4] GotoIf("PJSIP/ipRiv-00000326", "0?exten") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:5] GotoIf("PJSIP/ipRiv-00000326", "1?trunk_in") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx_builtins.c: Goto (macro-stdexten-record,s,12)
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:12] ExecIf("PJSIP/ipRiv-00000326", "0?Set(DOC=ipRiv)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:13] ExecIf("PJSIP/ipRiv-00000326", "0?Goto(record):Goto(exten)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx_builtins.c: Goto (macro-stdexten-record,s,7)
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:7] ExecIf("PJSIP/ipRiv-00000326", "0?Set(DOC=ipRiv)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:8] ExecIf("PJSIP/ipRiv-00000326", "0?Set(DOC=324XXXXXX79)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:9] ExecIf("PJSIP/ipRiv-00000326", "0?Goto(record):Goto(end)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx_builtins.c: Goto (macro-stdexten-record,s,19)
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:19] NoOp("PJSIP/ipRiv-00000326", ""leave record"") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:13] ExecIf("PJSIP/ipRiv-00000326", "0?Goto()") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:14] AGI("PJSIP/ipRiv-00000326", "check_did.php,322XXXXXXX70") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/check_did.php
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: AGI Script Executing Application: (Goto) Options: (default,370,1)
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx_builtins.c: Goto (default,370,1)
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: <PJSIP/ipRiv-00000326>AGI Script check_did.php completed, returning 0
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [370@default:1] Macro("PJSIP/ipRiv-00000326", "stdexten,370,PJSIP/370/sip:[email protected]:5060&") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:1] MSet("PJSIP/ipRiv-00000326", "CID=324XXXXXX79,CNM=324XXXXXX79") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:2] ExecIf("PJSIP/ipRiv-00000326", "0?Set(JITTERBUFFER(adaptive)=200,,60)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:3] ExecIf("PJSIP/ipRiv-00000326", "0?Set(CID=Unknown)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:4] ExecIf("PJSIP/ipRiv-00000326", "0?Set(CNM=324XXXXXX79)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:5] MSet("PJSIP/ipRiv-00000326", "__DYNAMIC_FEATURES=nway-start,EXTTOCALL=370,_DIALDATA=PJSIP/370/sip:[email protected]:5060&,RTIME=30") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:6] Set("PJSIP/ipRiv-00000326", "CDR(call_src_num)="324XXXXXX79" <324XXXXXX79>") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:7] ExecIf("PJSIP/ipRiv-00000326", "0?hangup") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:8] ExecIf("PJSIP/ipRiv-00000326", "0?Set(CDR(call_type)=internal)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:9] MSet("PJSIP/ipRiv-00000326", "TOUCH_MIXMONITOR_FORMAT=wav,DB(FMC/370)=PJSIP/ipRiv-00000326") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:10] Set("PJSIP/ipRiv-00000326", "TOUCH_MIXMONITOR=324XXXXXX79-370-20191021-230906-1571692146.2527-onetouch") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:11] Set("PJSIP/ipRiv-00000326", "CDR(recording_onetouch_filename)=324XXXXXX79-370-20191021-230906-1571692146.2527-onetouch") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:12] GotoIf("PJSIP/ipRiv-00000326", "0?wakeup-call,370,1") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:13] ExecIf("PJSIP/ipRiv-00000326", "1?AGI(update_caller.php,370)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/update_caller.php
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: <PJSIP/ipRiv-00000326>AGI Script update_caller.php completed, returning 0
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:14] ExecIf("PJSIP/ipRiv-00000326", "1?Set(CDR(call_dest_num)=370)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:15] AGI("PJSIP/ipRiv-00000326", "setinfo.php,370,324XXXXXX79,check") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/setinfo.php
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: <PJSIP/ipRiv-00000326>AGI Script setinfo.php completed, returning 0
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:16] GosubIf("PJSIP/ipRiv-00000326", "0?app-push,s,1(370,PJSIP/370/sip:[email protected]:5060&,324XXXXXX79)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:17] GosubIf("PJSIP/ipRiv-00000326", "1?app-getcontact,s,get") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@app-getcontact:1] AGI("PJSIP/ipRiv-00000326", "getcontact.agi,324XXXXXX79") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/getcontact.agi
[2019-10-21 23:09:07] WARNING[2578] res_pjsip_pubsub.c: No registered subscribe handler for event missed-call-summary
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] res_agi.c: <PJSIP/ipRiv-00000326>AGI Script getcontact.agi completed, returning 0
[2019-10-21 23:09:07] WARNING[23600] res_pjsip_pubsub.c: No registered subscribe handler for event missed-call-summary
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@app-getcontact:2] ExecIf("PJSIP/ipRiv-00000326", "0?Set(CALLERID(name)=324XXXXXX79)") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@app-getcontact:3] ExecIf("PJSIP/ipRiv-00000326", "0?Set(CALLERID(name)=)") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@app-getcontact:4] Return("PJSIP/ipRiv-00000326", "") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:18] ExecIf("PJSIP/ipRiv-00000326", "0?AGI(check_callpermit_interior.php,324XXXXXX79,370,PJSIP/ipRiv-00000326)") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:19] Macro("PJSIP/ipRiv-00000326", "stdexten-record,324XXXXXX79,370,exten") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:1] GotoIf("PJSIP/ipRiv-00000326", "0?end") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:2] GotoIf("PJSIP/ipRiv-00000326", "0?end") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:3] GotoIf("PJSIP/ipRiv-00000326", "0?end") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:4] GotoIf("PJSIP/ipRiv-00000326", "1?exten") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx_builtins.c: Goto (macro-stdexten-record,s,7)
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:7] ExecIf("PJSIP/ipRiv-00000326", "0?Set(DOC=370)") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:8] ExecIf("PJSIP/ipRiv-00000326", "0?Set(DOC=324XXXXXX79)") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:9] ExecIf("PJSIP/ipRiv-00000326", "0?Goto(record):Goto(end)") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx_builtins.c: Goto (macro-stdexten-record,s,19)
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:19] NoOp("PJSIP/ipRiv-00000326", ""leave record"") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:20] GotoIf("PJSIP/ipRiv-00000326", "0?s-NOANSWER,1") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:21] GotoIf("PJSIP/ipRiv-00000326", "0?followme") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:22] GosubIf("PJSIP/ipRiv-00000326", "0?docf,1") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:23] ExecIf("PJSIP/ipRiv-00000326", "0?Dial(PJSIP/370/sip:[email protected]:5060&&,,TtXxkb(set-sipheader-tingtone^s^1(12))):Dial(PJSIP/370/sip:[email protected]:5060&&,30,TtXxkb(set-sipheader-tingtone^s^1(12)))") in new stack
[2019-10-21 23:09:07] WARNING[27014][C-00000194] app_dial.c: Dial argument takes format (technology/resource)
[2019-10-21 23:09:07] WARNING[27014][C-00000194] app_dial.c: Dial argument takes format (technology/resource)
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] app_stack.c: PJSIP/370-00000327 Internal Gosub(set-sipheader-tingtone,s,1(12)) start
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@set-sipheader-tingtone:1] ExecIf("PJSIP/370-00000327", "1?Set(PJSIP_HEADER(add,Alert-Info)=12)") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@set-sipheader-tingtone:2] ExecIf("PJSIP/370-00000327", "0?Set(PJSIP_HEADER(add,P-Early-Media)=supported)") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@set-sipheader-tingtone:3] NoOp("PJSIP/370-00000327", "Return") in new stack
[2019-10-21 23:09:07] NOTICE[27014][C-00000194] app_stack.c: PJSIP/370-00000327 Abnormal 'Gosub(set-sipheader-tingtone,s,1(12))' exit.  Popping routine return locations.
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] app_dial.c: Called PJSIP/370/sip:[email protected]:5060
[2019-10-21 23:09:07] VERBOSE[17563] netsock2.c: Using SIP RTP Audio TOS bits 184
[2019-10-21 23:09:07] VERBOSE[17563] netsock2.c: Using SIP RTP Audio CoS mark 5
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] app_dial.c: PJSIP/370-00000327 is ringing
[2019-10-21 23:09:07] VERBOSE[460] res_pjsip_session.c: =====>rec ip addr XXX.XXX.XXX.XXX
en grêve avec les autres
item
Acharné
Acharné
 
Message(s) : 1531
Inscription : 23 Mars 2005 15:31

Re: Reseau asterisk->lan/wan -> firewalls

Message par item » 21 Oct 2019 23:10

Et pour info, je l'ai fait fonctionner lors de mes tests... mais j'avais aucun appel sortant !
constat : le port 5060 du routeur bloque.. donc mes trunks passe par le 5061 et 5062.
et aussi, j'avais réussi pour les direct inbounds routing, mais je n'avais aucun appel sortant.
en grêve avec les autres
item
Acharné
Acharné
 
Message(s) : 1531
Inscription : 23 Mars 2005 15:31

Re: Reseau asterisk->lan/wan -> firewalls

Message par mackguil » 23 Oct 2019 11:33

item a écrit :Voila,
en fait j'ai compose le 322XXXXX76 ... donc je devrais atteindre le 376... mais j atteind le 370 :s
a mon avis, c'est la config du trunk avec from ..contact ... domain .. je vais essayer de le trouver dans l'asterisk ;)

Code : Tout sélectionner
[2019-10-21 23:09:06] VERBOSE[20298] netsock2.c: Using SIP RTP Audio TOS bits 184
[2019-10-21 23:09:06] VERBOSE[20298] netsock2.c: Using SIP RTP Audio CoS mark 5
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip:1] MSet("PJSIP/ipRiv-00000326", "FROMTYPE=voip,CDR(call_type)=incoming,TIMEOUT(digit)=3") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] func_timeout.c: Digit timeout set to 3.000
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip:2] Goto("PJSIP/ipRiv-00000326", "from-voip-custom,322XXXXXXX70,1") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx_builtins.c: Goto (from-voip-custom,322XXXXXXX70,1)
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:1] MSet("PJSIP/ipRiv-00000326", "CHAN=ipRiv,RB=") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:2] ExecIf("PJSIP/ipRiv-00000326", "0?Set(JITTERBUFFER(adaptive)=200,,60)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:3] AGI("PJSIP/ipRiv-00000326", "set_trunk_cdr.php,from-voip,ipRiv,324XXXXXX79") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/set_trunk_cdr.php
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: AGI Script Executing Application: (set) Options: (CDR(trunk)=ipRiv)
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: <PJSIP/ipRiv-00000326>AGI Script set_trunk_cdr.php completed, returning 0
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:4] Gosub("PJSIP/ipRiv-00000326", "set-trunk-group,s,1") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@set-trunk-group:1] NoOp("PJSIP/ipRiv-00000326", "PJSIP_CHANNUM_CHECK") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@set-trunk-group:2] MSet("PJSIP/ipRiv-00000326", "CHAN=ipRiv,CHANTYPE=PJSIP") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@set-trunk-group:3] GotoIf("PJSIP/ipRiv-00000326", "0?end") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@set-trunk-group:4] ExecIf("PJSIP/ipRiv-00000326", "0?Hangup") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@set-trunk-group:5] ExecIf("PJSIP/ipRiv-00000326", "1?MSet(CDR(trunk)=ipRiv,GROUP()=ipRiv)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@set-trunk-group:6] Return("PJSIP/ipRiv-00000326", "") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:5] GotoIf("PJSIP/ipRiv-00000326", "0?answer:notanswer") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx_builtins.c: Goto (from-voip-custom,322XXXXXXX70,8)
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:8] Set("PJSIP/ipRiv-00000326", "PAID=") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:9] ExecIf("PJSIP/ipRiv-00000326", "0?Set(CALLERID(all)= <>)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:10] ExecIf("PJSIP/ipRiv-00000326", "0?Hangup()") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:11] ExecIf("PJSIP/ipRiv-00000326", "0?Set(CALLERID(all)=Unknow <Unknow>)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:12] Macro("PJSIP/ipRiv-00000326", "stdexten-record,324XXXXXX79,ipRiv,trunk_in") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:1] GotoIf("PJSIP/ipRiv-00000326", "0?end") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:2] GotoIf("PJSIP/ipRiv-00000326", "0?end") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:3] GotoIf("PJSIP/ipRiv-00000326", "0?end") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:4] GotoIf("PJSIP/ipRiv-00000326", "0?exten") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:5] GotoIf("PJSIP/ipRiv-00000326", "1?trunk_in") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx_builtins.c: Goto (macro-stdexten-record,s,12)
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:12] ExecIf("PJSIP/ipRiv-00000326", "0?Set(DOC=ipRiv)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:13] ExecIf("PJSIP/ipRiv-00000326", "0?Goto(record):Goto(exten)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx_builtins.c: Goto (macro-stdexten-record,s,7)
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:7] ExecIf("PJSIP/ipRiv-00000326", "0?Set(DOC=ipRiv)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:8] ExecIf("PJSIP/ipRiv-00000326", "0?Set(DOC=324XXXXXX79)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:9] ExecIf("PJSIP/ipRiv-00000326", "0?Goto(record):Goto(end)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx_builtins.c: Goto (macro-stdexten-record,s,19)
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:19] NoOp("PJSIP/ipRiv-00000326", ""leave record"") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:13] ExecIf("PJSIP/ipRiv-00000326", "0?Goto()") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [322XXXXXXX70@from-voip-custom:14] AGI("PJSIP/ipRiv-00000326", "check_did.php,322XXXXXXX70") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/check_did.php
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: AGI Script Executing Application: (Goto) Options: (default,370,1)
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx_builtins.c: Goto (default,370,1)
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: <PJSIP/ipRiv-00000326>AGI Script check_did.php completed, returning 0
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [370@default:1] Macro("PJSIP/ipRiv-00000326", "stdexten,370,PJSIP/370/sip:[email protected]:5060&") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:1] MSet("PJSIP/ipRiv-00000326", "CID=324XXXXXX79,CNM=324XXXXXX79") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:2] ExecIf("PJSIP/ipRiv-00000326", "0?Set(JITTERBUFFER(adaptive)=200,,60)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:3] ExecIf("PJSIP/ipRiv-00000326", "0?Set(CID=Unknown)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:4] ExecIf("PJSIP/ipRiv-00000326", "0?Set(CNM=324XXXXXX79)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:5] MSet("PJSIP/ipRiv-00000326", "__DYNAMIC_FEATURES=nway-start,EXTTOCALL=370,_DIALDATA=PJSIP/370/sip:[email protected]:5060&,RTIME=30") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:6] Set("PJSIP/ipRiv-00000326", "CDR(call_src_num)="324XXXXXX79" <324XXXXXX79>") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:7] ExecIf("PJSIP/ipRiv-00000326", "0?hangup") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:8] ExecIf("PJSIP/ipRiv-00000326", "0?Set(CDR(call_type)=internal)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:9] MSet("PJSIP/ipRiv-00000326", "TOUCH_MIXMONITOR_FORMAT=wav,DB(FMC/370)=PJSIP/ipRiv-00000326") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:10] Set("PJSIP/ipRiv-00000326", "TOUCH_MIXMONITOR=324XXXXXX79-370-20191021-230906-1571692146.2527-onetouch") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:11] Set("PJSIP/ipRiv-00000326", "CDR(recording_onetouch_filename)=324XXXXXX79-370-20191021-230906-1571692146.2527-onetouch") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:12] GotoIf("PJSIP/ipRiv-00000326", "0?wakeup-call,370,1") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:13] ExecIf("PJSIP/ipRiv-00000326", "1?AGI(update_caller.php,370)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/update_caller.php
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: <PJSIP/ipRiv-00000326>AGI Script update_caller.php completed, returning 0
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:14] ExecIf("PJSIP/ipRiv-00000326", "1?Set(CDR(call_dest_num)=370)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:15] AGI("PJSIP/ipRiv-00000326", "setinfo.php,370,324XXXXXX79,check") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/setinfo.php
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: <PJSIP/ipRiv-00000326>AGI Script setinfo.php completed, returning 0
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:16] GosubIf("PJSIP/ipRiv-00000326", "0?app-push,s,1(370,PJSIP/370/sip:[email protected]:5060&,324XXXXXX79)") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:17] GosubIf("PJSIP/ipRiv-00000326", "1?app-getcontact,s,get") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] pbx.c: Executing [s@app-getcontact:1] AGI("PJSIP/ipRiv-00000326", "getcontact.agi,324XXXXXX79") in new stack
[2019-10-21 23:09:06] VERBOSE[27014][C-00000194] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/getcontact.agi
[2019-10-21 23:09:07] WARNING[2578] res_pjsip_pubsub.c: No registered subscribe handler for event missed-call-summary
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] res_agi.c: <PJSIP/ipRiv-00000326>AGI Script getcontact.agi completed, returning 0
[2019-10-21 23:09:07] WARNING[23600] res_pjsip_pubsub.c: No registered subscribe handler for event missed-call-summary
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@app-getcontact:2] ExecIf("PJSIP/ipRiv-00000326", "0?Set(CALLERID(name)=324XXXXXX79)") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@app-getcontact:3] ExecIf("PJSIP/ipRiv-00000326", "0?Set(CALLERID(name)=)") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@app-getcontact:4] Return("PJSIP/ipRiv-00000326", "") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:18] ExecIf("PJSIP/ipRiv-00000326", "0?AGI(check_callpermit_interior.php,324XXXXXX79,370,PJSIP/ipRiv-00000326)") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:19] Macro("PJSIP/ipRiv-00000326", "stdexten-record,324XXXXXX79,370,exten") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:1] GotoIf("PJSIP/ipRiv-00000326", "0?end") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:2] GotoIf("PJSIP/ipRiv-00000326", "0?end") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:3] GotoIf("PJSIP/ipRiv-00000326", "0?end") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:4] GotoIf("PJSIP/ipRiv-00000326", "1?exten") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx_builtins.c: Goto (macro-stdexten-record,s,7)
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:7] ExecIf("PJSIP/ipRiv-00000326", "0?Set(DOC=370)") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:8] ExecIf("PJSIP/ipRiv-00000326", "0?Set(DOC=324XXXXXX79)") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:9] ExecIf("PJSIP/ipRiv-00000326", "0?Goto(record):Goto(end)") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx_builtins.c: Goto (macro-stdexten-record,s,19)
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten-record:19] NoOp("PJSIP/ipRiv-00000326", ""leave record"") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:20] GotoIf("PJSIP/ipRiv-00000326", "0?s-NOANSWER,1") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:21] GotoIf("PJSIP/ipRiv-00000326", "0?followme") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:22] GosubIf("PJSIP/ipRiv-00000326", "0?docf,1") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@macro-stdexten:23] ExecIf("PJSIP/ipRiv-00000326", "0?Dial(PJSIP/370/sip:[email protected]:5060&&,,TtXxkb(set-sipheader-tingtone^s^1(12))):Dial(PJSIP/370/sip:[email protected]:5060&&,30,TtXxkb(set-sipheader-tingtone^s^1(12)))") in new stack
[2019-10-21 23:09:07] WARNING[27014][C-00000194] app_dial.c: Dial argument takes format (technology/resource)
[2019-10-21 23:09:07] WARNING[27014][C-00000194] app_dial.c: Dial argument takes format (technology/resource)
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] app_stack.c: PJSIP/370-00000327 Internal Gosub(set-sipheader-tingtone,s,1(12)) start
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@set-sipheader-tingtone:1] ExecIf("PJSIP/370-00000327", "1?Set(PJSIP_HEADER(add,Alert-Info)=12)") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@set-sipheader-tingtone:2] ExecIf("PJSIP/370-00000327", "0?Set(PJSIP_HEADER(add,P-Early-Media)=supported)") in new stack
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] pbx.c: Executing [s@set-sipheader-tingtone:3] NoOp("PJSIP/370-00000327", "Return") in new stack
[2019-10-21 23:09:07] NOTICE[27014][C-00000194] app_stack.c: PJSIP/370-00000327 Abnormal 'Gosub(set-sipheader-tingtone,s,1(12))' exit.  Popping routine return locations.
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] app_dial.c: Called PJSIP/370/sip:[email protected]:5060
[2019-10-21 23:09:07] VERBOSE[17563] netsock2.c: Using SIP RTP Audio TOS bits 184
[2019-10-21 23:09:07] VERBOSE[17563] netsock2.c: Using SIP RTP Audio CoS mark 5
[2019-10-21 23:09:07] VERBOSE[27014][C-00000194] app_dial.c: PJSIP/370-00000327 is ringing
[2019-10-21 23:09:07] VERBOSE[460] res_pjsip_session.c: =====>rec ip addr XXX.XXX.XXX.XXX

c'est bien lui (/var/lib/asterisk/agi-bin/check_did.php) qui reroute en fonction du inbound ?
Avatar de l’utilisateur
mackguil
Vingt mille
Vingt mille
 
Message(s) : 21326
Inscription : 14 Mai 2005 10:22
Localisation : Luik Belgium

Re: Reseau asterisk->lan/wan -> firewalls

Message par item » 25 Oct 2019 08:53

je sais pas mais le fichier existe :)
malheureusement je ne sais pas le poster.. sécurité du site
en grêve avec les autres
item
Acharné
Acharné
 
Message(s) : 1531
Inscription : 23 Mars 2005 15:31

Re: Reseau asterisk->lan/wan -> firewalls

Message par mackguil » 25 Oct 2019 13:32

item a écrit :je sais pas mais le fichier existe :)
malheureusement je ne sais pas le poster.. sécurité du site

Il doit certainement avoir dans ce fichier des patterns qui trient en fonction du did entrant, vérifie si elle correspondent bien au résultat voulu.
Avatar de l’utilisateur
mackguil
Vingt mille
Vingt mille
 
Message(s) : 21326
Inscription : 14 Mai 2005 10:22
Localisation : Luik Belgium

Re: Reseau asterisk->lan/wan -> firewalls

Message par item » 27 Oct 2019 20:45

Hello Mackguil,
Ca a été la galère :)
vendredi.. on me dit : probleme de téléphonie.. j essaye de me connecter en ssh, rien, en http, rien.. bref reboot.. et la plus rien ! Heureusement pbx de backup.. j ai juste du activer les trunks.
je ramene le pbx chez moi, hdmi, clavier, souris... et tv.. le bios et puis plus rien !
bref, je trouve un repair-boot..grub .. en liveUsb.. j essaye.. et bingo.. Debian boot et tout fonctionne..
je fait vite un reset general (dans le boot) .. et remet le dernier soft.. et hop tout a l'air de fonctionner :)

Bon la .. je repars a zero :)

suite demain.. je ramene le module gsm et test en live.

Juste questions :
- sip proxy port et local port : c'est quoi la difference
- sip 5060 .. et j'ai sip 5070 .. c'est ce routeurPbx qui me fout tout en l'air
- port rtp ?
donc mon gros soucis, est faire fonctionner un pbx dérriere un routeurPbx..

D'apres mes premiers tests chez moi :
- quand je fait le DID ... j'obtiens : ce numero n'est pas attribue. (donc je suppose config Trunk)
- quand je fais le DID... ca se connecte et puis ..ca coupe ! (donc je suppose config Trunk)
- quand je fais un appel sortant... j'ai le numero du loginProvider et non mon outbound DID. (donc je suppose config Trunk)

Je vais y arriver, je l'ai fait fonctionner a 90% 5jours :)
en grêve avec les autres
item
Acharné
Acharné
 
Message(s) : 1531
Inscription : 23 Mars 2005 15:31

Re: Reseau asterisk->lan/wan -> firewalls

Message par mackguil » 27 Oct 2019 21:47

item a écrit :donc mon gros soucis, est faire fonctionner un pbx dérriere un routeurPbx..

Qui est register sur le serveur du provider que tu utilises, le routeur ou le pbx ?
Avatar de l’utilisateur
mackguil
Vingt mille
Vingt mille
 
Message(s) : 21326
Inscription : 14 Mai 2005 10:22
Localisation : Luik Belgium

Re: Reseau asterisk->lan/wan -> firewalls

Message par item » 29 Oct 2019 00:30

Hello Mackguil,
je "register" .. soit le routeurPbx (vu qu'il fonctionne correctement) .. sinon le pbx vu que je veux l'installer. J'ai juste a "enable" le trunk.
bah justement .. vu que le routeurPbx utilise le port 5060..et 5070... le pbx derriere foire..
j ai fait un sip alg disable sur le routeurPbx mais ca donne rien..
du pbx .. je dois utiliser un autre port que le 5060 ..
et les rtp meme soucis.. le routeurPbx les chopes...

te tiens au courant .. mais j adore le challenge :)
j en reviens pas encore.. comment j'ai pu redémarrer un "linux" qui s'arrête au bios !
C''est la que l'openSource a toute sa magie ..
Respect a la communauté
en grêve avec les autres
item
Acharné
Acharné
 
Message(s) : 1531
Inscription : 23 Mars 2005 15:31

Re: Reseau asterisk->lan/wan -> firewalls

Message par mackguil » 30 Oct 2019 06:46

C'est toi qui décide qui ce register ou c'est au petit bonheur la chance ?
Avatar de l’utilisateur
mackguil
Vingt mille
Vingt mille
 
Message(s) : 21326
Inscription : 14 Mai 2005 10:22
Localisation : Luik Belgium

Re: Reseau asterisk->lan/wan -> firewalls

Message par item » 01 Nov 2019 21:08

Hello Mackguil,
bah vu que j ai deux pbx .. la zycoo et draytek.. j ai configure les phones a utiliser les 2..
sauf que c'est soit la zycoo que j active, soit la draytek :)
Bref, vu que la draytek est pbx aussi.. .la zycoo ne peux pas utiliser le port 5060..

Now.. tout est en place . .et fonctionne a 98%
- mes inbound_routes ne fonctionne pas!
j ai un paramètres dans le trunk "Prefered Outbound Cid" : le choix entres "trunk ou extension".. j ai choisi "trunk"

et une autre chose : PAID ou RPID.. je sais pas quoi choisir.

;)
en grêve avec les autres
item
Acharné
Acharné
 
Message(s) : 1531
Inscription : 23 Mars 2005 15:31

Re: Reseau asterisk->lan/wan -> firewalls

Message par mackguil » 02 Nov 2019 07:41

item a écrit :- mes inbound_routes ne fonctionne pas!
j ai un paramètres dans le trunk "Prefered Outbound Cid" : le choix entres "trunk ou extension".. j ai choisi "trunk"

Les outbound cid n'ont rien avoir avec ton problème de tri des numéros entrants.

item a écrit :et une autre chose : PAID ou RPID.. je sais pas quoi choisir.

Il n'y a pas la possibilité de choisir FROM ?

De toute manière que ce soit l'un ou l'autre c'est au niveau des patterns que le tri s'effectue, c'est elle que tu dois trouver.

PS: Les firmwares de tes pbx sont ils à jour car vu le paid et rpid :o ?
Avatar de l’utilisateur
mackguil
Vingt mille
Vingt mille
 
Message(s) : 21326
Inscription : 14 Mai 2005 10:22
Localisation : Luik Belgium

Re: Reseau asterisk->lan/wan -> firewalls

Message par item » 03 Nov 2019 12:17

Hello,

j'ai un paramètre : operator .. je crois que c'est lui qui foire les inboundsRoutes
si si, j ai plein de From/Contact comme paramètres dans les config du trunk.. d'ailleurs quand je mettait qqchose dans "Contact" => le trunk était busy.
le ouboundCid, j'ai la possibilite de choisir Trunk ou Extension et 2 Cid par défaut pour chaque extension.

Now.. j'essaye d'envoyer un SMS en cli :)
J'ai ca.. en essayant des commandes, donc je suppose que j'ai trouvé le materiel GSM :

app_sms.so SMS/PSTN handler
CooVox-U80v3*CLI> core show channeltypes
Type Description Devicestate Indications Transfer
----------- ----------- ----------- ----------- -----------
CBAnn Conference Bridge Announcing Channel no yes no
CBRec Conference Bridge Recording Channel no no no
PJSIP PJSIP Channel Driver yes yes yes
DAHDI DAHDI Telephony w/PRI & SS7 & MFC/R2 yes yes no
IAX2 Inter Asterisk eXchange Driver (Ver 2) yes yes yes
Console ALSA Console Channel Driver no yes no
Local Local Proxy Channel Driver yes yes no
Surrogate Surrogate channel used to pull channel f no no no
----------
8 channel drivers registered.

CooVox-U80v3*CLI> dahdi show status
Description Alarms IRQ bpviol CRC Fra Codi Options LBO
Neutral neutral V2 4-8 Ports Analog Car OK 0 0 0 CAS Unk 0 db (CSU)/0-133 feet (DSX-1)



Alors maintenant, comment je fait pour trouver la commande cli pour envoyer un SMS ?

Thanks
en grêve avec les autres
item
Acharné
Acharné
 
Message(s) : 1531
Inscription : 23 Mars 2005 15:31

Re: Reseau asterisk->lan/wan -> firewalls

Message par mackguil » 03 Nov 2019 13:53

item a écrit :Hello,

j'ai un paramètre : operator .. je crois que c'est lui qui foire les inboundsRoutes
si si, j ai plein de From/Contact comme paramètres dans les config du trunk.. d'ailleurs quand je mettait qqchose dans "Contact" => le trunk était busy.
le ouboundCid, j'ai la possibilite de choisir Trunk ou Extension et 2 Cid par défaut pour chaque extension.

Now.. j'essaye d'envoyer un SMS en cli :)
J'ai ca.. en essayant des commandes, donc je suppose que j'ai trouvé le materiel GSM :

app_sms.so SMS/PSTN handler
CooVox-U80v3*CLI> core show channeltypes
Type Description Devicestate Indications Transfer
----------- ----------- ----------- ----------- -----------
CBAnn Conference Bridge Announcing Channel no yes no
CBRec Conference Bridge Recording Channel no no no
PJSIP PJSIP Channel Driver yes yes yes
DAHDI DAHDI Telephony w/PRI & SS7 & MFC/R2 yes yes no
IAX2 Inter Asterisk eXchange Driver (Ver 2) yes yes yes
Console ALSA Console Channel Driver no yes no
Local Local Proxy Channel Driver yes yes no
Surrogate Surrogate channel used to pull channel f no no no
----------
8 channel drivers registered.

CooVox-U80v3*CLI> dahdi show status
Description Alarms IRQ bpviol CRC Fra Codi Options LBO
Neutral neutral V2 4-8 Ports Analog Car OK 0 0 0 CAS Unk 0 db (CSU)/0-133 feet (DSX-1)



Alors maintenant, comment je fait pour trouver la commande cli pour envoyer un SMS ?

Thanks

https://wiki.asterisk.org/wiki/display/ ... cation_SMS
Avatar de l’utilisateur
mackguil
Vingt mille
Vingt mille
 
Message(s) : 21326
Inscription : 14 Mai 2005 10:22
Localisation : Luik Belgium

Re: Reseau asterisk->lan/wan -> firewalls

Message par item » 03 Nov 2019 20:51

Macguil,
deja vu ca.. sans succès.
la en ssh ...
sms.conf = fichier vide ..
pas de repertoire "sms" dans pool... par contre

dahdi_trunk_analog.conf
Code : Tout sélectionner
;;;;;;;;trunk-gsm;;;;;;;;;;;
context=from-analog
echocancel=yes
language=en
faxdetect=no
busydetect=yes
busycount=3
rxgain=3.0
txgain=0.0
cidstart=ring
cidsignalling=bell
sendcalleridafter=1
busypattern=
answeronpolarityswitch=no
hanguponpolarityswitch=no
setvar=trunkname=FXO-1
channel=1

;;;;;;;;trunk-gsm;;;;;;;;;;;
context=from-analog
echocancel=yes
language=en
faxdetect=no
busydetect=yes
busycount=3
rxgain=3.0
txgain=0.0
cidstart=ring
cidsignalling=bell
sendcalleridafter=1
busypattern=
answeronpolarityswitch=no
hanguponpolarityswitch=no
setvar=trunkname=FXO-2
channel=2



donc, je cherche un moyen via nodejs et Asterisk-manager pour envoyer des sms ! (un peu comme "originate")

et ton info sur le PAID et RPID.. je crois que c'est ca que mes directInbound ne fonctionne pas ! je dois surement les désactiver.. a tester :)

Thanks
en grêve avec les autres
item
Acharné
Acharné
 
Message(s) : 1531
Inscription : 23 Mars 2005 15:31

Re: Reseau asterisk->lan/wan -> firewalls

Message par mackguil » 03 Nov 2019 21:02

item a écrit :Macguil,
deja vu ca.. sans succès.
la en ssh ...
sms.conf = fichier vide ..
pas de repertoire "sms" dans pool... par contre

dahdi_trunk_analog.conf
Code : Tout sélectionner
;;;;;;;;trunk-gsm;;;;;;;;;;;
context=from-analog
echocancel=yes
language=en
faxdetect=no
busydetect=yes
busycount=3
rxgain=3.0
txgain=0.0
cidstart=ring
cidsignalling=bell
sendcalleridafter=1
busypattern=
answeronpolarityswitch=no
hanguponpolarityswitch=no
setvar=trunkname=FXO-1
channel=1

;;;;;;;;trunk-gsm;;;;;;;;;;;
context=from-analog
echocancel=yes
language=en
faxdetect=no
busydetect=yes
busycount=3
rxgain=3.0
txgain=0.0
cidstart=ring
cidsignalling=bell
sendcalleridafter=1
busypattern=
answeronpolarityswitch=no
hanguponpolarityswitch=no
setvar=trunkname=FXO-2
channel=2



donc, je cherche un moyen via nodejs et Asterisk-manager pour envoyer des sms ! (un peu comme "originate")

et ton info sur le PAID et RPID.. je crois que c'est ca que mes directInbound ne fonctionne pas ! je dois surement les désactiver.. a tester :)

Thanks


Je viens de repenser à ton blême de tri en entrant et vu que tu as accès en ssh:.

Code : Tout sélectionner
cat /etc/asterisk/extensions.conf
Les patterns doivent se retrouver dans ce fichier ou sinon un accès vers le fichier qui fait le job.

Pour les sms je veux bien te donner un coup de main mais sur quelle source de configuration te basses tu ?

https://wiki.asterisk.org/wiki/display/AST/SMS
Avatar de l’utilisateur
mackguil
Vingt mille
Vingt mille
 
Message(s) : 21326
Inscription : 14 Mai 2005 10:22
Localisation : Luik Belgium

Suivant

Retour vers Généralités

Qui est en ligne ?

Utilisateur(s) parcourant ce forum : Aucun utilisateur inscrit