IRC log for #asterisk on 20170623

00:14.53*** join/#asterisk Katty (uid62315@gateway/web/irccloud.com/x-xwmqjcstapovxvmb)
00:19.46*** join/#asterisk infobot (~infobot@rikers.org)
00:19.46*** topic/#asterisk is #asterisk The Open Source PBX and Telephony Platform (asterisk.org) -=- LTS: 13.16.0 (2017/05/30), 11.25.1 (2016/12/08), Standard: 14.5.0 (2017/05/30); 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:34.35*** join/#asterisk sawgood (~sawgood@unaffiliated/sawgood)
00:35.08sawgoodQuestion: is there way to set a [context] in sip.conf (so that) when SIP calls come in (the) FROM field is not used as part of the authentication?  example: Let anything be in the FROM field (instead) of requiring the "accountcode="?
00:36.12SamotThat would require the incoming SIP request to have a header for those.
00:36.25Samot"accountcode" is not a standard SIP header
00:38.57sawgoodproblem is: Cisco Call Manager is sending (different)"phone numbers" in the FROM field at times (and) most of the time they do not match the context or accountcode (and) Asterisk is sending them back a "404"
00:39.15SamotUhm.
00:39.18SamotSo?
00:39.21drmessanolol
00:39.25SamotThey are incoming calls
00:39.32sawgoodoutgoing, sir
00:39.51SamotNot if the Cisco CM is sending them to the PBX
00:40.06SamotOr do you have the Cisco CM as an "endpoint"?
00:40.26sawgoodCall Manager sends to an Asterisk SBC (for) outbound calls: and inside of Call Manager (the customer) has changed their "diversion header" and or something else (and) thus calls are not passing through the Asterisk SBC
00:40.37sawgoodCisco CM = customer site (their PBX)
00:40.43SamotFirst off
00:40.47SamotAsterisk != SBC
00:40.50SamotAt all.
00:40.51sawgood<PROTECTED>
00:41.14SamotFROM is how Auth is done.
00:41.16sawgoodAsterisk = B2BUA mode
00:41.31SamotAsterisk is not a SBC.
00:41.36SamotIt is a B2BUA
00:41.39drmessanoThats it's only mode
00:41.43sawgoodexcellent ....
00:41.43SamotThere is a difference.
00:41.52sawgoodthere is ... for sure ...
00:42.02drmessanoWhat is B2BUA mode?
00:42.05SamotThen why are you referring to it as a SBC
00:42.09SamotIn B2BUA mode?
00:42.14sawgoodbecause it is just cool to call it that!
00:42.20SamotOh dear god.
00:42.36sawgoodSBC in B2BUA mode running Asterisk
00:42.37sawgoodha!
00:42.39drmessanoSBC isn't a role
00:42.46drmessanoIt's a specific device
00:42.51SamotTry to sound like you have some knowledge of what you are doing.
00:43.12sawgoodoh ok ... if you say so ...
00:43.18SamotYou're asking two different questions in two channels and in both case the concepts are not understood.
00:43.42sawgoodI have different concerns (one is raw asterisk) and one is FPBX using Asterisk as a PBX
00:43.50sawgoodasterisk is also a PBX not just a B2BUA
00:43.58SamotUhm.
00:43.59SamotDude.
00:44.01drmessanoLOL
00:44.03sawgoodbut we can leave that alone for now ... no need to nit-pick
00:44.04SamotBy default a PBX is a B2BUA
00:44.10drmessanoAsterisk is ALWAYS a B2BUA
00:44.15drmessanoAsterisk is SOMETIMES a PBX
00:44.17drmessanoAsterisk is ALWAYS a B2BUA
00:44.22sawgoodno it is not, but  I'll let say that
00:44.26sawgoodright that is combo, drmessano
00:44.30sawgoodcool one!
00:45.04sawgoodso, as a B2BUA, Cisco Call Manager is now sending me various things in the FROM field (and) not what they were sending for many years
00:45.22SamotThen tell them to fix their shit.
00:45.24SamotYou are the provider.
00:45.24sawgoodI think changes in CM were made (and) the SIP invite has different FROM fields for calls
00:45.31SamotThey do things how you tell them.
00:45.36SamotNot the other way around.
00:45.43sawgoodSamot: you're the best, man!
00:46.14sawgoodAsterisk can also be a media-gateway (in with SIP out with PRI) for example
00:46.54drmessanoBut it's still a B2BUA
00:47.17sawgoodmabye it is a B2BUA with a "role" as a media-gateway
00:47.23sawgoodis that ok to say?
00:47.44drmessanoNo, you actually don't need to say half of that
00:48.31sawgoodI remember years back agruing B2BUA role with Patton and what not
00:48.52sawgoodthey had just released a true SBC appliance and I couldn't get it to work easliy in front of Asterisk
00:54.55sawgoodSo, when Call Manager sends the outbound call to the Asterisk B2BUA (what) is used in the [context] for Cisco Call Manger (to check) the FROM field with?   Is it the [context] name (and/or) the entry in the context labelled username (please) forgot I mentioned accountcode= (my bad)
00:55.54sawgoodin other words: does the [context] and username= need to match (and) what if they are differnt (which) is used against the FROM field (SIP invite)?
00:56.02SamotNo.
00:56.09SamotThe context is NOT used for AUTH
00:56.26SamotUser, IP, Port
00:56.33SamotThose are the three things used.
00:56.35sawgoodright-on ... a nice answer from you ... I feel like you are turning a corner
00:56.45sawgoodusername, IP, port
00:56.54SamotAre you trolling us?
00:56.57SamotSeriously?
00:57.12sawgoodno I have another thing to run by you if you don't mind
00:57.39sawgoodanother deal ... (give me) 2 min to pull up my (NoOp) statement and run that by you ...
00:58.29sawgoodBy the way: yesterday I was stuck in the field and could not get to my GUI front end for VoIP Monitor (and) look for the SIP invite (and) I had to use sip set debug IP to watch live
00:58.39sawgooddo you use VoIP Monitor or Homer?
01:00.23SamotNo.
01:00.28SamotNiether.
01:00.47drmessanoI use nmap
01:03.05sawgoodhard core, but how do you log SIP invites (in a database) to exaine later?
01:04.54sawgoodWhat about MOS?  What do you use (VoIP Monitor) does this nicely
01:07.18sawgooddumber question: do you think there is a way to have: sip set debug IP (not come out on the screen) but rather dump out to a syslog server (freeing) the screen up for showing only non debug traffic (normal) SIP flow?
01:08.04SamotIt's a live console command
01:08.11SamotIt outputs to the console.
01:10.41sawgoodAs a baseline/example:  I use this to show the outgoing CID on calls:   exten => _X.,2,NoOp(Outgoing CID is: ${CALLERID(number)})
01:10.46sawgoodexten => _X.,2,NoOp(Outgoing CID is: ${CALLERID(number)})
01:11.08sawgoodas a pipe dream: do you think I could to this:
01:11.39SamotAre you setting those variables?
01:12.25sawgoodyeah that is working now: but I wanted one that could "tell me" what RTP port is being used (as an example)
01:12.51sawgoodhere is what I mean: exten => _X.,2,NoOp(RTP port in use: $use the correct variable})
01:13.19iheartlinuxlol
01:13.38sawgoodactually that is a bad example since Asterisk puts that out during a call (normally)
01:13.47drmessanoDude
01:13.48iheartlinuxSamot: Are you trolling us?
01:14.03drmessanoHave you ever actually looked at SIP Debug?
01:14.11sawgoodlet me think of a better one (because) if I tell you what I want it to to (you'll get mad at me)
01:14.28SamotYes.
01:14.34SamotI'm trolling by helping.
01:15.10sawgoodI have what I want to do (wrote up) in a .PDF (and) I've offered a bounty but nobody really gets it ...
01:15.26sawgoodI've rasied the bounty to $200 I think at the last count
01:15.35drmessanoDid you try mansplaining it?
01:15.40drmessano$200?
01:15.42drmessanoROFLMAO
01:15.53drmessanoYou're not serious, right?
01:15.56iheartlinuxhahahaha
01:16.23sawgoodyes, but it is for the SIP stack (on a phone) showing DNID on the display (on an incoming call) ...
01:16.34drmessanosawgood: Add a zero
01:16.38drmessanoThen maybe
01:17.00sawgoodthe closest example I guess I could tell you (is) (With) FreePBX (they call it) Caller-ID Prefix
01:17.24sawgoodcaller-ID prefix is too 'weak' and there are line breaks at times, etc
01:17.46drmessanosawgood: Have you tried hiring someone?
01:17.54sawgoodI'll try to tell you here: but it goes by many names: some call it DNID and others call it RDNID
01:18.00iheartlinuxSamot: I was quoting you
01:18.29sawgoodI think most SIP IP phones are limited to the standard SIP stack for what happens with caller ID (on) a LCD display
01:19.03drmessanoWell, they are SIP
01:19.12iheartlinuxlol
01:19.13sawgoodfor incoming calls (when) the phone rings (and) you see (date, time, CNAM, and the phone number) .... that is what you get (as) long as you have CNAM from your provider
01:19.14drmessanoSo I guess they're limited to SIP
01:19.23drmessanoFucking dumb SIP phones only doing SIP
01:19.29drmessanoGOD DAMN THEM ALL
01:19.36iheartlinuxROFL
01:19.45SamotThose are just SIP headers.
01:19.48SamotThat they set.
01:19.49drmessanoThey need to support RFC69FFFFFFFFFFFFFFFF
01:20.14sawgoodthe SIP stack does not show DNID or RDNID (open source SIP) but other makers of PBXs have rebuild their own SIP process (and) thus they do cool things with inbound calls (for example) Allworx and Panasonic for example
01:20.20drmessanoSIP phones don't SIP hard enough
01:20.39drmessanoWait, what?
01:20.44SamotYeah.
01:22.22drmessanoThey also don't IPv7 very well
01:22.24sawgoodWhen you have an Allworx SIP phone (private SIP stack) ... and when you get an inbound call to the phone (either SIP, analog, PRI) on the LCD of the phone (along with ALL the normal CALLER ID details) you also get one more line (above them all) at the very top (which) shows the person answering the phone (which phone number was dialed to reach your phone)
01:22.47Samothah.
01:22.48SamotOK.
01:22.52drmessanoDude, what
01:23.01sawgoodlong-winded ... but that is the point
01:23.09SamotSo they are just sending caller id data to the phone
01:23.14sawgoodgetting DNID or RDNID (shown) on the pohne
01:23.14SamotIn the SIP message
01:23.15drmessano^
01:23.26SamotBecause it's their PBX
01:23.29SamotAnd their phones
01:23.40SamotSo they can kinda program them to look out for custom SIP headers
01:23.44SamotAnd do stuff with them.
01:23.45sawgoodwell, I have it pulled out via Asterisk (let) me show you what I mean ....
01:23.58drmessanoPlease, put it away
01:24.06drmessanoWe don't need to see that
01:24.08sawgoodlet me show you my (noOp) statment for this (how) asterisk "pulls" out  DNID for me
01:24.11drmessanoThink of the children
01:24.23drmessanoOh god, now he's gonna pull out
01:24.48drmessanocovers his SBC
01:24.58sawgoodexten => _X.,1,NoOp("DNID is: ${CALLERID(dnid)}, Caller Number is: ${CALLERID(num)}, CNAM is: ${CALLERID(name)}")
01:25.11SamotOK
01:25.15SamotThat's standard.
01:25.16drmessanoSo MessageSend that to the phone
01:25.17sawgoodso, Asterisk can do this ... show you the phone number dialed .... to reach the PBX
01:25.25drmessanoSIP Message
01:25.29drmessanoDone
01:25.36sawgoodI just want: the DNID to also make it to the SIP phone ....
01:25.41drmessanoSo MessageSend that to the phone
01:25.43drmessanoSIP Message
01:25.44drmessanoDone
01:26.01sawgooddrmessano: if that works ... collect the bounty from me?
01:26.15drmessanoI don't need it... I'm rich
01:26.17drmessanoBut go for it
01:26.50drmessanohttps://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_MessageSend
01:27.05sawgoodhmmm ... I do have a question ...
01:27.15SamotWhen do you not?
01:27.40sawgoodis MessageSend: part of Asterisk 11 or only 13?
01:27.54drmessano11
01:28.02drmessanoI pasted the most recent do
01:28.03drmessanoI pasted the most recent doc
01:28.10sawgoodreading ...
01:29.07sawgoodI guess the MessageSend: would need to be done/run on the PBX the SIP phone (Yealink) is registered to (and) not pushed to the PBX from the B2BUA in front of the PbX
02:06.38*** join/#asterisk iheartlinux (~jwpierce3@mail.trunkmasters.com)
02:59.42*** join/#asterisk ruben23 (~OpenDIAL@112.211.86.145)
03:06.49ruben23guys any help installed asterisk 11 and i get this when i tried to start it ---> asterisk: error while loading shared libraries: libasteriskssl.so.1: cannot open shared object file: No such file or directory
03:11.38ruben23any idea guys
03:16.20SamotSounds like openssl isn't installed where Asterisk would like it to be
03:16.40ruben23let me install
03:19.41ruben23openssl is already the newest version.
03:19.58ruben23Samot: openssl is already the newest version
03:20.12SamotI didn't say the version was wrong.
03:20.23SamotI said it was installed in a place Asterisk isn't looking
03:21.06ruben23<PROTECTED>
03:21.27*** join/#asterisk Dovid (~dovid@ool-4573a525.dyn.optonline.net)
04:01.04ruben23guys any help for this --->  installed asterisk 11 and i get this when i tried to start it ---> asterisk: error while loading shared libraries: libasteriskssl.so.1: cannot open shared object file: No such file or directory
04:01.13ruben23O:-)
04:04.53*** join/#asterisk Dovid (~dovid@ool-4573a525.dyn.optonline.net)
04:33.22*** join/#asterisk gerhard7 (~gerhard7@ip5657ee30.direct-adsl.nl)
04:50.26mrlorsungcu;-)
05:02.41*** join/#asterisk iheartlinux (~jwpierce3@mail.trunkmasters.com)
05:14.13*** join/#asterisk joako (~joako@opensuse/member/joak0)
05:23.05*** join/#asterisk joako (~joako@opensuse/member/joak0)
05:37.51*** part/#asterisk [TK]D-Fender (~joe@64.235.216.2)
07:14.41*** join/#asterisk pchero_work (~pchero@109.70.54.56)
07:37.38wdoekesruben23: did you run ldconfig after install?
07:38.54wdoekesif you do 'ldd $(which asterisk)' you should be able to see where it expects libasteriskssl.so
07:48.14*** join/#asterisk hehol (~hehol@gatekeeper.loca.net)
07:54.01*** join/#asterisk evil_gordita (robert@ip70-188-41-127.rn.hr.cox.net)
07:59.46*** join/#asterisk puzzled (~puzzled@2001:982:1097:1::1:3)
08:13.03*** join/#asterisk tzafrir (~tzafrir@bzq-179-40-170.cust.bezeqint.net)
08:49.22*** join/#asterisk Iamnacho (~Iamnacho@ip70-171-163-5.om.om.cox.net)
09:04.45*** join/#asterisk pawiecki (~pawiecki@89.238.53.32)
09:08.26*** join/#asterisk areski (~areski@177.red-83-35-140.dynamicip.rima-tde.net)
09:26.54*** join/#asterisk MacroMan (~MacroMan@host213-123-31-77.in-addr.btopenworld.com)
09:54.08*** join/#asterisk evilman_work (~evilman@87.244.6.228)
10:20.22*** join/#asterisk tzafrir (~tzafrir@bzq-179-40-170.cust.bezeqint.net)
10:28.34*** join/#asterisk tzafrir (~tzafrir@bzq-179-40-170.cust.bezeqint.net)
10:35.38*** join/#asterisk pawiecki__ (~pawiecki@89.238.53.32)
10:45.02*** join/#asterisk tzafrir (~tzafrir@bzq-179-40-170.cust.bezeqint.net)
10:50.26*** join/#asterisk tzafrir (~tzafrir@bzq-179-40-170.cust.bezeqint.net)
10:56.53*** join/#asterisk tzafrir (~tzafrir@bzq-179-40-170.cust.bezeqint.net)
11:03.55*** join/#asterisk tzafrir (~tzafrir@bzq-179-40-170.cust.bezeqint.net)
11:13.16*** join/#asterisk tzafrir (~tzafrir@bzq-179-40-170.cust.bezeqint.net)
11:14.58*** join/#asterisk pvoigt (~Linux@unaffiliated/pvoigt)
11:18.55*** join/#asterisk tzafrir (~tzafrir@bzq-179-40-170.cust.bezeqint.net)
11:54.57*** join/#asterisk boris_t (~boris_t@94.190.2.146)
12:02.28*** join/#asterisk luckman212 (~luckman21@unaffiliated/luckman212)
12:08.52*** join/#asterisk Martin` (~martin@shell.ipv6.octocore.net)
12:23.03*** join/#asterisk Jesterboxboy (~Thunderbi@80-109-194-26.cable.dynamic.surfer.at)
12:44.22*** join/#asterisk brad_mssw (~brad@66.129.88.50)
12:48.23*** join/#asterisk gerhard7 (~gerhard7@ip5657ee30.direct-adsl.nl)
13:43.32*** join/#asterisk marlinc_ (~marlinc@1.0.0.127.13.204.167.185.in-addr.arpa)
13:57.50*** join/#asterisk ThomasKeller (~Thomas@vmx.ethz.ch)
14:03.42*** part/#asterisk tnt (~tnt@osmocom/tnt)
14:03.56*** join/#asterisk cresl1n (Adium@asterisk/libpri-and-libss7-expert/Cresl1n)
14:03.56*** mode/#asterisk [+o cresl1n] by ChanServ
14:05.17*** join/#asterisk kharwell (kharwell@nat/digium/x-gsfihgdyuyxrsnio)
14:05.17*** mode/#asterisk [+o kharwell] by ChanServ
14:15.51*** join/#asterisk Dovid (~dovid@ool-4573a525.dyn.optonline.net)
14:16.19*** join/#asterisk LunaLovegood (~alice@75.98.139.193)
14:17.42LunaLovegoodIs there a way to make voicemail less verbose in the CLI without reducing the verbosity of the rest? At the moment, my console fills with lines like "<PJSIP/XUPdd3Flry-00000117> Playing 'digits/1.slin'" whenever someonw dials into their mailbox.
14:18.06LunaLovegoods/someonw/someone/
14:18.32LunaLovegoodsorry, didn't know it woul do that
14:45.39*** join/#asterisk rmudgett (rmudgett@nat/digium/x-pqdjfhobhfxwccig)
14:45.39*** mode/#asterisk [+o rmudgett] by ChanServ
14:58.23SamotLunaLovegood: That's standard for Asterisk when playing back recordings.
14:58.39SamotIt does that every time it playsback
14:59.50SamotIt's not limited to voicemail
15:02.14*** join/#asterisk craigify (~craigify@ip184-186-18-123.no.no.cox.net)
15:04.06*** join/#asterisk libardi (~libardi@179.159.11.133)
15:21.25*** join/#asterisk [TK]D-Fender (~joe@64.235.216.2)
15:39.31*** join/#asterisk CrummyGummy (~CrummyGum@41.161.9.27)
15:56.41*** join/#asterisk kharwell (kharwell@nat/digium/x-ofhullxvhspgduwa)
15:56.41*** mode/#asterisk [+o kharwell] by ChanServ
15:56.46*** part/#asterisk kharwell (kharwell@nat/digium/x-ofhullxvhspgduwa)
15:58.47*** join/#asterisk newtonr (RustyNewto@nat/digium/x-ygnzakhnyxchkskb)
15:58.48*** mode/#asterisk [+o newtonr] by ChanServ
16:01.11*** join/#asterisk kharwell (kharwell@nat/digium/x-oxkshoibgbdycokt)
16:01.11*** mode/#asterisk [+o kharwell] by ChanServ
16:07.08*** join/#asterisk Ice_Strike (~Ice_Strik@host213-120-117-212.in-addr.btopenworld.com)
16:16.02Ice_StrikeHey
16:34.01hdonhi all :) OT question: a guy at a SIP termination provider told me that on the PSTN your codecs may be changed dynamically based on your utilization. is that true? i kinda feel like he might be confusing the PSTN with their own service
16:37.48SamotDepends.
16:39.25Samot1) Termination providers use multiple carriers
16:39.40Samot2) They rarely deal with the media of the calls, just the signalling
16:40.03Samot3) They don't have their own "network" so to speak so all calls hit the PSTN for routing.
16:40.12Samot^ Sometimes.
16:55.04*** join/#asterisk salviadud (~ralfalfa@189-211-190-134.static.axtel.net)
17:11.41drmessanoThats why you pay for a decent provider
17:11.51drmessanoNot .0015 cents per minute
17:11.59drmessanoSomeone that uses high quality routes
17:11.59*** join/#asterisk Dovid (~dovid@ool-4573a525.dyn.optonline.net)
17:12.13*** join/#asterisk luckman212 (~luckman21@unaffiliated/luckman212)
17:18.56SamotIt's why I use Asterisk to handle media for that.
17:19.31SamotSo the end user can use a codec that *I* support and not have to worry about getting the wrong codec from the upstream
17:39.44*** join/#asterisk skywayskase (~skywayska@163.182.162.226)
17:48.30*** join/#asterisk gswain (uid91227@gateway/web/irccloud.com/x-dpidhydynyqsbchx)
17:53.06*** join/#asterisk skywayskase (~skywayska@163.182.162.226)
18:30.49*** join/#asterisk TandyUK2 (~admin@2a02:13a0:a006:1:b4f8:8786:220b:5d0f)
18:41.11*** join/#asterisk Martin` (~martin@shell.ipv6.octocore.net)
18:53.15*** join/#asterisk Dovid (~dovid@ool-4573a525.dyn.optonline.net)
19:03.55*** join/#asterisk Martin` (~martin@shell.ipv6.octocore.net)
19:17.56*** join/#asterisk ziz212 (~chatzilla@112.134.7.241)
19:32.16*** join/#asterisk marlinc_ (~marlinc@1.0.0.127.13.204.167.185.in-addr.arpa)
19:45.51*** join/#asterisk newtonr (~newtonr@99-104-129-136.lightspeed.brhmal.sbcglobal.net)
19:45.51*** mode/#asterisk [+o newtonr] by ChanServ
20:02.34*** join/#asterisk Oatmeal (~Suzeanne@c-68-45-30-44.hsd1.in.comcast.net)
20:56.30*** join/#asterisk robinak (~quassel@unaffilated/robink)
21:06.04*** join/#asterisk sawgood (~sawgood@unaffiliated/sawgood)
21:06.23sawgoodIf in a context inside of sip.conf:  (if I didn't want to use) username= (and) just allow "anything" to be accepted in the "FROM" field in the SIP invite (can) I do this?
21:06.53sawgoodNOTE: I have IP auth set in the same context (but) I wanted to drop the username= part (and) allow anything to be in the FRON field as accepted
21:22.01*** join/#asterisk clarjon1 (~clarjon1@unaffiliated/clarjon1)
21:31.11sawgoodif using IP auth (in a context) ... is username=  still required?
21:31.35sawgoodI ask because I have a need to allow "anything" in the SIP invite (FRON) to go though with outbound call attempts
21:31.39SamotContexts do not auth.
21:31.43SamotPeriod.
21:31.55SamotContexts are where the calls go _after_ auth
21:32.53sawgoodwhat are these two statements for then
21:32.57sawgooddeny=0.0.0.0/0.0.0.0
21:32.57sawgoodpermit=123.13.14.56/255.255.255.255
21:33.16sawgoodIP auth!
21:34.06*** join/#asterisk spicyramen (~Adium@104.132.1.77)
21:34.46SamotNo.
21:35.04SamotThose are to allow or deny IPs to access it..
21:35.07SamotNothing to do with auth
21:35.38Samotinsecure=
21:36.00Samotinsecure=invite,port <-- means don't auth on and/or with those things.
21:36.05SamotDon't auth invites
21:36.21SamotAnd don't use port when validating the IP
21:38.28sawgoodthank you!
21:38.37Samot5:32:57 PM <sawgood> deny=0.0.0.0/0.0.0.0
21:38.37Samot5:32:57 PM <sawgood> permit=123.13.14.56/255.255.255.255
21:38.37Samot^^ These only come into play with the host=dynamic
21:38.50sawgoodright ... right .... (totaly recall now)
21:43.08sawgoodAt times, Cisco Call Manager (now wants to) send "differnt" (ever changing) phone numbers in the FROM field (not jus the one they have been sending for a long time) ... they want what ever is sent in the FROM field to be accepted by Asterisk
21:43.34sawgoodThey call this their: Calling Party Transform Mask
21:43.40SamotOK.
21:43.58*** join/#asterisk clarjon1 (~clarjon1@unaffiliated/clarjon1)
21:44.12[TK]D-Fender<Samot> 5:32:57 PM <sawgood> permit=123.13.14.56/255.255.255.255 <- pointless
21:44.16SamotIf they've got a static IP then just don't auth their calls.
21:44.39[TK]D-Fenderthis is effectively the same restriction as SETTING the host explicitly except that you waste your time adding 2 more lines into your config for it
21:44.43SamotWith a user/pass..just use the IP.
21:46.06sawgoodhost= use the IP of the call manager box?
21:46.30SamotYes, like any other trunk/peer you would do this with
21:46.49sawgoodusername = and secret = (remove these two)
21:48.26sawgoodand if desired: add insecure=invite,port
21:48.36SamotNo.
21:48.40SamotRequired.
21:48.48sawgoodty!
21:48.56SamotThey are peering to you like you peer to a provider.
21:49.06SamotYou don't auth their incoming calls.
21:49.17sawgoodexactly ... very sharp!
21:50.57sawgoodone small point (which) for some reason (is escaping me) ... (dumb question) but why is host=IP (differnt) from permit=IP (if) they both are going to permit/deny on IP address?
21:51.16Samothost is the other end
21:51.30SamotIf you don't know what that IP is going to be all the time...
21:51.34Samothost=dynamic
21:51.42SamotWhen it's dynamic, it means ANY IP is allowed
21:51.51SamotIt auth's on the user/secret
21:52.01sawgoodhost=dynamic (also) allow SIP registration too (right)?
21:52.06SamotYes.
21:52.14SamotThat's the point
21:52.26SamotMost endpoints have a dynamic IP
21:52.31sawgoodwow permit= (is there) to confirm the user/pass (only) from that one IP
21:52.38SamotOr a range
21:52.43sawgoodor a range!
21:52.51SamotBut if you know the IP
21:53.04Samothost=IP
21:53.16SamotIt's not dynamic if it's always the same.
21:53.20sawgoodwhat if you have a host= IP addresss (but) you STILL want the other side to "register" (for other reasons)
21:53.31SamotThen you don't use insecure
21:53.49sawgoodnice!
21:53.59SamotAsterisk 101
21:58.02[TK]D-Fender<sawgood> what if you have a host= IP addresss (but) you STILL want the other side to "register" (for other reasons) <- you can't
21:58.11[TK]D-Fenderif you set a host you are not permitted to register
21:58.26sawgoodre-cap question (sorry for parroting) but if you have:  invite=insecure,port (which) then ignores the need to trade SIP invites for a (username,password) .... (why) then use host= with an IP address?
21:58.35SamotSorry, yeah not register..
21:58.37[TK]D-Fenderat which point if you have to in order to function then you'd use permit/deny to restrict while being dynamic
21:59.10sawgoodI'm stuggling a bit with the "difference" between host= and permit=
21:59.24SamotYou're confusing AUTH with REGISTER
21:59.30SamotREGISTER is for INBOUND
21:59.40SamotTells the other side where to SEND stuff
22:00.11SamotWhen a device "registers" it is just dropping off its location to the system.
22:00.18sawgoodgot that part ...
22:00.23Samotuser@ip:port
22:00.24SamotThat's it
22:00.33sawgooduser, IP, port
22:00.50SamotWhen the other side sends and INVITE, it's going to AUTH by default.
22:00.55SamotThat's how INVITES work
22:01.17sawgoodunless you have invite=insecure,port
22:01.24SamotOr insecure=invite
22:01.25[TK]D-Fenderhost =ip = fucker IS there.  Can't register.  Calls refused from elsewhere.  Has jack shit to do with PASWORD CHECKING
22:01.34[TK]D-Fenderthis is simple stuff
22:01.39SamotRight
22:02.03[TK]D-FenderAlso says nothing about USERNAME checking
22:02.05SamotKnowing the location of the house doesn't mean the door is unlocked for you to walk in.
22:02.12sawgoodpermit= (allow) the username/password (to only come) from a specific IP
22:02.16[TK]D-FenderWhich is mixed between the TYPE, and the action being taken
22:02.35[TK]D-Fendersawgood> permit= (allow) the username/password (to only come) from a specific IP <- no
22:02.47[TK]D-FenderDon't assume a username MATTERS yet
22:03.18[TK]D-FenderAnd depends on what the HOST setting is
22:12.07*** part/#asterisk kharwell (kharwell@nat/digium/x-oxkshoibgbdycokt)
22:15.27sawgoodif SIP traffic comes to Asterisk (and) if insecure=invite,port (is set) (so) no username/password is needed (what) does asterisk "use" to figure out which [context] to use (how does it now)
22:15.42sawgoodknow
22:18.06[TK]D-FenderStill wrong from the start
22:18.23[TK]D-FenderTYPE <- determines what gets checked.
22:18.40[TK]D-FenderWhether the username matters or not
22:18.50[TK]D-FenderAlso depends on what ACTION is being taken
22:19.08[TK]D-FenderYou don't seem to understand chan_sip at all
22:20.11sawgoodI do: but I have a working process that has changed just slightly .... and other variables are involved which are hard to explain
22:20.18[TK]D-Fender"insecure" has nothing to do with an entry matching against the incoming call.  It only affects whether a PASSWORD is checked for a CALL
22:20.22[TK]D-FenderYou really don't
22:20.32[TK]D-FenderYou don't understand the impact of any of these basics
22:20.42[TK]D-Fenderyou have no idea how matching actually works
22:20.46sawgoodI worded my qustion wrong: I tried to word it in a way that your "one way" answer would fit
22:21.07[TK]D-Fender[TK]D-Fender> "insecure" has nothing to do with an entry matching against the incoming call.  It only affects whether a PASSWORD is checked for a CALL
22:21.12sawgoodI have a three lane road and your one-way answer is not always what I need (But it is very appreicated)
22:21.28[TK]D-FenderYou keep asking about bits that aren't related
22:21.45sawgoodI'm wording it wrong ... thats all ... give me a bit ... and I'll try in a differnt way
23:02.15*** join/#asterisk Dovid (~dovid@ool-4573a525.dyn.optonline.net)
23:21.57*** join/#asterisk luckman212 (~luckman21@unaffiliated/luckman212)
23:27.21hdonhi all :) i'm looking at a channel identifier of the format C-[8HEXDIGITS] -- how can i identify which "Call ID" from "sip show channels" this is associated with?
23:30.07SamotYou don't.
23:30.24SamotThey aren't related outside of the fact they are two data points in the transaction.
23:30.35SamotCall ID is a SIP thing...
23:30.36hdonit looks like this "[C-%08x]" format string is part of logger.c and the value it's using comes from (at least sometimes; maybe all the time) from logmsg::callid
23:30.43SamotThe C-XXXXXX is an Asterisk logging thing.
23:30.43hdonoh i see
23:31.07SamotBeen like that for quite a long time.
23:32.25*** join/#asterisk [TK]D-Fender (~joe@64.235.216.2)
23:34.57drmessanoStill on this, huh

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