IRC log for #asterisk on 20170516

00:02.41*** join/#asterisk Dovid (~dovid@ool-4573a525.dyn.optonline.net)
00:19.56*** join/#asterisk infobot (ibot@rikers.org)
00:19.56*** topic/#asterisk is #asterisk The Open Source PBX and Telephony Platform (asterisk.org) -=- LTS: 13.15.0 (2017/04/07), 11.25.1 (2016/12/08), Standard: 14.4.0 (2017/04/07); DAHDI: DAHDI-linux 2.11.1 (2016/03/01), DAHDI-tools 2.11.1 (2016/03/01); libpri 1.6.0 (2017/01/27) -=- Wiki: wiki.asterisk.org -=- Code of Conduct: bit.ly/1hH6P22 -=- Logs: bit.ly/1s4AKKu
00:56.32*** join/#asterisk fstd_ (~fstd@unaffiliated/fisted)
01:00.04*** join/#asterisk drathir (~kamiljk8@unaffiliated/drathir)
01:22.52*** join/#asterisk Dovid (~dovid@ool-4573a525.dyn.optonline.net)
02:20.17*** join/#asterisk genpaku (~genpaku@107.191.100.185)
03:08.41*** join/#asterisk cryptic (~cryptic@67-8-35-31.res.bhn.net)
04:40.26*** join/#asterisk vstemen (~vince@ip68-227-96-101.ok.ok.cox.net)
05:41.12*** join/#asterisk UncleKiwi (~UncleKiwi@unaffiliated/unclekiwi)
05:42.15UncleKiwihi there I am attempting to do a xfer using *2 after recieving a call that was dialed with t
05:42.26*** join/#asterisk jetlag (~jetlag@c-71-226-222-56.hsd1.nj.comcast.net)
05:42.37UncleKiwibut Asterisk does not seem to recieve the *2
05:42.41UncleKiwior #
05:50.22*** join/#asterisk gerhard7 (~gerhard7@ip5657ee30.direct-adsl.nl)
05:54.32*** join/#asterisk bof22 (~Thunderbi@185.13.183.107)
05:59.26UncleKiwisolved
06:04.52*** join/#asterisk vince1 (~vince@ip68-227-96-101.ok.ok.cox.net)
06:23.17*** join/#asterisk detha (~detha@unaffiliated/detha)
06:43.05*** join/#asterisk DanB (~DanB@clt-195.192.207.163.ip-anschluss.net)
06:49.22*** join/#asterisk jkroon (~jkroon@165.16.204.37)
07:03.47*** join/#asterisk jetlag (~jetlag@c-71-226-222-56.hsd1.nj.comcast.net)
07:08.45*** join/#asterisk evilman_work (~evilman@87.244.6.228)
07:17.38*** join/#asterisk hehol (~hehol@130.180.55.250)
07:19.08*** join/#asterisk tzafrir (~tzafrir@local.xorcom.com)
07:25.25*** join/#asterisk pchero_work (~pchero@109.70.54.56)
07:52.52*** join/#asterisk evil_gordita (robert@ip70-188-41-127.rn.hr.cox.net)
08:10.05*** join/#asterisk sekil (~sekil@nat-73.net011.net)
08:14.31*** join/#asterisk Haris (~haris@unaffiliated/haris)
08:14.32Harishello all
08:14.53HarisI asked last time. but forgot. what's the hangupcause 34 for on https://www.voip-info.org/wiki/view/Asterisk+variable+hangupcause ?
08:15.06Harisis this normal or abnormal behaviour from telco end ?
08:19.56*** join/#asterisk Eloy_ (~Eloy@5.149.168.66)
08:22.13[sID]503 (Service Unavailable)
08:24.41Hariscan this be attributed to TELCO end sip proxy issue ?
08:24.55Haris-- Executing [s@macro-dialout-trunk:24] NoOp("SIP/2006-0000023e", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 34") in new stack
08:25.37Harispasting 4 lines of log ?
08:26.09Harispasting more on pastebin
08:26.39Harishttps://pastebin.ca/3813291
08:27.36Haristhis usually happens when the remote sip proxy is being restarted after a config change or if this was asteris, then when config is being reloaded on asterisk, right ?
08:28.13*** join/#asterisk Chainsaw (~chainsaw@gentoo/developer/chainsaw)
08:32.36Samot-- Called SIP/TeleCard/03310421229
08:32.36Samot<PROTECTED>
08:32.36Samot<PROTECTED>
08:32.42SamotThat's pretty clear.
08:35.49*** join/#asterisk sh0ne (~sh0ne@77.105.41.173)
08:49.18[sID]Haris: This means that you have service unavailable.
09:06.29*** join/#asterisk TSM (259d25e2@gateway/web/freenode/ip.37.157.37.226)
09:09.16Haristhat's not my Q
09:09.22HarisMy Q was, what could be causing it ?
09:09.50Hariscould it be asterisk reload of config or an intermediate proxy going down for a reload of config or something alike or none of these ?
09:10.00SamotThe carrier is causing it.
09:10.02SamotYou should talk to them.
09:10.05Harisok
09:10.15Haristhey are killing me
09:13.05UncleKiwiHi Samot
09:14.54UncleKiwiwhen caller-A calls to Asterisk over FXO and then Asterisk Dials SIP/sip-provider/0123213123,20mt
09:15.49UncleKiwiat this point the person recieving the call at 0123213123 should be able to push # and do a transfer
09:16.16UncleKiwiI seem to be able to an exten and play tt-weasles
09:16.23UncleKiwibut not dial a sip extention
09:16.40UncleKiwithat calls a sip peer
09:16.58SamotRight.
09:17.13SamotBecause you don't allow them the right to use transfer.
09:17.14UncleKiwiwhen i try it says  Called SIP/1003\
09:17.49UncleKiwihow do you mean
09:17.51UncleKiwi?
09:17.55UncleKiwihow do i do that
09:18.03UncleKiwii have set this up in the past and it worked a charm
09:18.31SamotSIP/sip-provider/0123213123,20mt <-- right there.
09:18.39Samotm = music on hold to play until call is answered
09:18.45UncleKiwiyes
09:18.50UncleKiwiand then the t
09:19.06UncleKiwithe t allows the number that is called to initiate the xfer
09:19.09SamotYeah, t is for the called party
09:19.12SamotI was mixing those up.
09:19.14SamotNot T
09:19.14UncleKiwiexacto
09:19.17SamotOK
09:19.29UncleKiwithats what i want
09:19.30SamotSo do you have the # setup in features.conf?
09:19.35UncleKiwibut it wont work
09:19.40UncleKiwiyes
09:19.43UncleKiwii dot
09:19.45UncleKiwii do
09:20.10SamotSo show a call this happens on..
09:20.16SamotThe transfer not working.
09:20.30UncleKiwihow do i show you
09:20.35Samot~pb
09:20.35infobot[pastebin] a web-based service where you should paste anything over 3 lines so you don't flood the channel. Here are links to a few: http://pastebin.ca, http://channels.debian.net/paste, http://paste.lisp.org, http://bin.cakephp.org/; or install pastebinit with yum or aptitude.
09:21.17UncleKiwiso just ser verbose to high and send you the console output
09:23.49SamotYes
09:27.30Rac-onisnt that pretty much the answer to all questions in this channel?
09:28.53UncleKiwihttps://pastebin.com/7nHAZyvJ
09:29.20SamotRac-on: You mean, "Show us a debug?"
09:29.51Rac-onSamot: yes, crank up verbose, capture console output, put it in a pastebin
09:29.55Samot-- Blind transferring SIP/pstn2-0000001a to '803' (context default) priority 1
09:29.57Samot^^^
09:30.00SamotThat's why
09:30.06SamotThe transfer is happening..
09:30.34UncleKiwiwow that was fast
09:30.41UncleKiwiplease explain
09:30.46Samot<PROTECTED>
09:30.46Samot<PROTECTED>
09:30.46Samot<PROTECTED>
09:30.51SamotThat's all I can tell you
09:31.00SamotYou decided not to show the entire call
09:31.22Samot== Spawn extension (default, 803, 2) exited non-zero on 'SIP/pstn2-0000001a'
09:31.26UncleKiwithat was all there was
09:31.40Samot^^^ it exited at priority 2 in the context on that extension.
09:32.21SamotRac-on: Yeah, it's crazy to want to see debugs of issues so you know exactly what is going on.
09:32.24UncleKiwiwhy did it exit
09:32.28SamotI don't know.
09:32.45SamotLook at your default context at priority 2 of the 803 extension.
09:32.54Rac-onSamot: we should put it up as a welcome message for first-joiners, would save a lot of time ;
09:33.55UncleKiwiwere you picked on at school Rac-on ?
09:34.49Rac-oncuddles UncleKiwi.
09:34.58UncleKiwiahaha
09:38.06UncleKiwisame => n,Dial(SIP/rena,90)
09:38.23UncleKiwithat would be priority 2
09:39.19SamotWhat is priority 1?
09:40.07UncleKiwiexten => _803!,1,Set(CDR(newdate)=${STRFTIME(${EPOCH},,%d/%m/%y %H:%M:%Si)})
09:40.24UncleKiwiits some stuff i need for call logging
09:41.09Samot_803! <-- Why do you need that?
09:41.15SamotIsn't the extension being dialed 803?
09:41.25UncleKiwiyes
09:41.37SamotOK
09:41.41UncleKiwiis the ! a problem
09:41.42Samotso is the 803 device registered?
09:41.49UncleKiwiyes its is registered
09:41.56SamotI don't know why you need to have a pattern match for it.
09:41.58UncleKiwiit rings
09:41.59SamotThat's all.
09:42.00Rac-onis the 'rena' peer registered?
09:42.02UncleKiwiit workings
09:42.08UncleKiwiworks
09:42.11UncleKiwiyes
09:42.14SamotSo what is the actual issue?
09:42.24SamotYou said the transfer wasn't working.
09:42.25SamotIt is.
09:42.29SamotSo what is the issue?
09:42.50UncleKiwifor this blind transfer procedure it will not ring
09:43.12UncleKiwias the recipient of the caller-A
09:43.24UncleKiwigiven in the example
09:43.26Samot-- Called SIP/rena
09:43.28Rac-ona sip debug or tcpdump might help. it fails when calling the rena peer
09:43.30Samot^^^ So when it does that
09:43.34SamotThe phone doesn't ring?
09:43.53SamotYeah, need a SIP debug
09:44.06UncleKiwiwhen i try blind transfer to it  in the given example
09:44.15UncleKiwibut if ia call it internally it will work
09:56.58drmessanoShow us the body
09:57.26drmessanoNo Corpse, no autopsy
09:57.41Samot5:43:52 AM <Samot> Yeah, need a SIP debug
10:00.29*** join/#asterisk sekil (~sekil@109-93-199-144.static.isp.telekom.rs)
10:00.53UncleKiwii tired and feeling defeated
10:01.05UncleKiwimaybe i should leave it until tomorrow
10:01.07SamotTried what?
10:01.11SamotWhat did you try?
10:01.33UncleKiwisorry im tired
10:01.38UncleKiwinot tried
10:01.39UncleKiwiahaha
10:02.13SamotI got up at like 4:30am
10:02.18UncleKiwiwow
10:02.38UncleKiwiyeah i have been working like 17 hours days
10:03.00UncleKiwiprobably should take a break
10:03.12SamotWell you pinged me at like 5am
10:03.13Samotfor this
10:03.23UncleKiwiwow sorry
10:03.30UncleKiwiok i'll make an effort
10:03.35SamotSo now I'm telling you I need a SIP debug.
10:03.36SamotYeah
10:03.40UncleKiwiits like 10am here
10:03.45UncleKiwi`0pm here
10:03.46SamotDon't ping someone personally and then go "Yeah, I can't do this"
10:03.48UncleKiwi10
10:04.00SamotSIP debug
10:04.06UncleKiwiSamot you were talking with others so you were awake already
10:04.06SamotMake the transfer attempt
10:04.42UncleKiwisure
10:16.40SamotCome on.
10:16.46SamotThis takes like 5 minutes.
10:18.00UncleKiwii think i need to leave it there is too many public ip's and stuff in the debugs
10:18.08UncleKiwii can see SIP/2.0 400 Bad Request
10:18.16SamotThen forget it.
10:18.22SamotYou pinged me.
10:18.29SamotAnd I've had to fight to get this stuff.
10:18.37SamotSo yeah, figure it out.
10:18.45UncleKiwicheers
10:34.40*** join/#asterisk sekil (~sekil@109-93-199-144.static.isp.telekom.rs)
10:38.39*** join/#asterisk sekil (~sekil@109-93-199-144.static.isp.telekom.rs)
10:38.48*** join/#asterisk zapata (~zapata@2a02:b18:581:10:1f0:56cd:f053:b6da)
11:03.03*** join/#asterisk genpaku (~genpaku@107.191.100.185)
11:20.41*** join/#asterisk sekil (~sekil@nat-73.net011.net)
11:25.39*** join/#asterisk thiagoc (~thiagoc@unaffiliated/thiagoc)
11:39.41*** join/#asterisk Rini (uid196547@gateway/web/irccloud.com/x-jouzffrsuoafyvbv)
11:45.56*** join/#asterisk scgm11_ (~scgm11@r186-50-185-64.dialup.adsl.anteldata.net.uy)
12:00.17*** join/#asterisk Dovid (~dovid@ool-4573a525.dyn.optonline.net)
12:20.10*** join/#asterisk bof22 (~Thunderbi@185.13.183.107)
12:31.04*** join/#asterisk scgm11_ (~scgm11@r186-50-185-64.dialup.adsl.anteldata.net.uy)
12:54.08*** join/#asterisk [TK]D-Fender (~joe@216.191.106.165)
12:57.37*** join/#asterisk mahlon (~mahlon@martini.nu)
13:12.52*** join/#asterisk tuxian (~tuxian@194.12.3.78)
13:17.09*** join/#asterisk scgm11_ (~scgm11@r186-50-185-64.dialup.adsl.anteldata.net.uy)
13:24.18*** join/#asterisk brad_mssw (~brad@66.129.88.50)
13:25.28*** join/#asterisk scgm11_ (~scgm11@r186-49-44-133.dialup.adsl.anteldata.net.uy)
13:35.44*** join/#asterisk skywayskase (~skywayska@67.139.42.219)
13:43.32*** join/#asterisk smkelly (~smkelly@mykonos.smkelly.org)
13:44.49*** join/#asterisk overyander (~jeff@12.49.160.131)
13:51.06*** join/#asterisk skywayskase (~skywayska@67.139.42.219)
13:53.04*** join/#asterisk skywayskase (~skywayska@67.139.42.219)
13:54.43*** join/#asterisk rmudgett (rmudgett@nat/digium/x-dykiozqnpqmrdowt)
13:54.43*** mode/#asterisk [+o rmudgett] by ChanServ
14:07.13*** join/#asterisk u0m3 (~u0m3@86.120.97.11)
14:12.53*** join/#asterisk newtonr (~newtonr@173-21-147-197.client.mchsi.com)
14:12.53*** mode/#asterisk [+o newtonr] by ChanServ
14:18.11*** join/#asterisk kharwell (kharwell@nat/digium/x-sswsoyhzezwhbaiv)
14:18.11*** mode/#asterisk [+o kharwell] by ChanServ
14:30.55*** join/#asterisk scgm11_ (~scgm11@r186-52-149-239.dialup.adsl.anteldata.net.uy)
14:36.26*** join/#asterisk twanny796 (~user@62.173.4.85)
14:36.39*** join/#asterisk StucKman (~mdione@195.200.189.206)
14:36.47twanny796please remind how to restrict an extesion to call internal only?
14:36.58twanny796from the freepbx webgui?
14:37.09StucKmanis there any way to correlate the 4 channels of a call that has this looks?
14:37.30[TK]D-Fender~freepbx
14:37.30infobot[~freepbx] FreePBX is unable to be supported here. It is made up of complex dialplans and scripts which can't be easily supported by people who aren't deeply involved. Try joining #freepbx and asking there
14:37.33[TK]D-Fendertwanny796, ^^^
14:37.38StucKmanexten #1 -> SIP server -> trunk -> SIP server -> exten #2
14:37.42StucKmanin the logs, I mean
14:38.03StucKmanI notice that all Call-IDs, tags, Tos, Contact, etc change
14:38.25[TK]D-Fendercall ID on the call between your servers should map
14:38.48twanny796[TK]D-Fender: ok, long time since we spoke!
14:39.02twanny796bye
14:39.34StucKman[TK]D-Fender: I see 4 invites in the log and all have different Call-ID headers
14:40.27StucKmanI'm calling from one extensio to one external number wich ends up in another extension
14:40.28*** join/#asterisk saint_ (~saint_@unaffiliated/saint-/x-0540772)
14:43.33[TK]D-Fenderthose are 3 separate calls
14:43.42[TK]D-Fenderthe INNER set should match
14:43.52[TK]D-Fenderbecause the invite between your server is wha it is
14:43.57[TK]D-Fenderthose callid's match
14:52.24*** join/#asterisk skywayskase (~skywayska@67.139.42.219)
14:52.34StucKmanhttp://linkode.org/kzLlLpCm9uejZ4R1T8pcz7
14:52.55StucKmanthose are the 4 invites
14:53.31StucKmannow, there is some terminologie I don't know, so I'm not sure this should be explained
14:54.02StucKmantreu, we're using a third party solution, but I'm not sure if this is due to that solution or to how A* works
14:55.19[TK]D-FenderINVITE sip:XXXXXXXX@trunk.phoneprovider.com:5060 SIP/2.0
14:55.37[TK]D-Fenderif you;'re going through an ITSP then you're dead in the water most likely
14:55.42StucKmanthe second invite, yes
14:55.45[TK]D-Fenderyour description did NOT mention that
14:55.49StucKmanITSP?
14:55.54[TK]D-FenderThen you have no end -to-end
14:55.58StucKmanI have no idea what are those
14:56.00[TK]D-Fenderthey are in the middle along with the PSTN
14:56.03igcewielingStucKman: expect at least 2 invites.  The first will be rejected.
14:56.09igcewieling~itsp
14:56.09infobot[~itsp] An ITSP is an Internet Telephony Service Provider (or VoIP telephone company). They allow you to either SEND calls to the PSTN (this is called termination), RECEIVE calls from the PSTN (called origination), or both. Some offer fixed rates, others $/min. Enter ~itsplist-us (USA) or ~itsplist-ca (Canada) for a listing of popular ITSPs.
14:56.13[TK]D-FenderPHONE PROVIDER
14:56.17igcewielingStucKman: sounds like you need to read the Asterisk book.
14:56.28StucKmanugh
14:57.03StucKmanok, but at least it's ok that there are two invites before I reach the ITSP?
14:57.25StucKmanI would say my SIP server is NAT'ing the calls *I have networking background)
14:58.18[TK]D-FenderStucKman> I would say my SIP server is NAT'ing the calls *I have networking background) <- doesn't say anything
14:58.42[TK]D-Fender<StucKman> ok, but at least it's ok that there are two invites before I reach the ITSP? <- do you see the calls?
14:58.52[TK]D-Fenderphone calls * = 1 invite
14:59.01[TK]D-Fender* calls provider = 1 invite
14:59.13[TK]D-FenderProvider goes through pstn to othe provider
14:59.24[TK]D-Fenderother provider calls * #2 = 1 invite
14:59.28igcewieling[TK]D-Fender: what about the initial rejected invite which includes a nonce?
14:59.36StucKmanwell, I'm calling a number in the same system
14:59.37[TK]D-Fender* 2 calls other local SIP peer = 1 invite
14:59.39StucKmanlet me explain
14:59.51StucKmani have my internal number anda external one
14:59.51[TK]D-Fenderyou have a provider in the middle
15:00.01*** part/#asterisk igcewieling (~ewieling@speedy-02.nyigc.net)
15:00.05StucKmanI'm calling another external number that's tied to a nother internal one
15:00.08[TK]D-Fender<StucKman> i have my internal number anda external one <- "number" doesn't mean anything
15:00.11[TK]D-FenderWHERE you send it does
15:00.12StucKmannot sure I'm clear :(
15:00.51[TK]D-FenderWHERE are you sending the call?  if you are calling a PHONE PROVIDER and calling out to a real-world numebr then you are done.  You have no call ID to trace
15:01.03[TK]D-FenderThey are in the middle and that information is lost
15:01.09StucKmanso the traffic goes first to my SIP server, then to the ITSP, which comes back to my SIP server and finally the destination
15:01.42StucKman[TK]D-Fender: but I'm also loosing info between the invites received and sent from my SIP server
15:02.05StucKmanboth to the ITSP and to the final extension
15:02.06[TK]D-Fenderhuh?
15:02.23StucKmanand I'm not even sure itś what A* normally does or this solution is just crazy
15:02.36[TK]D-FenderHow do you LOSE this?
15:02.39[TK]D-FenderYou call your provider
15:02.43[TK]D-Fenderthat is a SIP call
15:02.46[TK]D-Fenderthe packets HAPPEN
15:02.50StucKmanyes
15:02.52[TK]D-FenderWhat is there to LOSE?
15:02.58StucKmaninfo
15:03.02[TK]D-FenderYour description is getting WORSE
15:03.07StucKmanyes, I know, sorry
15:03.20StucKmanIn my head is more or less clear
15:03.30[TK]D-FenderGo get a coffee and collect your thoughts
15:03.36[TK]D-Fenderbecause this is heading downhill....
15:03.44StucKmanok, step back
15:03.50StucKmandid you see the 4 invites?
15:04.09StucKmanhmm, I can add some info
15:06.24StucKmanI'm making a mess by masking everything
15:06.42StucKmanis it OK to put the invites as they are, with IPs and all?
15:09.00[TK]D-Fenderyes
15:09.10[TK]D-Fenderset an expiry of 5 mins on it or whatever
15:10.17StucKmanhttps://paste.debian.net/932726/
15:11.44StucKmanfirst invite is from client#1 to SIP server, 2nd from SIP server to ITSP, 3rd from ITSP back to my SIP server, because the number corresponds back to me, and 4th goes to client #2
15:11.48StucKmando I make sense now?
15:12.00[TK]D-FenderYou're going through a provider
15:12.10StucKmanyes,
15:12.15[TK]D-Fenderyou are not directly calling the other serve
15:12.25[TK]D-Fenderyou are nOT going to see the same ID's on both ends
15:12.30[TK]D-Fenderthat is GONE
15:12.31StucKmanthat I have no idea what that means
15:12.37StucKmanok
15:13.04[TK]D-Fender<PROTECTED>
15:13.11[TK]D-FenderWhat is your probelm understnading this?
15:13.23[TK]D-Fenderthere is NO link between the two at that point
15:13.32[TK]D-Fenderthe packet doesn't go from server A to server B.
15:13.39[TK]D-Fenderthose are 2 1000000% separate things
15:13.46StucKmanbut is it normal that I also lose correlation between the 1st and 2nd INVITEs on one hand, and 3rd and 4th on the other?
15:13.56[TK]D-Fenderhuh?
15:14.09[TK]D-FenderEVERY call on * is a SEPARATE call
15:14.15[TK]D-Fender~b2bua
15:14.16infobot[b2bua] a Back 2 Back User Agent. Additional information is available on wikipedia: http://en.wikipedia.org/wiki/Back-to-back_user_agent
15:14.17[TK]D-Fender^
15:14.20[TK]D-Fenderit is NOT a proxy
15:14.24StucKmanso I basically have 4 calls there?
15:14.36[TK]D-Fenderyour CDR can track that a channel was BRIDGED but that does NOT carry in the packets
15:14.53StucKmanmy problem is not the packets
15:14.57StucKmanthe call works fine
15:15.02[TK]D-FenderSo you can track that those 2 calls on the first side were bridged....
15:15.07StucKmanI'm just trying to make sense of the logs
15:15.14StucKmanyes, how?
15:15.18[TK]D-Fenderbut you're not going to tie the REMOTE end to this
15:15.32StucKmanthat I kinda can live without
15:15.41[TK]D-FenderCEL, Bridge channel variables.
15:15.44[TK]D-Fenderetc
15:15.55[TK]D-FenderLOOK at a call while bridged
15:16.09StucKmandoes that appear in the full logs?
15:16.13[TK]D-Fenderyou can run macros before that happens as well to record them somewhere
15:16.22[TK]D-FenderYou see what's in the logs
15:16.25[TK]D-Fenderyou shouldn't be asking
15:16.44[TK]D-FenderX answered Y <- that shows CHANNELS answering, but not SIP ID's
15:16.50StucKmanwell, I'm asing becasuse I don't know
15:16.54[TK]D-FenderYou'd clearly have to parse a TON of shit to do it that way
15:17.00[TK]D-Fenderso depends what you are trying to track
15:17.01StucKmanyeap
15:18.28StucKmanok, let's back a little
15:18.45StucKmanwhat is this called? C-000711b0
15:19.03*** join/#asterisk zapata (~zapata@2a02:b18:581:10:1f0:56cd:f053:b6da)
15:19.05SamotChannel ID
15:19.07[TK]D-Fenderright now it's a bunch of letters
15:19.10StucKmanok
15:19.12Samotwiki.asterisk.org
15:19.30[TK]D-Fenderbecause you pasted a useless little chunk with nothing providing context
15:19.33StucKmanso I got this two channels, from client#1 to SIP and from SIP to ITSP
15:19.40SamotRight.
15:19.54StucKmana) when are the channels bridged?
15:19.55SamotPhone -> PBX and PBX -> Provider
15:20.04SamotWhen the call is answered.
15:20.08[TK]D-Fender<StucKman> a) when are the channels bridged? <- when it ANSWERS
15:20.16StucKmanand b) what does suck thing look like in the logs?
15:20.36[TK]D-Fender<[TK]D-Fender> X answered Y <- that shows CHANNELS answering, but not SIP ID's
15:20.40StucKman[TK]D-Fender: don't be pedantic, please
15:20.52SamotWhat are you trying to get again?
15:21.05StucKmantrying to follow a full call in the full logs
15:21.28SamotFirst, you can't.
15:21.37SamotYou will see how Asterisk handles the call..
15:21.46SamotYou'll see the call flow through the dialplan
15:21.48StucKmanyes, I will see only my side, I know
15:22.13SamotAsterisk doesn't log it ALL
15:22.19StucKmanput that way, I have two full calls in those 4 INVITEs
15:22.21SamotSo again, no you can't.
15:22.32StucKmanwell, it logs a lot
15:22.36SamotYou would need to run debugs to see this type of information.
15:22.39SamotYes.
15:22.41StucKmannot only the dialplan, but the sip messages too
15:22.46SamotIt logs what is happening to call in the dialplan
15:22.51SamotAnd some sip stuff
15:22.55StucKmanyeap
15:22.57SamotBut if you want to see all the dialog
15:23.01Samotand SIP messages..
15:23.03StucKmanbut not bridging?
15:23.08SamotYou need to have the sip debug enabled.
15:23.10SamotYes.
15:23.14SamotIt logs they are bridged.
15:23.17[TK]D-Fender<[TK]D-Fender> <[TK]D-Fender> X answered Y <- that shows CHANNELS answering, but not SIP ID's
15:23.20SamotSays so
15:23.21[TK]D-Fender3 TIME NOWS
15:23.29SamotAsterisk is a SIP router
15:23.31SamotOr a proxy
15:23.37[TK]D-FenderNEITHER
15:23.41[TK]D-Fender~b2bua
15:23.41infobotb2bua is probably a Back 2 Back User Agent. Additional information is available on wikipedia: http://en.wikipedia.org/wiki/Back-to-back_user_agent
15:23.43Samoter
15:23.45[TK]D-Fender^
15:23.45StucKman[TK]D-Fender: sorry, it was not making sense, let me check
15:23.48Samotisn't*
15:23.54StucKmanno tmaking sense to me*
15:24.15[TK]D-FenderSIP/provider-12345 answered SIP/sometwit-67890
15:24.21[TK]D-Fender^^^^^
15:24.31[TK]D-FenderIt TELLS you 2 channels just bridged
15:24.51StucKmanaha, and it's prefixed with one of the channels IDs
15:25.00StucKmancool, that helps a lot
15:25.15Samot[2017-05-16 11:24:54] VERBOSE[12433][C-0003ce48] bridge_channel.c: Channel SIP/sbc-cgw01-trunk-00057fc7 joined 'simple_bridge' basic-bridge <0c3082f0-d692-443c-83b1-753b7dc4abcf>
15:25.15Samot[2017-05-16 11:24:54] VERBOSE[12432][C-0003ce48] bridge_channel.c: Channel SIP/7007002038-00057fc6 joined 'simple_bridge' basic-bridge <0c3082f0-d692-443c-83b1-753b7dc4abcf>
15:25.29SamotIt's pretty clear in the logs when channels gets bridged.
15:25.53StucKmancool!
15:26.00SamotDid you not look?
15:26.08SamotIt would have been right there...
15:27.13StucKmanSamot: I have 1600+ lines of logs just for this call, it's dense
15:27.27StucKmanI have 7 pages printed
15:27.58[TK]D-Fender1600 line from the INVITE out to the ANSWER?
15:28.24SamotThat's impossible.
15:28.27StucKman1600+ lines of painfully extracted lines from the full log
15:29.13SamotThen that means you are log a bunch of garbage
15:29.19Samots/log/logging/
15:29.34[TK]D-Fenderor maybe a very busy server
15:29.44Samot1600+ lines for one call?
15:30.05SamotThat's a lot of dialplan for a single call from an endpoint to the ITSP trunk
15:30.06StucKmanwell, for two, really, the outgoing and the incoming
15:30.25SamotPhone -> PBX and PBX -> ITSP
15:30.33SamotShould not require 1600+ lines
15:30.56SamotThat's "here are my digits, oh they match and dial this trunk peer"
15:31.12StucKmannot here
15:31.16StucKmanwelcome to my life
15:31.30StucKmanthe dial plan is motly done by the third party
15:31.50StucKmanand we have it hooked to our CRM
15:31.52[TK]D-FenderDialplan doesn't matter
15:31.58[TK]D-Fender<[TK]D-Fender> 1600 line from the INVITE out to the ANSWER?
15:32.20[TK]D-Fenderyou only had to look from the DIAL issued till the ANSWER
15:32.55*** join/#asterisk hdon (~hdon@68.110.137.138)
15:33.29StucKmanI'm trying to automatize the extraction of the logs related to a call
15:33.40StucKmanin totall should be like 700, 800 lines
15:52.02*** join/#asterisk bof23 (~Thunderbi@185.13.183.107)
15:55.36*** join/#asterisk sawgood (~sawgood@unaffiliated/sawgood)
16:00.53mubif you have such an active asterisk server, you should have a small dummy server with redundant configuration that you can spin up for testing things like this
16:01.23mubimo it's terrible trying to debug asterisk issues on a server where everyone is placing calls
16:02.21mubs/debug/troubleshoot/
16:13.25*** join/#asterisk Kobaz (~kobaz@its.kobaz.net)
16:13.35Kobazsoooo, 35 active channels and 65% cpu
16:13.38Kobazsomething's not quite right
16:26.31Kobazdo_monitor is the highest contender
16:28.43*** join/#asterisk igcewieling (~ewieling@speedy-02.nyigc.net)
16:47.04StucKmanok, that was educating
16:57.15*** join/#asterisk skywayskase (~skywayska@67.139.42.219)
17:36.01*** join/#asterisk skywayskase (~skywayska@67.139.42.219)
17:51.26*** join/#asterisk skywayskase (~skywayska@67.139.42.219)
18:08.26*** join/#asterisk tzafrir (~tzafrir@bzq-179-40-170.cust.bezeqint.net)
18:09.08*** join/#asterisk malcolmd (malcolmd@pdpc/sponsor/digium/malcolmd)
18:09.08*** mode/#asterisk [+o malcolmd] by ChanServ
18:12.52*** join/#asterisk Janos (~Janos@190.171.120.15)
18:14.40*** join/#asterisk sekil (~sekil@cable-89-216-223-60.dynamic.sbb.rs)
18:16.11*** join/#asterisk pchero (~pchero@109.70.54.56)
18:39.00*** join/#asterisk skywayskase (~skywayska@67.139.42.219)
18:41.49*** join/#asterisk skywayskase (~skywayska@67.139.42.219)
18:59.53*** join/#asterisk skywayskase (~skywayska@67.139.42.219)
19:02.19*** join/#asterisk Janos (~Janos@190.171.120.15)
19:02.50Janoshey there, got an interesting scenario I'm pretty sure it's possible but no idea how to handle
19:05.16*** join/#asterisk skywayskase (~skywayska@67.139.42.219)
19:05.20Janosgot two asterisk A and B sending calls to each other, behind those asterisks there are sip devices with 3 digit extensions like XXX, in order to overcome this extension clash prefixes are used so that when A sees a patter 3XXX it sends the call to be and B removes the 3 and sends the call to the correct device. B does the same for the 6XXX pattern
19:07.04*** join/#asterisk skywayskase (~skywayska@67.139.42.219)
19:08.59Janoseverything worked apparently, and a call from 240@B to 223@A works, but when 305@B tries to call 223@A it does not
19:11.16*** join/#asterisk Oatmeal (~Suzeanne@c-68-45-30-44.hsd1.in.comcast.net)
19:13.09*** join/#asterisk miralin (~Thunderbi@85.115.248.226)
19:19.59*** join/#asterisk miralin (~Thunderbi@195.209.246.194)
19:20.47SamotJanos: So you dialed 6305?
19:20.55Janoscorrect
19:21.03JanosI have tracked down the issue and the problem presents itself when the device exists on both A and B
19:21.06SamotWhat do the logs show?
19:21.25Janosand seems to be related to peer selection
19:21.26SamotWhat do you mean it exists on A and B?
19:21.37SamotYou have the same device registered on both systems?
19:23.04Janosno two different devices with the same name
19:23.25Janosthis is the significant log line
19:23.26*** join/#asterisk matt_ (~matt@ccpc-buzzer.bath.ac.uk)
19:26.01Janosthe call that does work shows this
19:26.02Janos[May 16 12:02:27] VERBOSE[25444] chan_sip.c: Found peer 'dm-cac' for '240' from 100.10.35.2:5060
19:26.21Janosand the one that does shows this
19:26.23Janos[May 16 11:57:43] VERBOSE[25444] chan_sip.c: Found peer '305' for '305' from 100.10.35.2:5060
19:27.01Janosin the working scenario, the peer is correctly identified dm-cac
19:27.09Janoswhich is asterisk B
19:27.29Janosin the second scenario, the peer identified by asterisk A is 305 instead which is a phone
19:28.02*** join/#asterisk matrix1233 (~matrix123@41.230.60.99)
19:28.19Janosso to the first call, config applied is the one for peer dm-cac, but in the second call the config applied is the one for peer 305
19:28.26Janosall this in asterisk A
19:29.02Janosin the end asterisk A respond with a 401 to asterisk B for the call that does not work, because the config for peer 305 requires authentication
19:30.03JanosI guess the question in the end is, how can I tell asterisk A that everything that comes from ip 100.10.35.2 should be tied to peer dm-cac, no matter what from header comes in the SIP protocol
19:32.02Janosthe sip debugging for the call that works looks like this
19:32.11SamotWhy are you authing INVITEs between the two PBX systems?
19:33.46Janosthat's the thing, I'm not, there is no auth between them and that's how to first call works
19:34.37Janosbut on the second one, asterisk is match the calling peer with the FROM header (I think) instead of the IP where the call is coming from
19:38.14*** join/#asterisk Martin` (~martin@shell.ipv6.octocore.net)
19:41.11Janosin the call that does work I get the following sip debug (among other things)
19:41.14JanosINVITE sip:6223@A SIP/2.0
19:41.58JanosFrom: "Jhon Doe" <sip:240@B>;tag=HASH
19:42.08Samot~pb
19:42.08infobotfrom memory, pastebin is a web-based service where you should paste anything over 3 lines so you don't flood the channel. Here are links to a few: http://pastebin.ca, http://channels.debian.net/paste, http://paste.lisp.org, http://bin.cakephp.org/; or install pastebinit with yum or aptitude.
19:42.16SamotShow the whole thing, not just snippets of lines
19:42.26Janossure, one sec
19:46.24Janosthis is the sip debug for the working call
19:46.25Janoshttps://paste.debian.net/932766/
19:49.52Janosthis is the one for the not working call
19:49.54Janoshttp://paste.debian.net/932767/
19:51.05SamotFound peer '305' for '305' from 100.10.35.2:5060
19:51.12Janosyup that's the thing
19:51.12SamotTotally matched on the IP
19:51.36JanosFound peer 'dm-cac' for '240' from 100.10.35.2:5060
19:51.44SamotThe system may not like the fact it thinks it's calling itself.
19:54.31Janospeer B is called dm-cac in A, on the working call it match correctly to this peer, but on the non-working call it actually matches peer 305 which also exists in A but does not have the IP 100.10.35.2 but a 192.168.5.x
19:55.03SamotYou probably are going to have to handle those calls differently.
19:56.54JanosMy guess is that asterisk first tries to match the peer in sip.conf according to the SIP FROM header, in the non-working case From: "Jane Dow" <sip:305@100.10.35.2>;tag=as16a76bc8
19:57.12Janosand then if that does not work it tries to match by peer ip address
19:57.24Janosand that explains why it does not work and it's all good
19:58.24Janosbut the question is if it's possible to somehow force IP peer matching for these calls or any other idea actually :P
20:01.16Janoswell I guess I should have read the docs and save myself some debugging :P
20:01.16Janoshttps://github.com/asterisk/asterisk/blob/master/configs/samples/sip.conf.sample#L90
20:01.25Janosright there is what I just said
20:08.45*** join/#asterisk jkroon (~jkroon@165.16.204.163)
20:20.01*** join/#asterisk marlinc (~marlinc@1.0.0.127.13.204.167.185.in-addr.arpa)
20:20.58Janoswell looks that if I switch all my sip users from type=friend to type=peer problem would be solved
20:22.13*** join/#asterisk matrix1233 (~matrix123@41.230.60.99)
20:23.06Janosbut then it looks like I would loose the ability to ask for user authentication ... not good
20:24.04Janosjust one question remains, how does sip handle a call from user@example1.com to user@example2.com ... need to read up on sip I guess
20:28.04*** join/#asterisk tuxian (~tuxian@igilmour.plus.com)
20:39.34*** join/#asterisk jkroon (~jkroon@165.16.204.163)
20:42.16*** join/#asterisk pdugas (~retentive@c-73-82-30-193.hsd1.ga.comcast.net)
20:46.37*** join/#asterisk TSM2 (5aff361d@gateway/web/freenode/ip.90.255.54.29)
20:47.21TSM2is there a way to route DAHDI channels directly out to a remote trunk?
20:50.38malcolmdwhat kind of dahdi channels?
20:50.42malcolmdwhat kind of remote trunk?
20:54.09TSM2ISDN BRI or PRI, basically making * work like a TA
20:59.02malcolmdwell...if you're just cross-connecting channels, there's the dacs and dacsrbs channel definitions in /etc/dahdi/system.conf.  that doesn't do anything but cross-connect the channels.  there's no routing up into asterisk for call handling or number routing.  if you do bring them up into asterisk, then just put the groups of channels you care about into contexts in asterisk's dial plan that you then push to the Dial application that calls
20:59.02malcolmdout some other group of channels.
20:59.16malcolmdbut i'm probably not correctly understanding what you're wanting to do.
21:00.50TSM2PRI > dahdi > asterisk > sip trunk > asterisk > client
21:01.25SamotMatch the digits being passed by the PRI via DAHDI
21:01.33SamotDial() out the SIP trunk
21:03.00SamotPRI -> Asterisk then you tell it what to do.
21:03.01TSM2so using a custom extension for dial()
21:03.05malcolmd/etc/dahdi/system.conf (to configure dahdi at the card level) -> /etc/asterisk/chan_dahdi (to configure asterisk to use the dahdi hardware) + /etc/asterisk/pjsip.conf (to setup the sip trunk) + /etc/asterisk/extensions.conf (to tell asterisk how to process calls and what to dial) -> your client
21:03.13SamotIs this FreePBX?
21:03.17SamotIs so, wrong channel.
21:04.14SamotBecause you're going to get the right advice, in concept, but you're not going to get the right methods to do it.
21:04.31TSM2just wondering both ways, it seems it would be easier with a custom context as I dont think its easy to do from freepbx gui the way im thinking anywa
21:04.50SamotIt's even easier via the GUI.
21:05.07malcolmdah, sorry, i'm not familiar with using freepbx to accomplish such things.  Samot's right.  I can explain the concept at the Asterisk level, I can't explain what you might do in FreePBX.
21:05.29TSM2malcolmd: nps
21:05.44Samotmalcolmd: What he wants is the same process I gave him.
21:06.00SamotMatch the digits the PRI is sending over the DAHDI channel.
21:06.12SamotThen Dial() the SIP trunk peer.
21:07.23SamotIn FreePBX that's just making an Inbound Route with a destination set to the Trunk the call needs to go out.
21:07.30SamotDone.
21:08.20TSM2Samot: but dont you have to match by DID/CID on inbound route while I would want to match on DAHDI channel group
21:08.30Samotmalcolmd: In your defense he wasn't clear at all.
21:08.48SamotTSM2: It's pattern matching.
21:09.19SamotIf the PRI is going to send 4 digits to the PBX
21:09.36SamotYou still need an inbound route for those 4 digits to tell it where to go.
21:09.38TSM2or more
21:09.51SamotOK.
21:10.05SamotDigit length can be anything.
21:10.15SamotThe concept is still the same.
21:10.33SamotCalls from the PRI hit Asterisk.
21:10.35SamotPeriod.
21:10.44malcolmdw/ PRI, your groups should either be an individual PRI or the sum of all PRIs.  channel allocation by dialed number isn't normal use of a PRI.  so, you're really just matching based on dialed number, based on caller id, or based on group (a whole PRI or all PRIs that you put into a group).
21:10.45TSM2yup, hmm I was hoping I was just able to match the channel group but your way would work
21:10.46SamotYou have to tell Asterisk what to do with those calls.
21:12.02malcolmdyou can put a group into a context and have a pattern match on that context for whatever you want and send it to wherever you want.  i'm probably just confusing the issue because i'm not operating at the freepbx level, so i should probably keep my mouth shut.
21:12.06SamotEven with DAHDI Channel DIDs you need Inbound Routes.
21:12.11TSM2could another way be pushing the dahdi channels to a custom context then do stuff in there
21:12.40TSM2malcolmd: im not just looking at the fpbx level, i wanted to find out both ways
21:12.53SamotIt's the same concept.
21:13.13SamotMap the DAHDI Channels to the same DID
21:13.26SamotSo all the channels look to be coming from that DID
21:13.44Samoter to that DID, and route based on that
21:28.29*** join/#asterisk [TK]D-Fender (~joe@64.235.216.2)
21:31.54TSM2doing the DAHDI Channel map I would loose the real DID unfortunately, I need to play with some custom contexts and see what I can pass though a trunk
21:40.50[TK]D-FenderTSM2
21:40.50[TK]D-Fenderis there a way to route DAHDI channels directly out to a remote trunk? <- of course
22:32.13*** join/#asterisk saint_ (~saint_@unaffiliated/saint-/x-0540772)
23:00.03*** join/#asterisk forgotmynick (uid24625@gateway/web/irccloud.com/x-mqzajygstwdlyxlf)
23:17.48*** part/#asterisk kharwell (kharwell@nat/digium/x-sswsoyhzezwhbaiv)
23:32.04*** join/#asterisk matrix1233 (~matrix123@41.230.60.99)
23:51.24*** join/#asterisk Janos (~Janos@190.171.120.15)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.